diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2005-12-07 04:10:17 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2005-12-07 04:10:17 +0800 |
commit | 89e2f69727a24f8667b1daf2341bae55b0567d10 (patch) | |
tree | a69bf24ee33e77fb002695bce9e548a4fb18fa3c /embed/mozilla/EphyBrowser.cpp | |
parent | a02815e758437be9ed36485a6a48b09423c59282 (diff) | |
download | gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.tar.gz gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.tar.zst gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.zip |
Forward up/down/page up/page down from the findbar entry to the embed.
2005-12-06 Crispin Flowerday <gnome@flowerday.cx>
* embed/ephy-embed.c: (ephy_embed_scroll),
(ephy_embed_page_scroll):
* embed/ephy-embed.h:
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyBrowser.h:
* embed/mozilla/mozilla-embed.cpp:
* src/ephy-find-toolbar.c: (entry_key_press_event_cb):
Forward up/down/page up/page down from the findbar entry
to the embed.
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 7bfda8bcc..b87fe9bf3 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -928,6 +928,35 @@ nsresult EphyBrowser::GetZoom (float *aZoom) return mdv->GetTextZoom (aZoom); } +nsresult EphyBrowser::ScrollLines (int aNumLines) +{ + nsresult rv; + nsCOMPtr<nsIDOMWindow> DOMWindow; + + mWebBrowserFocus->GetFocusedWindow (getter_AddRefs(DOMWindow)); + if (!DOMWindow) + { + DOMWindow = mDOMWindow; + } + + DOMWindow->ScrollByLines (aNumLines); +} + +nsresult EphyBrowser::ScrollPages (int aNumPages) +{ + nsresult rv; + nsCOMPtr<nsIDOMWindow> DOMWindow; + + mWebBrowserFocus->GetFocusedWindow (getter_AddRefs(DOMWindow)); + if (!DOMWindow) + { + DOMWindow = mDOMWindow; + } + + DOMWindow->ScrollByPages (aNumPages); +} + + nsresult EphyBrowser::GetDocument (nsIDOMDocument **aDOMDocument) { return mDOMWindow->GetDocument (aDOMDocument); |