| 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 struct PopupListData; | 18 class PopupContainer; |
| 19 class SecurityOrigin; | 19 class SecurityOrigin; |
| 20 struct WindowFeatures; | 20 struct WindowFeatures; |
| 21 } | 21 } |
| 22 | 22 |
| 23 // Handles window-level notifications from WebCore on behalf of a WebView. | 23 // Handles window-level notifications from WebCore on behalf of a WebView. |
| 24 class ChromeClientImpl : public WebCore::ChromeClientChromium { | 24 class ChromeClientImpl : public WebCore::ChromeClientChromium { |
| 25 public: | 25 public: |
| 26 ChromeClientImpl(WebViewImpl* webview); | 26 ChromeClientImpl(WebViewImpl* webview); |
| 27 virtual ~ChromeClientImpl(); | 27 virtual ~ChromeClientImpl(); |
| 28 | 28 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 virtual void setToolTip(const WebCore::String& tooltip_text); | 111 virtual void setToolTip(const WebCore::String& tooltip_text); |
| 112 | 112 |
| 113 virtual void print(WebCore::Frame*); | 113 virtual void print(WebCore::Frame*); |
| 114 | 114 |
| 115 virtual void exceededDatabaseQuota(WebCore::Frame*, | 115 virtual void exceededDatabaseQuota(WebCore::Frame*, |
| 116 const WebCore::String& databaseName); | 116 const WebCore::String& databaseName); |
| 117 | 117 |
| 118 virtual void runOpenPanel(WebCore::Frame*, | 118 virtual void runOpenPanel(WebCore::Frame*, |
| 119 PassRefPtr<WebCore::FileChooser>); | 119 PassRefPtr<WebCore::FileChooser>); |
| 120 virtual void popupOpened(WebCore::FramelessScrollView* popup_view, | 120 virtual void popupOpened(WebCore::PopupContainer* popup_container, |
| 121 const WebCore::IntRect& bounds, | 121 const WebCore::IntRect& bounds, |
| 122 bool activatable); | 122 bool activatable, |
| 123 void popupOpenedWithItems(WebCore::FramelessScrollView* popupView, | 123 bool handle_external); |
| 124 void popupOpenedInternal(WebCore::PopupContainer* popup_container, |
| 124 const WebCore::IntRect& bounds, | 125 const WebCore::IntRect& bounds, |
| 125 bool activatable, | 126 bool activatable); |
| 126 int item_height, | |
| 127 int selected_index, | |
| 128 const WTF::Vector<WebCore::PopupListData*>& items); | |
| 129 | 127 |
| 130 void SetCursor(const WebCursor& cursor); | 128 void SetCursor(const WebCursor& cursor); |
| 131 void SetCursorForPlugin(const WebCursor& cursor); | 129 void SetCursorForPlugin(const WebCursor& cursor); |
| 132 | 130 |
| 133 virtual void enableSuddenTermination(); | 131 virtual void enableSuddenTermination(); |
| 134 virtual void disableSuddenTermination(); | 132 virtual void disableSuddenTermination(); |
| 135 | 133 |
| 136 virtual void formStateDidChange(const WebCore::Node*); | 134 virtual void formStateDidChange(const WebCore::Node*); |
| 137 | 135 |
| 138 private: | 136 private: |
| 139 WebViewImpl* webview_; // weak pointer | 137 WebViewImpl* webview_; // weak pointer |
| 140 bool toolbars_visible_; | 138 bool toolbars_visible_; |
| 141 bool statusbar_visible_; | 139 bool statusbar_visible_; |
| 142 bool scrollbars_visible_; | 140 bool scrollbars_visible_; |
| 143 bool menubar_visible_; | 141 bool menubar_visible_; |
| 144 bool resizable_; | 142 bool resizable_; |
| 145 // Set to true if the next SetCursor is to be ignored. | 143 // Set to true if the next SetCursor is to be ignored. |
| 146 bool ignore_next_set_cursor_; | 144 bool ignore_next_set_cursor_; |
| 147 }; | 145 }; |
| 148 | 146 |
| 149 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ | 147 #endif // WEBKIT_GLUE_CHROME_CLIENT_IMPL_H_ |
| OLD | NEW |