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 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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "chrome/common/view_types.h" | 13 #include "chrome/common/view_types.h" |
14 #include "net/base/load_states.h" | 14 #include "net/base/load_states.h" |
| 15 #include "webkit/api/public/WebDragOperation.h" |
15 #include "webkit/glue/window_open_disposition.h" | 16 #include "webkit/glue/window_open_disposition.h" |
16 | 17 |
17 class AutofillForm; | 18 class AutofillForm; |
18 struct ContextMenuParams; | 19 struct ContextMenuParams; |
19 class FilePath; | 20 class FilePath; |
20 class GURL; | 21 class GURL; |
21 struct NativeWebKeyboardEvent; | 22 struct NativeWebKeyboardEvent; |
22 class NavigationEntry; | 23 class NavigationEntry; |
23 class Profile; | 24 class Profile; |
24 struct RendererPreferences; | 25 struct RendererPreferences; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 virtual void ShowCreatedWidget(int route_id, | 105 virtual void ShowCreatedWidget(int route_id, |
105 const gfx::Rect& initial_pos) = 0; | 106 const gfx::Rect& initial_pos) = 0; |
106 | 107 |
107 // A context menu should be shown, to be built using the context information | 108 // A context menu should be shown, to be built using the context information |
108 // provided in the supplied params. | 109 // provided in the supplied params. |
109 virtual void ShowContextMenu(const ContextMenuParams& params) = 0; | 110 virtual void ShowContextMenu(const ContextMenuParams& params) = 0; |
110 | 111 |
111 // The user started dragging content of the specified type within the | 112 // The user started dragging content of the specified type within the |
112 // RenderView. Contextual information about the dragged content is supplied | 113 // RenderView. Contextual information about the dragged content is supplied |
113 // by WebDropData. | 114 // by WebDropData. |
114 virtual void StartDragging(const WebDropData& drop_data) = 0; | 115 virtual void StartDragging(const WebDropData& drop_data, |
| 116 WebKit::WebDragOperationsMask allowed_ops) = 0; |
115 | 117 |
116 // The page wants to update the mouse cursor during a drag & drop operation. | 118 // The page wants to update the mouse cursor during a drag & drop operation. |
117 // |is_drop_target| is true if the mouse is over a valid drop target. | 119 // |operation| describes the current operation (none, move, copy, link.) |
118 virtual void UpdateDragCursor(bool is_drop_target) = 0; | 120 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) = 0; |
119 | 121 |
120 // Notification that view for this delegate got the focus. | 122 // Notification that view for this delegate got the focus. |
121 virtual void GotFocus() = 0; | 123 virtual void GotFocus() = 0; |
122 | 124 |
123 // Callback to inform the browser it should take back focus. If reverse is | 125 // Callback to inform the browser it should take back focus. If reverse is |
124 // true, it means the focus was retrieved by doing a Shift-Tab. | 126 // true, it means the focus was retrieved by doing a Shift-Tab. |
125 virtual void TakeFocus(bool reverse) = 0; | 127 virtual void TakeFocus(bool reverse) = 0; |
126 | 128 |
127 // Callback to inform the browser that the renderer did not process the | 129 // Callback to inform the browser that the renderer did not process the |
128 // specified events. This gives an opportunity to the browser to process the | 130 // specified events. This gives an opportunity to the browser to process the |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state) {} | 540 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state) {} |
539 | 541 |
540 // Returns true if this view is used to host an external tab container. | 542 // Returns true if this view is used to host an external tab container. |
541 virtual bool IsExternalTabContainer() const; | 543 virtual bool IsExternalTabContainer() const; |
542 | 544 |
543 // The RenderView has inserted one css file into page. | 545 // The RenderView has inserted one css file into page. |
544 virtual void DidInsertCSS() {} | 546 virtual void DidInsertCSS() {} |
545 }; | 547 }; |
546 | 548 |
547 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 549 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |