| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "webkit/glue/webwidget.h" | 13 #include "webkit/glue/webwidget.h" |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 class WebDragData; | 16 class WebDragData; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Focus the first (last if reverse is true) focusable node. | 123 // Focus the first (last if reverse is true) focusable node. |
| 124 virtual void SetInitialFocus(bool reverse) = 0; | 124 virtual void SetInitialFocus(bool reverse) = 0; |
| 125 | 125 |
| 126 // Stores the focused node and clears it if |frame| is the focused frame. | 126 // Stores the focused node and clears it if |frame| is the focused frame. |
| 127 // TODO(jcampan): http://b/issue?id=1157486 this is needed to work-around | 127 // TODO(jcampan): http://b/issue?id=1157486 this is needed to work-around |
| 128 // issues caused by the fix for bug #792423 and should be removed when that | 128 // issues caused by the fix for bug #792423 and should be removed when that |
| 129 // bug is fixed. | 129 // bug is fixed. |
| 130 virtual void StoreFocusForFrame(WebFrame* frame) = 0; | 130 virtual void StoreFocusForFrame(WebFrame* frame) = 0; |
| 131 | 131 |
| 132 // Clears the focused node (and selection if a text field is focused) to |
| 133 // ensure that a text field on the page is not eating keystrokes we send it. |
| 134 virtual void ClearFocusedNode() = 0; |
| 135 |
| 132 // Requests the webview to download an image. When done, the delegate is | 136 // Requests the webview to download an image. When done, the delegate is |
| 133 // notified by way of DidDownloadImage. Returns true if the request was | 137 // notified by way of DidDownloadImage. Returns true if the request was |
| 134 // successfully started, false otherwise. id is used to uniquely identify the | 138 // successfully started, false otherwise. id is used to uniquely identify the |
| 135 // request and passed back to the DidDownloadImage method. If the image has | 139 // request and passed back to the DidDownloadImage method. If the image has |
| 136 // multiple frames, the frame whose size is image_size is returned. If the | 140 // multiple frames, the frame whose size is image_size is returned. If the |
| 137 // image doesn't have a frame at the specified size, the first is returned. | 141 // image doesn't have a frame at the specified size, the first is returned. |
| 138 virtual bool DownloadImage(int id, const GURL& image_url, int image_size) = 0; | 142 virtual bool DownloadImage(int id, const GURL& image_url, int image_size) = 0; |
| 139 | 143 |
| 140 // Replace the standard setting for the WebView with |preferences|. | 144 // Replace the standard setting for the WebView with |preferences|. |
| 141 virtual void SetPreferences(const WebPreferences& preferences) = 0; | 145 virtual void SetPreferences(const WebPreferences& preferences) = 0; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 const std::vector<std::wstring>& suggestions, | 215 const std::vector<std::wstring>& suggestions, |
| 212 int default_suggestion_index) = 0; | 216 int default_suggestion_index) = 0; |
| 213 | 217 |
| 214 // Hides the autofill popup if any are showing. | 218 // Hides the autofill popup if any are showing. |
| 215 virtual void HideAutofillPopup() = 0; | 219 virtual void HideAutofillPopup() = 0; |
| 216 | 220 |
| 217 // Returns development tools agent instance belonging to this view. | 221 // Returns development tools agent instance belonging to this view. |
| 218 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; | 222 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; |
| 219 | 223 |
| 220 private: | 224 private: |
| 221 DISALLOW_EVIL_CONSTRUCTORS(WebView); | 225 DISALLOW_COPY_AND_ASSIGN(WebView); |
| 222 }; | 226 }; |
| 223 | 227 |
| 224 #endif // WEBKIT_GLUE_WEBVIEW_H__ | 228 #endif // WEBKIT_GLUE_WEBVIEW_H_ |
| OLD | NEW |