diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-05-06 21:06:09 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-05-06 21:06:09 +0800 |
commit | 7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d (patch) | |
tree | d9d4e2a4e91257cf2680bbe5bcd3be616d1f1c0a /embed/mozilla/EphyBrowser.cpp | |
parent | 06ec023278ef9420e75f3250b5d252ad722f444b (diff) | |
download | gsoc2013-epiphany-7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d.tar gsoc2013-epiphany-7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d.tar.gz gsoc2013-epiphany-7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d.tar.bz2 gsoc2013-epiphany-7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d.tar.lz gsoc2013-epiphany-7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d.tar.xz gsoc2013-epiphany-7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d.tar.zst gsoc2013-epiphany-7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d.zip |
Adapt to mozilla API change.
2004-05-06 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EphyBrowser.cpp:
Adapt to mozilla API change.
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 157dceba6..1ed969adf 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -220,8 +220,13 @@ EphyBrowser::GetListener (void) nsCOMPtr<nsPIDOMWindow> piWin(do_QueryInterface(domWindow)); NS_ENSURE_TRUE (piWin, NS_ERROR_FAILURE); +#if MOZILLA_SNAPSHOT > 15 + nsIChromeEventHandler* chromeHandler; + chromeHandler = piWin->GetChromeEventHandler(); +#else nsCOMPtr<nsIChromeEventHandler> chromeHandler; piWin->GetChromeEventHandler(getter_AddRefs(chromeHandler)); +#endif mEventReceiver = do_QueryInterface(chromeHandler); NS_ENSURE_TRUE (mEventReceiver, NS_ERROR_FAILURE); |