OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 RenderViewHostDelegate* opener, | 45 RenderViewHostDelegate* opener, |
46 WindowContainerType window_container_type, | 46 WindowContainerType window_container_type, |
47 const string16& frame_name); | 47 const string16& frame_name); |
48 | 48 |
49 // Creates a new RenderWidgetHost and saves it for later retrieval by | 49 // Creates a new RenderWidgetHost and saves it for later retrieval by |
50 // GetCreatedWidget. | 50 // GetCreatedWidget. |
51 virtual RenderWidgetHostView* CreateNewWidget(int route_id, | 51 virtual RenderWidgetHostView* CreateNewWidget(int route_id, |
52 WebKit::WebPopupType popup_type, | 52 WebKit::WebPopupType popup_type, |
53 RenderProcessHost* process); | 53 RenderProcessHost* process); |
54 | 54 |
| 55 virtual RenderWidgetHostView* CreateNewFullscreenWidget( |
| 56 int route_id, |
| 57 WebKit::WebPopupType popup_type, |
| 58 RenderProcessHost* process); |
| 59 |
55 // Finds the new RenderWidgetHost and returns it. Note that this can only be | 60 // Finds the new RenderWidgetHost and returns it. Note that this can only be |
56 // called once as this call also removes it from the internal map. | 61 // called once as this call also removes it from the internal map. |
57 virtual RenderWidgetHostView* GetCreatedWidget(int route_id); | 62 virtual RenderWidgetHostView* GetCreatedWidget(int route_id); |
58 | 63 |
59 // Finds the new RenderViewHost/Delegate by route_id, initializes it for | 64 // Finds the new RenderViewHost/Delegate by route_id, initializes it for |
60 // for renderer-initiated creation, and returns the TabContents that needs | 65 // for renderer-initiated creation, and returns the TabContents that needs |
61 // to be shown, if there is one (i.e. not a BackgroundContents). Note that | 66 // to be shown, if there is one (i.e. not a BackgroundContents). Note that |
62 // this can only be called once as this call also removes it from the internal | 67 // this can only be called once as this call also removes it from the internal |
63 // map. | 68 // map. |
64 virtual TabContents* GetCreatedWindow(int route_id); | 69 virtual TabContents* GetCreatedWindow(int route_id); |
(...skipping 29 matching lines...) Expand all Loading... |
94 public: | 99 public: |
95 static WebPreferences GetWebkitPrefs(Profile* profile, bool is_dom_ui); | 100 static WebPreferences GetWebkitPrefs(Profile* profile, bool is_dom_ui); |
96 | 101 |
97 private: | 102 private: |
98 RenderViewHostDelegateHelper(); | 103 RenderViewHostDelegateHelper(); |
99 | 104 |
100 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateHelper); | 105 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateHelper); |
101 }; | 106 }; |
102 | 107 |
103 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ | 108 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ |
OLD | NEW |