| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 const string16& frame_name) = 0; | 112 const string16& frame_name) = 0; |
| 113 | 113 |
| 114 // The page is trying to open a new widget (e.g. a select popup). The | 114 // The page is trying to open a new widget (e.g. a select popup). The |
| 115 // widget should be created associated with the given route, but it should | 115 // widget should be created associated with the given route, but it should |
| 116 // not be shown yet. That should happen in response to ShowCreatedWidget. | 116 // not be shown yet. That should happen in response to ShowCreatedWidget. |
| 117 // |popup_type| indicates if the widget is a popup and what kind of popup it | 117 // |popup_type| indicates if the widget is a popup and what kind of popup it |
| 118 // is (select, autofill...). | 118 // is (select, autofill...). |
| 119 virtual void CreateNewWidget(int route_id, | 119 virtual void CreateNewWidget(int route_id, |
| 120 WebKit::WebPopupType popup_type) = 0; | 120 WebKit::WebPopupType popup_type) = 0; |
| 121 | 121 |
| 122 // Creates a full screen RenderWidget. Similar to above. |
| 123 virtual void CreateNewFullscreenWidget( |
| 124 int route_id, WebKit::WebPopupType popup_type) = 0; |
| 125 |
| 122 // Show a previously created page with the specified disposition and bounds. | 126 // Show a previously created page with the specified disposition and bounds. |
| 123 // The window is identified by the route_id passed to CreateNewWindow. | 127 // The window is identified by the route_id passed to CreateNewWindow. |
| 124 // | 128 // |
| 125 // Note: this is not called "ShowWindow" because that will clash with | 129 // Note: this is not called "ShowWindow" because that will clash with |
| 126 // the Windows function which is actually a #define. | 130 // the Windows function which is actually a #define. |
| 127 virtual void ShowCreatedWindow(int route_id, | 131 virtual void ShowCreatedWindow(int route_id, |
| 128 WindowOpenDisposition disposition, | 132 WindowOpenDisposition disposition, |
| 129 const gfx::Rect& initial_pos, | 133 const gfx::Rect& initial_pos, |
| 130 bool user_gesture) = 0; | 134 bool user_gesture) = 0; |
| 131 | 135 |
| 132 // Show the newly created widget with the specified bounds. | 136 // Show the newly created widget with the specified bounds. |
| 133 // The widget is identified by the route_id passed to CreateNewWidget. | 137 // The widget is identified by the route_id passed to CreateNewWidget. |
| 134 virtual void ShowCreatedWidget(int route_id, | 138 virtual void ShowCreatedWidget(int route_id, |
| 135 const gfx::Rect& initial_pos) = 0; | 139 const gfx::Rect& initial_pos) = 0; |
| 136 | 140 |
| 141 // Show the newly created full screen widget. Similar to above. |
| 142 virtual void ShowCreatedFullscreenWidget(int route_id) = 0; |
| 143 |
| 137 // A context menu should be shown, to be built using the context information | 144 // A context menu should be shown, to be built using the context information |
| 138 // provided in the supplied params. | 145 // provided in the supplied params. |
| 139 virtual void ShowContextMenu(const ContextMenuParams& params) = 0; | 146 virtual void ShowContextMenu(const ContextMenuParams& params) = 0; |
| 140 | 147 |
| 141 // The user started dragging content of the specified type within the | 148 // The user started dragging content of the specified type within the |
| 142 // RenderView. Contextual information about the dragged content is supplied | 149 // RenderView. Contextual information about the dragged content is supplied |
| 143 // by WebDropData. | 150 // by WebDropData. |
| 144 virtual void StartDragging(const WebDropData& drop_data, | 151 virtual void StartDragging(const WebDropData& drop_data, |
| 145 WebKit::WebDragOperationsMask allowed_ops, | 152 WebKit::WebDragOperationsMask allowed_ops, |
| 146 const SkBitmap& image, | 153 const SkBitmap& image, |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 virtual void FocusedNodeChanged() {} | 814 virtual void FocusedNodeChanged() {} |
| 808 | 815 |
| 809 // The content being displayed is a PDF. | 816 // The content being displayed is a PDF. |
| 810 virtual void SetDisplayingPDFContent() {} | 817 virtual void SetDisplayingPDFContent() {} |
| 811 | 818 |
| 812 protected: | 819 protected: |
| 813 virtual ~RenderViewHostDelegate() {} | 820 virtual ~RenderViewHostDelegate() {} |
| 814 }; | 821 }; |
| 815 | 822 |
| 816 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 823 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |