diff options
author | johnnyg@google.com <johnnyg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 00:32:57 +0000 |
---|---|---|
committer | johnnyg@google.com <johnnyg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 00:32:57 +0000 |
commit | cb9d58c8e5ed717851302378bf61cbf6d93d827a (patch) | |
tree | daa1315e77cb67f46374805c262001905199b0c2 /webkit/glue/webview_impl.cc | |
parent | e425000d631f35bc0c387a2f53167e92d38a1cec (diff) | |
download | chromium_src-cb9d58c8e5ed717851302378bf61cbf6d93d827a.zip chromium_src-cb9d58c8e5ed717851302378bf61cbf6d93d827a.tar.gz chromium_src-cb9d58c8e5ed717851302378bf61cbf6d93d827a.tar.bz2 |
New WebKit API interfaces for desktop notifications.
Everything is still currently disabled under compile-time flag.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/174104
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r-- | webkit/glue/webview_impl.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc index 2a387df..c295303 100644 --- a/webkit/glue/webview_impl.cc +++ b/webkit/glue/webview_impl.cc @@ -1848,6 +1848,14 @@ WebCore::Node* WebViewImpl::GetNodeForWindowPos(int x, int y) { return result.innerNonSharedNode(); } +#if ENABLE(NOTIFICATIONS) +WebKit::NotificationPresenterImpl* WebViewImpl::GetNotificationPresenter() { + if (!notification_presenter_.isInitialized() && delegate_) + notification_presenter_.initialize(delegate_->GetNotificationPresenter()); + return ¬ification_presenter_; +} +#endif + void WebViewImpl::HideAutofillPopup() { HideAutoCompletePopup(); } |