Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2080)

Side by Side Diff: webkit/glue/chrome_client_impl.h

Issue 155378: Replace ShowAsPopupWithItems to CreatePopupWidgetWithInfo. Also,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/api/public/WebPopupMenuInfo.h ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ 5 #ifndef WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_
6 #define WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ 6 #define WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 9
10 MSVC_PUSH_WARNING_LEVEL(0); 10 MSVC_PUSH_WARNING_LEVEL(0);
11 #include "ChromeClientChromium.h" 11 #include "ChromeClientChromium.h"
12 MSVC_POP_WARNING(); 12 MSVC_POP_WARNING();
13 13
14 class WebViewImpl; 14 class WebViewImpl;
15 15
16 namespace WebCore { 16 namespace WebCore {
17 class HTMLParserQuirks; 17 class HTMLParserQuirks;
18 class PopupContainer; 18 class PopupContainer;
19 class SecurityOrigin; 19 class SecurityOrigin;
20 struct WindowFeatures; 20 struct WindowFeatures;
21 } 21 }
22 22
23 namespace WebKit { 23 namespace WebKit {
24 struct WebCursorInfo; 24 struct WebCursorInfo;
25 struct WebPopupMenuInfo;
25 } 26 }
26 27
27 // Handles window-level notifications from WebCore on behalf of a WebView. 28 // Handles window-level notifications from WebCore on behalf of a WebView.
28 class ChromeClientImpl : public WebCore::ChromeClientChromium { 29 class ChromeClientImpl : public WebCore::ChromeClientChromium {
29 public: 30 public:
30 explicit ChromeClientImpl(WebViewImpl* webview); 31 explicit ChromeClientImpl(WebViewImpl* webview);
31 virtual ~ChromeClientImpl(); 32 virtual ~ChromeClientImpl();
32 33
33 WebViewImpl* webview() const { return webview_; } 34 WebViewImpl* webview() const { return webview_; }
34 35
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const WebCore::String& databaseName); 125 const WebCore::String& databaseName);
125 126
126 virtual void requestGeolocationPermissionForFrame(WebCore::Frame*, WebCore::Ge olocation*) { } 127 virtual void requestGeolocationPermissionForFrame(WebCore::Frame*, WebCore::Ge olocation*) { }
127 128
128 virtual void runOpenPanel(WebCore::Frame*, 129 virtual void runOpenPanel(WebCore::Frame*,
129 PassRefPtr<WebCore::FileChooser>); 130 PassRefPtr<WebCore::FileChooser>);
130 virtual bool setCursor(WebCore::PlatformCursorHandle) { return false; } 131 virtual bool setCursor(WebCore::PlatformCursorHandle) { return false; }
131 virtual void popupOpened(WebCore::PopupContainer* popup_container, 132 virtual void popupOpened(WebCore::PopupContainer* popup_container,
132 const WebCore::IntRect& bounds, 133 const WebCore::IntRect& bounds,
133 bool activatable, 134 bool activatable,
134 bool handle_external); 135 bool handle_externally);
135 void popupOpenedInternal(WebCore::PopupContainer* popup_container,
136 const WebCore::IntRect& bounds,
137 bool activatable);
138 136
139 void SetCursor(const WebKit::WebCursorInfo& cursor); 137 void SetCursor(const WebKit::WebCursorInfo& cursor);
140 void SetCursorForPlugin(const WebKit::WebCursorInfo& cursor); 138 void SetCursorForPlugin(const WebKit::WebCursorInfo& cursor);
141 139
142 virtual void formStateDidChange(const WebCore::Node*); 140 virtual void formStateDidChange(const WebCore::Node*);
143 141
144 virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { retur n 0; } 142 virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { retur n 0; }
145 143
146 private: 144 private:
145 void GetPopupMenuInfo(WebCore::PopupContainer* popup_container,
146 WebKit::WebPopupMenuInfo* info);
147
147 WebViewImpl* webview_; // weak pointer 148 WebViewImpl* webview_; // weak pointer
148 bool toolbars_visible_; 149 bool toolbars_visible_;
149 bool statusbar_visible_; 150 bool statusbar_visible_;
150 bool scrollbars_visible_; 151 bool scrollbars_visible_;
151 bool menubar_visible_; 152 bool menubar_visible_;
152 bool resizable_; 153 bool resizable_;
153 // Set to true if the next SetCursor is to be ignored. 154 // Set to true if the next SetCursor is to be ignored.
154 bool ignore_next_set_cursor_; 155 bool ignore_next_set_cursor_;
155 }; 156 };
156 157
157 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ 158 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/api/public/WebPopupMenuInfo.h ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698