| 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_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // This method creates a WebView that is initially sized to an empty rect. | 46 // This method creates a WebView that is initially sized to an empty rect. |
| 47 static WebView* Create(WebViewDelegate* delegate, | 47 static WebView* Create(WebViewDelegate* delegate, |
| 48 const WebPreferences& prefs); | 48 const WebPreferences& prefs); |
| 49 | 49 |
| 50 // Returns the delegate for this WebView. This is the pointer that was | 50 // Returns the delegate for this WebView. This is the pointer that was |
| 51 // passed to WebView::Create. The caller must check this value before using | 51 // passed to WebView::Create. The caller must check this value before using |
| 52 // it, it will be NULL during closing of the view. | 52 // it, it will be NULL during closing of the view. |
| 53 virtual WebViewDelegate* GetDelegate() = 0; | 53 virtual WebViewDelegate* GetDelegate() = 0; |
| 54 | 54 |
| 55 // Changes the delegate for this WebView. It is valid to set this to NULL. |
| 56 virtual void SetDelegate(WebViewDelegate* delegate) = 0; |
| 57 |
| 55 // Instructs the EditorClient whether to pass editing notifications on to a | 58 // Instructs the EditorClient whether to pass editing notifications on to a |
| 56 // delegate, if one is present. This allows embedders that haven't | 59 // delegate, if one is present. This allows embedders that haven't |
| 57 // overridden any editor delegate methods to avoid the performance impact of | 60 // overridden any editor delegate methods to avoid the performance impact of |
| 58 // calling them. | 61 // calling them. |
| 59 virtual void SetUseEditorDelegate(bool value) = 0; | 62 virtual void SetUseEditorDelegate(bool value) = 0; |
| 60 | 63 |
| 61 // Method that controls whether pressing Tab key cycles through page elements | 64 // Method that controls whether pressing Tab key cycles through page elements |
| 62 // or inserts a '\t' char in text area | 65 // or inserts a '\t' char in text area |
| 63 virtual void SetTabKeyCyclesThroughElements(bool value) = 0; | 66 virtual void SetTabKeyCyclesThroughElements(bool value) = 0; |
| 64 | 67 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 virtual void HideAutofillPopup() = 0; | 201 virtual void HideAutofillPopup() = 0; |
| 199 | 202 |
| 200 // Returns development tools agent instance belonging to this view. | 203 // Returns development tools agent instance belonging to this view. |
| 201 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; | 204 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; |
| 202 | 205 |
| 203 private: | 206 private: |
| 204 DISALLOW_EVIL_CONSTRUCTORS(WebView); | 207 DISALLOW_EVIL_CONSTRUCTORS(WebView); |
| 205 }; | 208 }; |
| 206 | 209 |
| 207 #endif // WEBKIT_GLUE_WEBVIEW_H__ | 210 #endif // WEBKIT_GLUE_WEBVIEW_H__ |
| OLD | NEW |