diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-05-31 22:36:51 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-05-31 22:36:51 +0800 |
commit | 65d72dadd8762f9d86c2a1f28a4af0c8dc784973 (patch) | |
tree | 1194ed95470fb750128f364aff0c58224a0906e0 /embed/mozilla/EphyBrowser.h | |
parent | 30457fd1bc79dfc4e2fc36a165de0abf1b1d5b77 (diff) | |
download | gsoc2013-epiphany-65d72dadd8762f9d86c2a1f28a4af0c8dc784973.tar gsoc2013-epiphany-65d72dadd8762f9d86c2a1f28a4af0c8dc784973.tar.gz gsoc2013-epiphany-65d72dadd8762f9d86c2a1f28a4af0c8dc784973.tar.bz2 gsoc2013-epiphany-65d72dadd8762f9d86c2a1f28a4af0c8dc784973.tar.lz gsoc2013-epiphany-65d72dadd8762f9d86c2a1f28a4af0c8dc784973.tar.xz gsoc2013-epiphany-65d72dadd8762f9d86c2a1f28a4af0c8dc784973.tar.zst gsoc2013-epiphany-65d72dadd8762f9d86c2a1f28a4af0c8dc784973.zip |
Add scroll event listener, and change zoom on scroll+wheel events.
2005-05-31 Christian Persch <chpe@cvs.gnome.org>
* data/default-prefs-common.js:
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyBrowser.h:
Add scroll event listener, and change zoom on scroll+wheel events.
* lib/ephy-zoom.c: (ephy_zoom_get_changed_zoom_level):
* lib/ephy-zoom.h:
Fix signed/unsigned integer problems (underflow).
Diffstat (limited to 'embed/mozilla/EphyBrowser.h')
-rw-r--r-- | embed/mozilla/EphyBrowser.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.h b/embed/mozilla/EphyBrowser.h index 159f449b3..77f2923a6 100644 --- a/embed/mozilla/EphyBrowser.h +++ b/embed/mozilla/EphyBrowser.h @@ -100,6 +100,14 @@ public: EphyDOMContentLoadedEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { }; }; +class EphyDOMScrollEventListener : public EphyEventListener +{ +public: + NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent); + + EphyDOMScrollEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { }; +}; + class EphyContextMenuListener : public nsIDOMContextMenuListener { public: @@ -121,6 +129,7 @@ class EphyBrowser friend class EphyEventListener; friend class EphyDOMLinkEventListener; friend class EphyDOMContentLoadedEventListener; +friend class EphyDOMScrollEventListener; friend class EphyPopupBlockEventListener; friend class EphyModalAlertEventListener; friend class EphyContextMenuListener; @@ -186,6 +195,7 @@ private: nsCOMPtr<nsIDOMWindow> mDOMWindow; EphyDOMLinkEventListener *mDOMLinkEventListener; EphyDOMContentLoadedEventListener *mDOMContentLoadedEventListener; + EphyDOMScrollEventListener *mDOMScrollEventListener; EphyPopupBlockEventListener *mPopupBlockEventListener; EphyModalAlertEventListener *mModalAlertListener; EphyContextMenuListener *mContextMenuListener; |