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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // WebView (if there is such an image) | 164 // WebView (if there is such an image) |
165 virtual void CopyImageAt(int x, int y) = 0; | 165 virtual void CopyImageAt(int x, int y) = 0; |
166 | 166 |
167 // Inspect a particular point in the WebView. (x = -1 || y = -1) is a special | 167 // Inspect a particular point in the WebView. (x = -1 || y = -1) is a special |
168 // case which means inspect the current page and not a specific point. | 168 // case which means inspect the current page and not a specific point. |
169 virtual void InspectElement(int x, int y) = 0; | 169 virtual void InspectElement(int x, int y) = 0; |
170 | 170 |
171 // Show the JavaScript console. | 171 // Show the JavaScript console. |
172 virtual void ShowJavaScriptConsole() = 0; | 172 virtual void ShowJavaScriptConsole() = 0; |
173 | 173 |
| 174 // Notifies the webview that a drag has been cancelled. |
| 175 virtual void DragSourceCancelledAt( |
| 176 const WebKit::WebPoint& client_point, |
| 177 const WebKit::WebPoint& screen_point) = 0; |
| 178 |
174 // Notifies the webview that a drag has terminated. | 179 // Notifies the webview that a drag has terminated. |
175 virtual void DragSourceEndedAt( | 180 virtual void DragSourceEndedAt( |
176 const WebKit::WebPoint& client_point, | 181 const WebKit::WebPoint& client_point, |
177 const WebKit::WebPoint& screen_point) = 0; | 182 const WebKit::WebPoint& screen_point) = 0; |
178 | 183 |
179 // Notifies the webview that a drag and drop operation is in progress, with | 184 // Notifies the webview that a drag and drop operation is in progress, with |
180 // dropable items over the view. | 185 // dropable items over the view. |
181 virtual void DragSourceMovedTo( | 186 virtual void DragSourceMovedTo( |
182 const WebKit::WebPoint& client_point, | 187 const WebKit::WebPoint& client_point, |
183 const WebKit::WebPoint& screen_point) = 0; | 188 const WebKit::WebPoint& screen_point) = 0; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // Makes the webview transparent. Useful if you want to have some custom | 228 // Makes the webview transparent. Useful if you want to have some custom |
224 // background behind it. | 229 // background behind it. |
225 virtual void SetIsTransparent(bool is_transparent) = 0; | 230 virtual void SetIsTransparent(bool is_transparent) = 0; |
226 virtual bool GetIsTransparent() const = 0; | 231 virtual bool GetIsTransparent() const = 0; |
227 | 232 |
228 private: | 233 private: |
229 DISALLOW_COPY_AND_ASSIGN(WebView); | 234 DISALLOW_COPY_AND_ASSIGN(WebView); |
230 }; | 235 }; |
231 | 236 |
232 #endif // WEBKIT_GLUE_WEBVIEW_H_ | 237 #endif // WEBKIT_GLUE_WEBVIEW_H_ |
OLD | NEW |