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

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

Issue 155172: Start using WebCursorInfo from the WebKit API. WebCursorInfo is a... (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/src/WebImageSkia.cpp ('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 WebCursor;
15 class WebViewImpl; 14 class WebViewImpl;
16 15
17 namespace WebCore { 16 namespace WebCore {
18 class HTMLParserQuirks; 17 class HTMLParserQuirks;
19 class PopupContainer; 18 class PopupContainer;
20 class SecurityOrigin; 19 class SecurityOrigin;
21 struct WindowFeatures; 20 struct WindowFeatures;
22 } 21 }
23 22
23 namespace WebKit {
24 struct WebCursorInfo;
25 }
26
24 // Handles window-level notifications from WebCore on behalf of a WebView. 27 // Handles window-level notifications from WebCore on behalf of a WebView.
25 class ChromeClientImpl : public WebCore::ChromeClientChromium { 28 class ChromeClientImpl : public WebCore::ChromeClientChromium {
26 public: 29 public:
27 explicit ChromeClientImpl(WebViewImpl* webview); 30 explicit ChromeClientImpl(WebViewImpl* webview);
28 virtual ~ChromeClientImpl(); 31 virtual ~ChromeClientImpl();
29 32
30 WebViewImpl* webview() const { return webview_; } 33 WebViewImpl* webview() const { return webview_; }
31 34
32 virtual void chromeDestroyed(); 35 virtual void chromeDestroyed();
33 36
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 PassRefPtr<WebCore::FileChooser>); 128 PassRefPtr<WebCore::FileChooser>);
126 virtual bool setCursor(WebCore::PlatformCursorHandle) { return false; } 129 virtual bool setCursor(WebCore::PlatformCursorHandle) { return false; }
127 virtual void popupOpened(WebCore::PopupContainer* popup_container, 130 virtual void popupOpened(WebCore::PopupContainer* popup_container,
128 const WebCore::IntRect& bounds, 131 const WebCore::IntRect& bounds,
129 bool activatable, 132 bool activatable,
130 bool handle_external); 133 bool handle_external);
131 void popupOpenedInternal(WebCore::PopupContainer* popup_container, 134 void popupOpenedInternal(WebCore::PopupContainer* popup_container,
132 const WebCore::IntRect& bounds, 135 const WebCore::IntRect& bounds,
133 bool activatable); 136 bool activatable);
134 137
135 void SetCursor(const WebCursor& cursor); 138 void SetCursor(const WebKit::WebCursorInfo& cursor);
136 void SetCursorForPlugin(const WebCursor& cursor); 139 void SetCursorForPlugin(const WebKit::WebCursorInfo& cursor);
137 140
138 virtual void formStateDidChange(const WebCore::Node*); 141 virtual void formStateDidChange(const WebCore::Node*);
139 142
140 virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { retur n 0; } 143 virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { retur n 0; }
141 144
142 private: 145 private:
143 WebViewImpl* webview_; // weak pointer 146 WebViewImpl* webview_; // weak pointer
144 bool toolbars_visible_; 147 bool toolbars_visible_;
145 bool statusbar_visible_; 148 bool statusbar_visible_;
146 bool scrollbars_visible_; 149 bool scrollbars_visible_;
147 bool menubar_visible_; 150 bool menubar_visible_;
148 bool resizable_; 151 bool resizable_;
149 // Set to true if the next SetCursor is to be ignored. 152 // Set to true if the next SetCursor is to be ignored.
150 bool ignore_next_set_cursor_; 153 bool ignore_next_set_cursor_;
151 }; 154 };
152 155
153 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ 156 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/api/src/WebImageSkia.cpp ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698