OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_WEBVIEW_H_ | 5 #ifndef WEBKIT_GLUE_WEBVIEW_H_ |
6 #define WEBKIT_GLUE_WEBVIEW_H_ | 6 #define WEBKIT_GLUE_WEBVIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 virtual void HideAutofillPopup() = 0; | 236 virtual void HideAutofillPopup() = 0; |
237 | 237 |
238 // Returns development tools agent instance belonging to this view. | 238 // Returns development tools agent instance belonging to this view. |
239 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; | 239 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; |
240 | 240 |
241 // Makes the webview transparent. Useful if you want to have some custom | 241 // Makes the webview transparent. Useful if you want to have some custom |
242 // background behind it. | 242 // background behind it. |
243 virtual void SetIsTransparent(bool is_transparent) = 0; | 243 virtual void SetIsTransparent(bool is_transparent) = 0; |
244 virtual bool GetIsTransparent() const = 0; | 244 virtual bool GetIsTransparent() const = 0; |
245 | 245 |
| 246 virtual void SetSpellingPanelVisibility(bool is_visible) = 0; |
| 247 virtual bool GetSpellingPanelVisibility() = 0; |
| 248 |
246 // Performs an action from a context menu for the node at the given | 249 // Performs an action from a context menu for the node at the given |
247 // location. | 250 // location. |
248 virtual void MediaPlayerActionAt(int x, | 251 virtual void MediaPlayerActionAt(int x, |
249 int y, | 252 int y, |
250 const MediaPlayerAction& action) = 0; | 253 const MediaPlayerAction& action) = 0; |
251 | 254 |
252 // Updates the WebView's active state (i.e., control tints). | 255 // Updates the WebView's active state (i.e., control tints). |
253 virtual void SetActive(bool active) = 0; | 256 virtual void SetActive(bool active) = 0; |
254 | 257 |
255 // Gets the WebView's active state (i.e., state of control tints). | 258 // Gets the WebView's active state (i.e., state of control tints). |
256 virtual bool IsActive() = 0; | 259 virtual bool IsActive() = 0; |
257 | 260 |
258 #if defined(OS_LINUX) | 261 #if defined(OS_LINUX) |
259 virtual void SetThemeFocusRingColor(int r, int g, int b) = 0; | 262 virtual void SetThemeFocusRingColor(int r, int g, int b) = 0; |
260 #endif | 263 #endif |
261 | 264 |
262 private: | 265 private: |
263 DISALLOW_COPY_AND_ASSIGN(WebView); | 266 DISALLOW_COPY_AND_ASSIGN(WebView); |
264 }; | 267 }; |
265 | 268 |
266 #endif // WEBKIT_GLUE_WEBVIEW_H_ | 269 #endif // WEBKIT_GLUE_WEBVIEW_H_ |
OLD | NEW |