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_EXTENSIONS_EXTENSION_HOST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <list> | 10 #include <list> |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 bool* did_suppress_message); | 138 bool* did_suppress_message); |
139 virtual void Close(RenderViewHost* render_view_host); | 139 virtual void Close(RenderViewHost* render_view_host); |
140 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 140 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
141 | 141 |
142 // RenderViewHostDelegate::View | 142 // RenderViewHostDelegate::View |
143 virtual void CreateNewWindow( | 143 virtual void CreateNewWindow( |
144 int route_id, | 144 int route_id, |
145 WindowContainerType window_container_type, | 145 WindowContainerType window_container_type, |
146 const string16& frame_name); | 146 const string16& frame_name); |
147 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); | 147 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); |
| 148 virtual void CreateNewFullscreenWidget(int route_id, |
| 149 WebKit::WebPopupType popup_type); |
148 virtual void ShowCreatedWindow(int route_id, | 150 virtual void ShowCreatedWindow(int route_id, |
149 WindowOpenDisposition disposition, | 151 WindowOpenDisposition disposition, |
150 const gfx::Rect& initial_pos, | 152 const gfx::Rect& initial_pos, |
151 bool user_gesture); | 153 bool user_gesture); |
152 virtual void ShowCreatedWidget(int route_id, | 154 virtual void ShowCreatedWidget(int route_id, |
153 const gfx::Rect& initial_pos); | 155 const gfx::Rect& initial_pos); |
| 156 virtual void ShowCreatedFullscreenWidget(int route_id); |
154 virtual void ShowContextMenu(const ContextMenuParams& params); | 157 virtual void ShowContextMenu(const ContextMenuParams& params); |
155 virtual void StartDragging(const WebDropData& drop_data, | 158 virtual void StartDragging(const WebDropData& drop_data, |
156 WebKit::WebDragOperationsMask allowed_operations, | 159 WebKit::WebDragOperationsMask allowed_operations, |
157 const SkBitmap& image, | 160 const SkBitmap& image, |
158 const gfx::Point& image_offset); | 161 const gfx::Point& image_offset); |
159 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 162 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
160 virtual void GotFocus(); | 163 virtual void GotFocus(); |
161 virtual void TakeFocus(bool reverse); | 164 virtual void TakeFocus(bool reverse); |
162 virtual void Activate(); | 165 virtual void Activate(); |
163 virtual void Deactivate(); | 166 virtual void Deactivate(); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // The relevant TabContents associated with this ExtensionHost, if any. | 271 // The relevant TabContents associated with this ExtensionHost, if any. |
269 TabContents* associated_tab_contents_; | 272 TabContents* associated_tab_contents_; |
270 | 273 |
271 // Used to measure how long it's been since the host was created. | 274 // Used to measure how long it's been since the host was created. |
272 PerfTimer since_created_; | 275 PerfTimer since_created_; |
273 | 276 |
274 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 277 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
275 }; | 278 }; |
276 | 279 |
277 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 280 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |