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 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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "content/browser/webui/web_ui.h" | 12 #include "content/browser/webui/web_ui_factory.h" |
13 #include "content/common/window_container_type.h" | 13 #include "content/common/window_container_type.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
16 #include "webkit/glue/webpreferences.h" | 16 #include "webkit/glue/webpreferences.h" |
17 #include "webkit/glue/window_open_disposition.h" | 17 #include "webkit/glue/window_open_disposition.h" |
18 | 18 |
19 class BackgroundContents; | 19 class BackgroundContents; |
20 class Profile; | 20 class Profile; |
21 class RenderProcessHost; | 21 class RenderProcessHost; |
22 class RenderViewHost; | 22 class RenderViewHost; |
(...skipping 11 matching lines...) Expand all Loading... |
34 virtual ~RenderViewHostDelegateViewHelper(); | 34 virtual ~RenderViewHostDelegateViewHelper(); |
35 | 35 |
36 // Creates a new renderer for window.open. This will either be a | 36 // Creates a new renderer for window.open. This will either be a |
37 // BackgroundContents (if the window_container_type == | 37 // BackgroundContents (if the window_container_type == |
38 // WINDOW_CONTAINER_TYPE_BACKGROUND and permissions allow) or a TabContents. | 38 // WINDOW_CONTAINER_TYPE_BACKGROUND and permissions allow) or a TabContents. |
39 // If a TabContents is created, it is returned. Otherwise NULL is returned. | 39 // If a TabContents is created, it is returned. Otherwise NULL is returned. |
40 virtual TabContents* CreateNewWindow( | 40 virtual TabContents* CreateNewWindow( |
41 int route_id, | 41 int route_id, |
42 Profile* profile, | 42 Profile* profile, |
43 SiteInstance* site, | 43 SiteInstance* site, |
44 WebUI::TypeID webui_type, | 44 WebUITypeID webui_type, |
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 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 // Master switch for enabling/disabling GPU acceleration for the current | 111 // Master switch for enabling/disabling GPU acceleration for the current |
112 // browser session. It does not change the acceleration settings for | 112 // browser session. It does not change the acceleration settings for |
113 // existing tabs, just the future ones. | 113 // existing tabs, just the future ones. |
114 static bool gpu_enabled_; | 114 static bool gpu_enabled_; |
115 | 115 |
116 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateHelper); | 116 DISALLOW_COPY_AND_ASSIGN(RenderViewHostDelegateHelper); |
117 }; | 117 }; |
118 | 118 |
119 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ | 119 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_DELEGATE_HELPER_H_ |
OLD | NEW |