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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // | 211 // |
212 // TODO(alexmos): This should be moved to RenderFrameHostDelegate, and the | 212 // TODO(alexmos): This should be moved to RenderFrameHostDelegate, and the |
213 // corresponding IPC message should be sent by the RenderFrame creating the | 213 // corresponding IPC message should be sent by the RenderFrame creating the |
214 // new window. | 214 // new window. |
215 virtual void CreateNewWindow( | 215 virtual void CreateNewWindow( |
216 SiteInstance* source_site_instance, | 216 SiteInstance* source_site_instance, |
217 int route_id, | 217 int32 route_id, |
218 int main_frame_route_id, | 218 int32 main_frame_route_id, |
| 219 int32 main_frame_widget_route_id, |
219 const ViewHostMsg_CreateWindow_Params& params, | 220 const ViewHostMsg_CreateWindow_Params& params, |
220 SessionStorageNamespace* session_storage_namespace) {} | 221 SessionStorageNamespace* session_storage_namespace) {} |
221 | 222 |
222 // The page is trying to open a new widget (e.g. a select popup). The | 223 // The page is trying to open a new widget (e.g. a select popup). The |
223 // widget should be created associated with the given |route_id| in the | 224 // widget should be created associated with the given |route_id| in the |
224 // process |render_process_id|, but it should not be shown yet. That should | 225 // process |render_process_id|, but it should not be shown yet. That should |
225 // happen in response to ShowCreatedWidget. | 226 // happen in response to ShowCreatedWidget. |
226 // |popup_type| indicates if the widget is a popup and what kind of popup it | 227 // |popup_type| indicates if the widget is a popup and what kind of popup it |
227 // is (select, autofill...). | 228 // is (select, autofill...). |
228 virtual void CreateNewWidget(int render_process_id, | 229 virtual void CreateNewWidget(int render_process_id, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 277 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
277 virtual bool IsVirtualKeyboardRequested(); | 278 virtual bool IsVirtualKeyboardRequested(); |
278 | 279 |
279 protected: | 280 protected: |
280 virtual ~RenderViewHostDelegate() {} | 281 virtual ~RenderViewHostDelegate() {} |
281 }; | 282 }; |
282 | 283 |
283 } // namespace content | 284 } // namespace content |
284 | 285 |
285 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 286 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |