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