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

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

Issue 48149: Use cocoa controls for HTML select popups in test_shell (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
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 WebCursor; 14 class WebCursor;
15 class WebViewImpl; 15 class WebViewImpl;
16 16
17 namespace WebCore { 17 namespace WebCore {
18 struct PopupListData;
18 class SecurityOrigin; 19 class SecurityOrigin;
19 struct WindowFeatures; 20 struct WindowFeatures;
20 } 21 }
21 22
22 // Handles window-level notifications from WebCore on behalf of a WebView. 23 // Handles window-level notifications from WebCore on behalf of a WebView.
23 class ChromeClientImpl : public WebCore::ChromeClientChromium { 24 class ChromeClientImpl : public WebCore::ChromeClientChromium {
24 public: 25 public:
25 ChromeClientImpl(WebViewImpl* webview); 26 ChromeClientImpl(WebViewImpl* webview);
26 virtual ~ChromeClientImpl(); 27 virtual ~ChromeClientImpl();
27 28
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 virtual void print(WebCore::Frame*); 112 virtual void print(WebCore::Frame*);
112 113
113 virtual void exceededDatabaseQuota(WebCore::Frame*, 114 virtual void exceededDatabaseQuota(WebCore::Frame*,
114 const WebCore::String& databaseName); 115 const WebCore::String& databaseName);
115 116
116 virtual void runOpenPanel(WebCore::Frame*, 117 virtual void runOpenPanel(WebCore::Frame*,
117 PassRefPtr<WebCore::FileChooser>); 118 PassRefPtr<WebCore::FileChooser>);
118 virtual void popupOpened(WebCore::FramelessScrollView* popup_view, 119 virtual void popupOpened(WebCore::FramelessScrollView* popup_view,
119 const WebCore::IntRect& bounds, 120 const WebCore::IntRect& bounds,
120 bool activatable); 121 bool activatable);
122 void popupOpenedWithItems(WebCore::FramelessScrollView* popupView,
123 const WebCore::IntRect& bounds,
124 bool activatable,
125 int item_height,
126 int selected_index,
127 const WTF::Vector<WebCore::PopupListData*>& items);
121 128
122 void SetCursor(const WebCursor& cursor); 129 void SetCursor(const WebCursor& cursor);
123 void SetCursorForPlugin(const WebCursor& cursor); 130 void SetCursorForPlugin(const WebCursor& cursor);
124 131
125 virtual void enableSuddenTermination(); 132 virtual void enableSuddenTermination();
126 virtual void disableSuddenTermination(); 133 virtual void disableSuddenTermination();
127 134
128 virtual void formStateDidChange(const WebCore::Node*); 135 virtual void formStateDidChange(const WebCore::Node*);
129 136
130 private: 137 private:
131 WebViewImpl* webview_; // weak pointer 138 WebViewImpl* webview_; // weak pointer
132 bool toolbars_visible_; 139 bool toolbars_visible_;
133 bool statusbar_visible_; 140 bool statusbar_visible_;
134 bool scrollbars_visible_; 141 bool scrollbars_visible_;
135 bool menubar_visible_; 142 bool menubar_visible_;
136 bool resizable_; 143 bool resizable_;
137 // Set to true if the next SetCursor is to be ignored. 144 // Set to true if the next SetCursor is to be ignored.
138 bool ignore_next_set_cursor_; 145 bool ignore_next_set_cursor_;
139 }; 146 };
140 147
141 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ 148 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698