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 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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 void Close(); | 201 void Close(); |
202 | 202 |
203 #if !defined(OS_ANDROID) | 203 #if !defined(OS_ANDROID) |
204 // ChromeWebModalDialogManagerDelegate | 204 // ChromeWebModalDialogManagerDelegate |
205 virtual web_modal::WebContentsModalDialogHost* | 205 virtual web_modal::WebContentsModalDialogHost* |
206 GetWebContentsModalDialogHost() OVERRIDE; | 206 GetWebContentsModalDialogHost() OVERRIDE; |
207 | 207 |
208 // web_modal::WebContentsModalDialogHost | 208 // web_modal::WebContentsModalDialogHost |
209 virtual gfx::NativeView GetHostView() const OVERRIDE; | 209 virtual gfx::NativeView GetHostView() const OVERRIDE; |
210 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 210 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
| 211 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; |
211 virtual void AddObserver( | 212 virtual void AddObserver( |
212 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 213 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
213 virtual void RemoveObserver( | 214 virtual void RemoveObserver( |
214 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 215 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
215 #endif | 216 #endif |
216 | 217 |
217 // ExtensionFunctionDispatcher::Delegate | 218 // ExtensionFunctionDispatcher::Delegate |
218 virtual WindowController* GetExtensionWindowController() const OVERRIDE; | 219 virtual WindowController* GetExtensionWindowController() const OVERRIDE; |
219 | 220 |
220 // Message handlers. | 221 // Message handlers. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 286 |
286 // Used to measure how long it's been since the host was created. | 287 // Used to measure how long it's been since the host was created. |
287 PerfTimer since_created_; | 288 PerfTimer since_created_; |
288 | 289 |
289 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 290 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
290 }; | 291 }; |
291 | 292 |
292 } // namespace extensions | 293 } // namespace extensions |
293 | 294 |
294 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 295 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |