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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 19 matching lines...) Expand all Loading... | |
30 public: | 30 public: |
31 explicit BalloonHost(Balloon* balloon); | 31 explicit BalloonHost(Balloon* balloon); |
32 | 32 |
33 // Initialize the view. | 33 // Initialize the view. |
34 void Init(); | 34 void Init(); |
35 | 35 |
36 // Stops showing the balloon. | 36 // Stops showing the balloon. |
37 void Shutdown(); | 37 void Shutdown(); |
38 | 38 |
39 // ExtensionFunctionDispatcher::Delegate overrides. | 39 // ExtensionFunctionDispatcher::Delegate overrides. |
40 virtual Browser* GetBrowser() OVERRIDE; | 40 virtual ExtensionWindowController* GetExtensionWindowController() |
sky
2012/05/03 21:04:47
nit: In this case wrap the function name to the ne
| |
41 const OVERRIDE; | |
41 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 42 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
42 | 43 |
43 const string16& GetSource() const; | 44 const string16& GetSource() const; |
44 | 45 |
45 content::WebContents* web_contents() const { return web_contents_.get(); } | 46 content::WebContents* web_contents() const { return web_contents_.get(); } |
46 | 47 |
47 // Enable Web UI. This has to be called before renderer is created. | 48 // Enable Web UI. This has to be called before renderer is created. |
48 void EnableWebUI(); | 49 void EnableWebUI(); |
49 | 50 |
50 // Returns whether the associated render view is ready. Used only for testing. | 51 // Returns whether the associated render view is ready. Used only for testing. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 // Site instance for the balloon/profile, to be used for opening new links. | 99 // Site instance for the balloon/profile, to be used for opening new links. |
99 scoped_refptr<content::SiteInstance> site_instance_; | 100 scoped_refptr<content::SiteInstance> site_instance_; |
100 | 101 |
101 // A flag to enable Web UI. | 102 // A flag to enable Web UI. |
102 bool enable_web_ui_; | 103 bool enable_web_ui_; |
103 | 104 |
104 ExtensionFunctionDispatcher extension_function_dispatcher_; | 105 ExtensionFunctionDispatcher extension_function_dispatcher_; |
105 }; | 106 }; |
106 | 107 |
107 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 108 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
OLD | NEW |