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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 // container that is requested -- in particular, the window.open call may | 357 // container that is requested -- in particular, the window.open call may |
358 // have specified 'background' and 'persistent' in the feature string. | 358 // have specified 'background' and 'persistent' in the feature string. |
359 // | 359 // |
360 // The passed |params.frame_name| parameter is the name parameter that was | 360 // The passed |params.frame_name| parameter is the name parameter that was |
361 // passed to window.open(), and will be empty if none was passed. | 361 // passed to window.open(), and will be empty if none was passed. |
362 // | 362 // |
363 // Note: this is not called "CreateWindow" because that will clash with | 363 // Note: this is not called "CreateWindow" because that will clash with |
364 // the Windows function which is actually a #define. | 364 // the Windows function which is actually a #define. |
365 virtual void CreateNewWindow( | 365 virtual void CreateNewWindow( |
366 int route_id, | 366 int route_id, |
| 367 int main_frame_route_id, |
367 const ViewHostMsg_CreateWindow_Params& params, | 368 const ViewHostMsg_CreateWindow_Params& params, |
368 SessionStorageNamespace* session_storage_namespace) {} | 369 SessionStorageNamespace* session_storage_namespace) {} |
369 | 370 |
370 // The page is trying to open a new widget (e.g. a select popup). The | 371 // The page is trying to open a new widget (e.g. a select popup). The |
371 // widget should be created associated with the given route, but it should | 372 // widget should be created associated with the given route, but it should |
372 // not be shown yet. That should happen in response to ShowCreatedWidget. | 373 // not be shown yet. That should happen in response to ShowCreatedWidget. |
373 // |popup_type| indicates if the widget is a popup and what kind of popup it | 374 // |popup_type| indicates if the widget is a popup and what kind of popup it |
374 // is (select, autofill...). | 375 // is (select, autofill...). |
375 virtual void CreateNewWidget(int route_id, | 376 virtual void CreateNewWidget(int route_id, |
376 WebKit::WebPopupType popup_type) {} | 377 WebKit::WebPopupType popup_type) {} |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 const MediaStreamRequest& request, | 409 const MediaStreamRequest& request, |
409 const MediaResponseCallback& callback) {} | 410 const MediaResponseCallback& callback) {} |
410 | 411 |
411 protected: | 412 protected: |
412 virtual ~RenderViewHostDelegate() {} | 413 virtual ~RenderViewHostDelegate() {} |
413 }; | 414 }; |
414 | 415 |
415 } // namespace content | 416 } // namespace content |
416 | 417 |
417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |