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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
188 // Requests to lock the mouse. Once the request is approved or rejected, | 188 // Requests to lock the mouse. Once the request is approved or rejected, |
189 // GotResponseToLockMouseRequest() will be called on the requesting render | 189 // GotResponseToLockMouseRequest() will be called on the requesting render |
190 // view host. | 190 // view host. |
191 virtual void RequestToLockMouse(bool user_gesture, | 191 virtual void RequestToLockMouse(bool user_gesture, |
192 bool last_unlocked_by_target) {} | 192 bool last_unlocked_by_target) {} |
193 | 193 |
194 // Notification that the view has lost the mouse lock. | 194 // Notification that the view has lost the mouse lock. |
195 virtual void LostMouseLock() {} | 195 virtual void LostMouseLock() {} |
196 | 196 |
197 // The page is trying to open a new page (e.g. a popup window). The window | 197 // The page is trying to open a new page (e.g. a popup window). The window |
198 // should be created associated with the given |route_id| in process | 198 // should be created associated with the given |route_id| in SiteInstance |
Charlie Reis
2015/07/09 23:42:51
nit: in the process of |source_site_instance|,
(R
alexmos
2015/07/10 18:35:00
Done.
| |
199 // |render_process_id|, but it should not be shown yet. That should happen in | 199 // |source_site_instance|, but it should not be shown yet. That should happen |
200 // response to ShowCreatedWindow. | 200 // in response to ShowCreatedWindow. |params.window_container_type| describes |
201 // |params.window_container_type| describes the type of RenderViewHost | 201 // the type of RenderViewHost container that is requested -- in particular, |
202 // container that is requested -- in particular, the window.open call may | 202 // the window.open call may have specified 'background' and 'persistent' in |
203 // have specified 'background' and 'persistent' in the feature string. | 203 // the feature string. |
204 // | 204 // |
205 // The passed |params.frame_name| parameter is the name parameter that was | 205 // The passed |params.frame_name| parameter is the name parameter that was |
206 // passed to window.open(), and will be empty if none was passed. | 206 // passed to window.open(), and will be empty if none was passed. |
207 // | 207 // |
208 // Note: this is not called "CreateWindow" because that will clash with | 208 // Note: this is not called "CreateWindow" because that will clash with |
209 // the Windows function which is actually a #define. | 209 // the Windows function which is actually a #define. |
210 virtual void CreateNewWindow( | 210 virtual void CreateNewWindow( |
Charlie Reis
2015/07/09 23:42:51
General question: does this belong on RenderFrameH
alexmos
2015/07/10 18:35:00
Yeah, I agree this should be moved to RenderFrameH
| |
211 int render_process_id, | 211 SiteInstance* source_site_instance, |
212 int route_id, | 212 int route_id, |
213 int main_frame_route_id, | 213 int main_frame_route_id, |
214 const ViewHostMsg_CreateWindow_Params& params, | 214 const ViewHostMsg_CreateWindow_Params& params, |
215 SessionStorageNamespace* session_storage_namespace) {} | 215 SessionStorageNamespace* session_storage_namespace) {} |
216 | 216 |
217 // The page is trying to open a new widget (e.g. a select popup). The | 217 // The page is trying to open a new widget (e.g. a select popup). The |
218 // widget should be created associated with the given |route_id| in the | 218 // widget should be created associated with the given |route_id| in the |
219 // process |render_process_id|, but it should not be shown yet. That should | 219 // process |render_process_id|, but it should not be shown yet. That should |
220 // happen in response to ShowCreatedWidget. | 220 // happen in response to ShowCreatedWidget. |
221 // |popup_type| indicates if the widget is a popup and what kind of popup it | 221 // |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... | |
271 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 271 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
272 virtual bool IsVirtualKeyboardRequested(); | 272 virtual bool IsVirtualKeyboardRequested(); |
273 | 273 |
274 protected: | 274 protected: |
275 virtual ~RenderViewHostDelegate() {} | 275 virtual ~RenderViewHostDelegate() {} |
276 }; | 276 }; |
277 | 277 |
278 } // namespace content | 278 } // namespace content |
279 | 279 |
280 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 280 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |