Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  CompositorScrollUpdate.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 mozilla_layers_CompositorScrollUpdate_h
#define mozilla_layers_CompositorScrollUpdate_h

#include "Units.h"

namespace mozilla {
namespace layers {

/**
 * An update sent by APZ to interesting consumers (e.g. GeckoView)
 * to inform them, on every composite, about the effective visual
 * scroll offset and zoom level of the root content APZC at
 * composition time.
 */

struct CompositorScrollUpdate {
  /**
   * The compositor state (scroll offset and zoom level) after the update.
   */

  struct Metrics {
    CSSPoint mVisualScrollOffset;
    CSSToParentLayerScale mZoom;

    bool operator==(const Metrics& aOther) const;
    bool operator!=(const Metrics& aOther) const { return !(*this == aOther); }
  };

  /**
   * Describes the source of a CompositorScrollUpdate.
   *
   * This is used for populating the `source` field of
   * `GeckoSession.ScrollPositionUpdate`, and should be kept in sync
   * with the constants defined in that Java struct.
   */

  enum class Source {
    // The scroll position changed as a direct result of user interaction.
    UserInteraction,
    // The scroll position changed programmatically. This can includes changes
    // caused by script on the page, and changes caused by the browser engine
    // such as scrolling an element into view.
    Other
  };

  Metrics mMetrics;
  Source mSource;

  bool operator==(const CompositorScrollUpdate& aOther) const;
  bool operator!=(const CompositorScrollUpdate& aOther) const {
    return !(*this == aOther);
  }
};

}  // namespace layers
}  // namespace mozilla

#endif  // mozilla_layers_CompositorScrollUpdate_h

Messung V0.5 in Prozent
C=83 H=92 G=87

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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=277311
#Domains=752002