OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // Requests to lock the mouse. Once the request is approved or rejected, | 189 // Requests to lock the mouse. Once the request is approved or rejected, |
190 // GotResponseToLockMouseRequest() will be called on the requesting render | 190 // GotResponseToLockMouseRequest() will be called on the requesting render |
191 // view host. | 191 // view host. |
192 virtual void RequestToLockMouse(bool user_gesture, | 192 virtual void RequestToLockMouse(bool user_gesture, |
193 bool last_unlocked_by_target) {} | 193 bool last_unlocked_by_target) {} |
194 | 194 |
195 // Notification that the view has lost the mouse lock. | 195 // Notification that the view has lost the mouse lock. |
196 virtual void LostMouseLock() {} | 196 virtual void LostMouseLock() {} |
197 | 197 |
198 // The page is trying to open a new page (e.g. a popup window). The window | 198 // The page is trying to open a new page (e.g. a popup window). The window |
199 // should be created associated with the given |route_id| in process | 199 // should be created associated with the given |route_id| in the process of |
200 // |render_process_id|, but it should not be shown yet. That should happen in | 200 // |source_site_instance|, but it should not be shown yet. That |
201 // response to ShowCreatedWindow. | 201 // should happen in response to ShowCreatedWindow. |
202 // |params.window_container_type| describes the type of RenderViewHost | 202 // |params.window_container_type| describes the type of RenderViewHost |
203 // container that is requested -- in particular, the window.open call may | 203 // container that is requested -- in particular, the window.open call may |
204 // have specified 'background' and 'persistent' in the feature string. | 204 // have specified 'background' and 'persistent' in the feature string. |
205 // | 205 // |
206 // The passed |params.frame_name| parameter is the name parameter that was | 206 // The passed |params.frame_name| parameter is the name parameter that was |
207 // passed to window.open(), and will be empty if none was passed. | 207 // passed to window.open(), and will be empty if none was passed. |
208 // | 208 // |
209 // Note: this is not called "CreateWindow" because that will clash with | 209 // Note: this is not called "CreateWindow" because that will clash with |
210 // the Windows function which is actually a #define. | 210 // the Windows function which is actually a #define. |
| 211 // |
| 212 // TODO(alexmos): This should be moved to RenderFrameHostDelegate, and the |
| 213 // corresponding IPC message should be sent by the RenderFrame creating the |
| 214 // new window. |
211 virtual void CreateNewWindow( | 215 virtual void CreateNewWindow( |
212 int render_process_id, | 216 SiteInstance* source_site_instance, |
213 int route_id, | 217 int route_id, |
214 int main_frame_route_id, | 218 int main_frame_route_id, |
215 const ViewHostMsg_CreateWindow_Params& params, | 219 const ViewHostMsg_CreateWindow_Params& params, |
216 SessionStorageNamespace* session_storage_namespace) {} | 220 SessionStorageNamespace* session_storage_namespace) {} |
217 | 221 |
218 // The page is trying to open a new widget (e.g. a select popup). The | 222 // The page is trying to open a new widget (e.g. a select popup). The |
219 // widget should be created associated with the given |route_id| in the | 223 // widget should be created associated with the given |route_id| in the |
220 // process |render_process_id|, but it should not be shown yet. That should | 224 // process |render_process_id|, but it should not be shown yet. That should |
221 // happen in response to ShowCreatedWidget. | 225 // happen in response to ShowCreatedWidget. |
222 // |popup_type| indicates if the widget is a popup and what kind of popup it | 226 // |popup_type| indicates if the widget is a popup and what kind of popup it |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 276 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
273 virtual bool IsVirtualKeyboardRequested(); | 277 virtual bool IsVirtualKeyboardRequested(); |
274 | 278 |
275 protected: | 279 protected: |
276 virtual ~RenderViewHostDelegate() {} | 280 virtual ~RenderViewHostDelegate() {} |
277 }; | 281 }; |
278 | 282 |
279 } // namespace content | 283 } // namespace content |
280 | 284 |
281 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 285 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |