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