OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 24 matching lines...) Expand all Loading... |
35 struct WebDropData; | 35 struct WebDropData; |
36 struct WebMenuItem; | 36 struct WebMenuItem; |
37 struct WebPreferences; | 37 struct WebPreferences; |
38 | 38 |
39 namespace base { | 39 namespace base { |
40 class ListValue; | 40 class ListValue; |
41 } | 41 } |
42 | 42 |
43 namespace content { | 43 namespace content { |
44 class BrowserContext; | 44 class BrowserContext; |
| 45 class ContentFrame; |
45 struct FileChooserParams; | 46 struct FileChooserParams; |
46 struct Referrer; | 47 struct Referrer; |
47 struct RendererPreferences; | 48 struct RendererPreferences; |
48 } | 49 } |
49 | 50 |
50 namespace gfx { | 51 namespace gfx { |
51 class Point; | 52 class Point; |
52 class Rect; | 53 class Rect; |
53 class Size; | 54 class Size; |
54 } | 55 } |
(...skipping 23 matching lines...) Expand all Loading... |
78 // container that is requested -- in particular, the window.open call may | 79 // container that is requested -- in particular, the window.open call may |
79 // have specified 'background' and 'persistent' in the feature string. | 80 // have specified 'background' and 'persistent' in the feature string. |
80 // | 81 // |
81 // The passed |params.frame_name| parameter is the name parameter that was | 82 // The passed |params.frame_name| parameter is the name parameter that was |
82 // passed to window.open(), and will be empty if none was passed. | 83 // passed to window.open(), and will be empty if none was passed. |
83 // | 84 // |
84 // Note: this is not called "CreateWindow" because that will clash with | 85 // Note: this is not called "CreateWindow" because that will clash with |
85 // the Windows function which is actually a #define. | 86 // the Windows function which is actually a #define. |
86 virtual void CreateNewWindow( | 87 virtual void CreateNewWindow( |
87 int route_id, | 88 int route_id, |
88 const ViewHostMsg_CreateWindow_Params& params) = 0; | 89 const ViewHostMsg_CreateWindow_Params& params, |
| 90 content::ContentFrame* opener) = 0; |
89 | 91 |
90 // The page is trying to open a new widget (e.g. a select popup). The | 92 // The page is trying to open a new widget (e.g. a select popup). The |
91 // widget should be created associated with the given route, but it should | 93 // widget should be created associated with the given route, but it should |
92 // not be shown yet. That should happen in response to ShowCreatedWidget. | 94 // not be shown yet. That should happen in response to ShowCreatedWidget. |
93 // |popup_type| indicates if the widget is a popup and what kind of popup it | 95 // |popup_type| indicates if the widget is a popup and what kind of popup it |
94 // is (select, autofill...). | 96 // is (select, autofill...). |
95 virtual void CreateNewWidget(int route_id, | 97 virtual void CreateNewWidget(int route_id, |
96 WebKit::WebPopupType popup_type) = 0; | 98 WebKit::WebPopupType popup_type) = 0; |
97 | 99 |
98 // Creates a full screen RenderWidget. Similar to above. | 100 // Creates a full screen RenderWidget. Similar to above. |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 virtual void RequestToLockMouse() {} | 392 virtual void RequestToLockMouse() {} |
391 | 393 |
392 // Notification that the view has lost the mouse lock. | 394 // Notification that the view has lost the mouse lock. |
393 virtual void LostMouseLock() {} | 395 virtual void LostMouseLock() {} |
394 | 396 |
395 protected: | 397 protected: |
396 virtual ~RenderViewHostDelegate() {} | 398 virtual ~RenderViewHostDelegate() {} |
397 }; | 399 }; |
398 | 400 |
399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 401 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |