summaryrefslogtreecommitdiffstats
path: root/webkit/glue/chrome_client_impl.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 16:32:59 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 16:32:59 +0000
commit88efb7ec99239eeecaa17d21f8635be1bce29cca (patch)
treeb1a988fbca10748e584f78abb755036e63ff335f /webkit/glue/chrome_client_impl.h
parentc9d6a1df8ef5fd2c3f134dcb544663ce8bd21c7b (diff)
downloadchromium_src-88efb7ec99239eeecaa17d21f8635be1bce29cca.zip
chromium_src-88efb7ec99239eeecaa17d21f8635be1bce29cca.tar.gz
chromium_src-88efb7ec99239eeecaa17d21f8635be1bce29cca.tar.bz2
Replace ShowAsPopupWithItems to CreatePopupWidgetWithInfo. Also,
make use of WebPopupMenuInfo from the WebKit API. WebMenuItem remains in webkit/glue for convenience with IPC marshalling and related usage in Chrome. This work is precursor to switching over to using WebWidget from the WebKit API. BUG=16234 TEST=html select drop downs should still work on the mac. try switching languages on news.google.com. R=paul Review URL: http://codereview.chromium.org/155378 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/chrome_client_impl.h')
-rw-r--r--webkit/glue/chrome_client_impl.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/webkit/glue/chrome_client_impl.h b/webkit/glue/chrome_client_impl.h
index cebffc2..2a91659 100644
--- a/webkit/glue/chrome_client_impl.h
+++ b/webkit/glue/chrome_client_impl.h
@@ -22,6 +22,7 @@ struct WindowFeatures;
namespace WebKit {
struct WebCursorInfo;
+struct WebPopupMenuInfo;
}
// Handles window-level notifications from WebCore on behalf of a WebView.
@@ -131,10 +132,7 @@ class ChromeClientImpl : public WebCore::ChromeClientChromium {
virtual void popupOpened(WebCore::PopupContainer* popup_container,
const WebCore::IntRect& bounds,
bool activatable,
- bool handle_external);
- void popupOpenedInternal(WebCore::PopupContainer* popup_container,
- const WebCore::IntRect& bounds,
- bool activatable);
+ bool handle_externally);
void SetCursor(const WebKit::WebCursorInfo& cursor);
void SetCursorForPlugin(const WebKit::WebCursorInfo& cursor);
@@ -144,6 +142,9 @@ class ChromeClientImpl : public WebCore::ChromeClientChromium {
virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { return 0; }
private:
+ void GetPopupMenuInfo(WebCore::PopupContainer* popup_container,
+ WebKit::WebPopupMenuInfo* info);
+
WebViewImpl* webview_; // weak pointer
bool toolbars_visible_;
bool statusbar_visible_;