OLD | NEW |
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 class PopupContainer; | 18 class PopupContainer; |
19 class SecurityOrigin; | 19 class SecurityOrigin; |
20 struct WindowFeatures; | 20 struct WindowFeatures; |
| 21 class HTMLParserQuirks; |
21 } | 22 } |
22 | 23 |
23 // Handles window-level notifications from WebCore on behalf of a WebView. | 24 // Handles window-level notifications from WebCore on behalf of a WebView. |
24 class ChromeClientImpl : public WebCore::ChromeClientChromium { | 25 class ChromeClientImpl : public WebCore::ChromeClientChromium { |
25 public: | 26 public: |
26 ChromeClientImpl(WebViewImpl* webview); | 27 ChromeClientImpl(WebViewImpl* webview); |
27 virtual ~ChromeClientImpl(); | 28 virtual ~ChromeClientImpl(); |
28 | 29 |
29 WebViewImpl* webview() const { return webview_; } | 30 WebViewImpl* webview() const { return webview_; } |
30 | 31 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 bool handle_external); | 125 bool handle_external); |
125 void popupOpenedInternal(WebCore::PopupContainer* popup_container, | 126 void popupOpenedInternal(WebCore::PopupContainer* popup_container, |
126 const WebCore::IntRect& bounds, | 127 const WebCore::IntRect& bounds, |
127 bool activatable); | 128 bool activatable); |
128 | 129 |
129 void SetCursor(const WebCursor& cursor); | 130 void SetCursor(const WebCursor& cursor); |
130 void SetCursorForPlugin(const WebCursor& cursor); | 131 void SetCursorForPlugin(const WebCursor& cursor); |
131 | 132 |
132 virtual void formStateDidChange(const WebCore::Node*); | 133 virtual void formStateDidChange(const WebCore::Node*); |
133 | 134 |
| 135 virtual WebCore::HTMLParserQuirks* createHTMLParserQuirks() { return 0; } |
| 136 |
134 private: | 137 private: |
135 WebViewImpl* webview_; // weak pointer | 138 WebViewImpl* webview_; // weak pointer |
136 bool toolbars_visible_; | 139 bool toolbars_visible_; |
137 bool statusbar_visible_; | 140 bool statusbar_visible_; |
138 bool scrollbars_visible_; | 141 bool scrollbars_visible_; |
139 bool menubar_visible_; | 142 bool menubar_visible_; |
140 bool resizable_; | 143 bool resizable_; |
141 // Set to true if the next SetCursor is to be ignored. | 144 // Set to true if the next SetCursor is to be ignored. |
142 bool ignore_next_set_cursor_; | 145 bool ignore_next_set_cursor_; |
143 }; | 146 }; |
144 | 147 |
145 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ | 148 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ |
OLD | NEW |