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_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 // Provides helper methods that provide common implementations of some | 30 // Provides helper methods that provide common implementations of some |
31 // WebContentsView methods. | 31 // WebContentsView methods. |
32 class CONTENT_EXPORT WebContentsViewHelper | 32 class CONTENT_EXPORT WebContentsViewHelper |
33 : public content::NotificationObserver { | 33 : public content::NotificationObserver { |
34 public: | 34 public: |
35 WebContentsViewHelper(); | 35 WebContentsViewHelper(); |
36 virtual ~WebContentsViewHelper(); | 36 virtual ~WebContentsViewHelper(); |
37 | 37 |
38 // Creates a new window; call |ShowCreatedWindow| below to show it. | 38 // Creates a new window; call |ShowCreatedWindow| below to show it. |
39 WebContentsImpl* CreateNewWindow( | 39 WebContentsImpl* CreateNewWindow( |
40 WebContentsImpl* web_contents, | 40 WebContentsImpl* opener, |
41 int route_id, | 41 int route_id, |
42 const ViewHostMsg_CreateWindow_Params& params); | 42 const ViewHostMsg_CreateWindow_Params& params); |
43 | 43 |
44 // Creates a new popup or fullscreen widget; call |ShowCreatedWidget| below to | 44 // Creates a new popup or fullscreen widget; call |ShowCreatedWidget| below to |
45 // show it. If |is_fullscreen| is true it is a fullscreen widget, if not then | 45 // show it. If |is_fullscreen| is true it is a fullscreen widget, if not then |
46 // a pop-up. |popup_type| is only meaningful for a pop-up. | 46 // a pop-up. |popup_type| is only meaningful for a pop-up. |
47 content::RenderWidgetHostView* CreateNewWidget( | 47 content::RenderWidgetHostView* CreateNewWidget( |
48 WebContentsImpl* web_contents, | 48 WebContentsImpl* web_contents, |
49 int route_id, | 49 int route_id, |
50 bool is_fullscreen, | 50 bool is_fullscreen, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 typedef std::map<int, content::RenderWidgetHostView*> PendingWidgetViews; | 90 typedef std::map<int, content::RenderWidgetHostView*> PendingWidgetViews; |
91 PendingWidgetViews pending_widget_views_; | 91 PendingWidgetViews pending_widget_views_; |
92 | 92 |
93 // Registers and unregisters us for notifications. | 93 // Registers and unregisters us for notifications. |
94 content::NotificationRegistrar registrar_; | 94 content::NotificationRegistrar registrar_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(WebContentsViewHelper); | 96 DISALLOW_COPY_AND_ASSIGN(WebContentsViewHelper); |
97 }; | 97 }; |
98 | 98 |
99 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ | 99 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ |
OLD | NEW |