Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  nsDragServiceWayland.h   Sprache: C

 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef nsDragServiceWayland_h_
#define nsDragServiceWayland_h_

#include "RetrievalContextWayland.h"

namespace mozilla::widget {

/**
 * Wayland specific D&D routines
 */

class nsDragSessionWayland : public nsDragSession {
 public:
  void ReplyToDragMotion(RefPtr<mozilla::widget::DataOffer> aDataOffer);
  void ReplyToDragMotion() override;

  void UpdateDragAction(RefPtr<mozilla::widget::DataOffer> aDataOffer);
  void UpdateDragAction() override;

  void TargetDataReceived(RefPtr<mozilla::widget::DataOffer> aDataOffer);
  void ScheduleMotionEvent(RefPtr<mozilla::widget::DataOffer> aDataOffer);
  void ScheduleDropEvent(RefPtr<mozilla::widget::DataOffer> aDataOffer);
  void ScheduleLeaveEvent() override;

  // Update Drag&Drop state according child process state.
  // UpdateDragEffect() is called by IPC bridge when child process
  // accepts/denies D&D operation and uses stored
  // data offer.
  NS_IMETHOD UpdateDragEffect() override;

 public:
  nsDragSessionWayland();

 protected:
  virtual ~nsDragSessionWayland() = default;

  void EndDragSessionImplBackend() override;

  void SetRemoteContext() override;
  void DropFinish(bool aSucceed) override;

  bool IsTargetContextList(void) override;
  bool IsDragFlavorAvailable(GdkAtom aRequestedFlavor) override;

  bool GetDragDataImpl(GdkAtom aRequestedFlavor) override;

  nsWindow* GetMostRecentDestWindow() override;

  bool DragDataReceived(mozilla::ClipboardData& aData, GdkAtom aTarget);

 private:
  struct DragTaskWayland : public DragTask {
    explicit DragTaskWayland(DragTaskType aType = eDragTaskNone)
        : DragTask(aType) {};
    DragTaskWayland(DragTaskType aType, mozilla::widget::DataOffer* aDataOffer);
    virtual ~DragTaskWayland() = default;

    void Reset() override {
      mType = eDragTaskNone;
      mWindow = nullptr;
      mDataOffer = nullptr;
    }
    uintptr_t GetContextID() override {
      return reinterpret_cast<uintptr_t>(mDataOffer.get());
    }

    RefPtr<mozilla::widget::DataOffer> mDataOffer;
  };

  RefPtr<mozilla::widget::DataOffer> mDataOfferForRemote;
};

}  // namespace mozilla::widget

#endif  // nsDragServiceWayland_h_

Messung V0.5 in Prozent
C=90 H=100 G=95

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-09-29) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126438
#Domains=1867298