OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 struct ViewHostMsg_FrameNavigate_Params; | 37 struct ViewHostMsg_FrameNavigate_Params; |
38 struct WebDropData; | 38 struct WebDropData; |
39 class WebKeyboardEvent; | 39 class WebKeyboardEvent; |
40 struct WebPreferences; | 40 struct WebPreferences; |
41 | 41 |
42 namespace base { | 42 namespace base { |
43 class WaitableEvent; | 43 class WaitableEvent; |
44 } | 44 } |
45 | 45 |
46 namespace gfx { | 46 namespace gfx { |
| 47 class Point; |
47 class Rect; | 48 class Rect; |
48 class Size; | 49 class Size; |
49 } | 50 } |
50 | 51 |
51 namespace IPC { | 52 namespace IPC { |
52 class Message; | 53 class Message; |
53 } | 54 } |
54 | 55 |
55 namespace webkit_glue { | 56 namespace webkit_glue { |
56 struct FormData; | 57 struct FormData; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 const gfx::Rect& initial_pos) = 0; | 112 const gfx::Rect& initial_pos) = 0; |
112 | 113 |
113 // A context menu should be shown, to be built using the context information | 114 // A context menu should be shown, to be built using the context information |
114 // provided in the supplied params. | 115 // provided in the supplied params. |
115 virtual void ShowContextMenu(const ContextMenuParams& params) = 0; | 116 virtual void ShowContextMenu(const ContextMenuParams& params) = 0; |
116 | 117 |
117 // The user started dragging content of the specified type within the | 118 // The user started dragging content of the specified type within the |
118 // RenderView. Contextual information about the dragged content is supplied | 119 // RenderView. Contextual information about the dragged content is supplied |
119 // by WebDropData. | 120 // by WebDropData. |
120 virtual void StartDragging(const WebDropData& drop_data, | 121 virtual void StartDragging(const WebDropData& drop_data, |
121 WebKit::WebDragOperationsMask allowed_ops) = 0; | 122 WebKit::WebDragOperationsMask allowed_ops, |
| 123 const SkBitmap& image, |
| 124 const gfx::Point& image_offset) = 0; |
122 | 125 |
123 // The page wants to update the mouse cursor during a drag & drop operation. | 126 // The page wants to update the mouse cursor during a drag & drop operation. |
124 // |operation| describes the current operation (none, move, copy, link.) | 127 // |operation| describes the current operation (none, move, copy, link.) |
125 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) = 0; | 128 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) = 0; |
126 | 129 |
127 // Notification that view for this delegate got the focus. | 130 // Notification that view for this delegate got the focus. |
128 virtual void GotFocus() = 0; | 131 virtual void GotFocus() = 0; |
129 | 132 |
130 // Callback to inform the browser it should take back focus. If reverse is | 133 // Callback to inform the browser it should take back focus. If reverse is |
131 // true, it means the focus was retrieved by doing a Shift-Tab. | 134 // true, it means the focus was retrieved by doing a Shift-Tab. |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 virtual bool IsExternalTabContainer() const; | 634 virtual bool IsExternalTabContainer() const; |
632 | 635 |
633 // The RenderView has inserted one css file into page. | 636 // The RenderView has inserted one css file into page. |
634 virtual void DidInsertCSS() {} | 637 virtual void DidInsertCSS() {} |
635 | 638 |
636 // A different node in the page got focused. | 639 // A different node in the page got focused. |
637 virtual void FocusedNodeChanged() {} | 640 virtual void FocusedNodeChanged() {} |
638 }; | 641 }; |
639 | 642 |
640 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 643 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |