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 HTMLParserQuirks; | 18 class HTMLParserQuirks; |
19 class PopupContainer; | 19 class PopupContainer; |
20 class SecurityOrigin; | 20 class SecurityOrigin; |
21 struct WindowFeatures; | 21 struct WindowFeatures; |
22 } | 22 } |
23 | 23 |
24 // Handles window-level notifications from WebCore on behalf of a WebView. | 24 // Handles window-level notifications from WebCore on behalf of a WebView. |
25 class ChromeClientImpl : public WebCore::ChromeClientChromium { | 25 class ChromeClientImpl : public WebCore::ChromeClientChromium { |
26 public: | 26 public: |
27 ChromeClientImpl(WebViewImpl* webview); | 27 explicit ChromeClientImpl(WebViewImpl* webview); |
28 virtual ~ChromeClientImpl(); | 28 virtual ~ChromeClientImpl(); |
29 | 29 |
30 WebViewImpl* webview() const { return webview_; } | 30 WebViewImpl* webview() const { return webview_; } |
31 | 31 |
32 virtual void chromeDestroyed(); | 32 virtual void chromeDestroyed(); |
33 | 33 |
34 virtual void setWindowRect(const WebCore::FloatRect&); | 34 virtual void setWindowRect(const WebCore::FloatRect&); |
35 virtual WebCore::FloatRect windowRect(); | 35 virtual WebCore::FloatRect windowRect(); |
36 | 36 |
37 virtual WebCore::FloatRect pageRect(); | 37 virtual WebCore::FloatRect pageRect(); |
(...skipping 22 matching lines...) Expand all Loading... |
60 | 60 |
61 virtual void setScrollbarsVisible(bool); | 61 virtual void setScrollbarsVisible(bool); |
62 virtual bool scrollbarsVisible(); | 62 virtual bool scrollbarsVisible(); |
63 | 63 |
64 virtual void setMenubarVisible(bool); | 64 virtual void setMenubarVisible(bool); |
65 virtual bool menubarVisible(); | 65 virtual bool menubarVisible(); |
66 | 66 |
67 virtual void setResizable(bool); | 67 virtual void setResizable(bool); |
68 | 68 |
69 virtual void addMessageToConsole(WebCore::MessageSource source, | 69 virtual void addMessageToConsole(WebCore::MessageSource source, |
70 WebCore::MessageLevel level, const WebCore::S
tring& message, | 70 WebCore::MessageLevel level, |
| 71 const WebCore::String& message, |
71 unsigned int lineNumber, | 72 unsigned int lineNumber, |
72 const WebCore::String& sourceID); | 73 const WebCore::String& sourceID); |
73 | 74 |
74 virtual bool canRunBeforeUnloadConfirmPanel(); | 75 virtual bool canRunBeforeUnloadConfirmPanel(); |
75 virtual bool runBeforeUnloadConfirmPanel(const WebCore::String& message, | 76 virtual bool runBeforeUnloadConfirmPanel(const WebCore::String& message, |
76 WebCore::Frame* frame); | 77 WebCore::Frame* frame); |
77 | 78 |
78 virtual void closeWindowSoon(); | 79 virtual void closeWindowSoon(); |
79 | 80 |
80 virtual void runJavaScriptAlert(WebCore::Frame*, const WebCore::String&); | 81 virtual void runJavaScriptAlert(WebCore::Frame*, const WebCore::String&); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 bool toolbars_visible_; | 140 bool toolbars_visible_; |
140 bool statusbar_visible_; | 141 bool statusbar_visible_; |
141 bool scrollbars_visible_; | 142 bool scrollbars_visible_; |
142 bool menubar_visible_; | 143 bool menubar_visible_; |
143 bool resizable_; | 144 bool resizable_; |
144 // Set to true if the next SetCursor is to be ignored. | 145 // Set to true if the next SetCursor is to be ignored. |
145 bool ignore_next_set_cursor_; | 146 bool ignore_next_set_cursor_; |
146 }; | 147 }; |
147 | 148 |
148 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ | 149 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ |
OLD | NEW |