| 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_NOTIFICATIONS_BALLOON_HOST_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 explicit BalloonHost(Balloon* balloon); | 29 explicit BalloonHost(Balloon* balloon); |
| 30 | 30 |
| 31 // Initialize the view. | 31 // Initialize the view. |
| 32 void Init(); | 32 void Init(); |
| 33 | 33 |
| 34 // Stops showing the balloon. | 34 // Stops showing the balloon. |
| 35 void Shutdown(); | 35 void Shutdown(); |
| 36 | 36 |
| 37 // ExtensionFunctionDispatcher::Delegate overrides. | 37 // ExtensionFunctionDispatcher::Delegate overrides. |
| 38 virtual ExtensionWindowController* GetExtensionWindowController() | 38 virtual extensions::WindowController* GetExtensionWindowController() |
| 39 const OVERRIDE; | 39 const OVERRIDE; |
| 40 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 40 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
| 41 | 41 |
| 42 const string16& GetSource() const; | 42 const string16& GetSource() const; |
| 43 | 43 |
| 44 content::WebContents* web_contents() const { return web_contents_.get(); } | 44 content::WebContents* web_contents() const { return web_contents_.get(); } |
| 45 | 45 |
| 46 // Enable Web UI. This has to be called before renderer is created. | 46 // Enable Web UI. This has to be called before renderer is created. |
| 47 void EnableWebUI(); | 47 void EnableWebUI(); |
| 48 | 48 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // Site instance for the balloon/profile, to be used for opening new links. | 97 // Site instance for the balloon/profile, to be used for opening new links. |
| 98 scoped_refptr<content::SiteInstance> site_instance_; | 98 scoped_refptr<content::SiteInstance> site_instance_; |
| 99 | 99 |
| 100 // A flag to enable Web UI. | 100 // A flag to enable Web UI. |
| 101 bool enable_web_ui_; | 101 bool enable_web_ui_; |
| 102 | 102 |
| 103 ExtensionFunctionDispatcher extension_function_dispatcher_; | 103 ExtensionFunctionDispatcher extension_function_dispatcher_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 106 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| OLD | NEW |