OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 20 matching lines...) Expand all Loading... |
31 public: | 31 public: |
32 explicit BalloonHost(Balloon* balloon); | 32 explicit BalloonHost(Balloon* balloon); |
33 | 33 |
34 // Initialize the view. | 34 // Initialize the view. |
35 void Init(); | 35 void Init(); |
36 | 36 |
37 // Stops showing the balloon. | 37 // Stops showing the balloon. |
38 void Shutdown(); | 38 void Shutdown(); |
39 | 39 |
40 // ExtensionFunctionDispatcher::Delegate overrides. | 40 // ExtensionFunctionDispatcher::Delegate overrides. |
41 virtual Browser* GetBrowser(); | 41 virtual Browser* GetBrowser() OVERRIDE; |
42 virtual gfx::NativeView GetNativeViewOfHost(); | 42 virtual gfx::NativeView GetNativeViewOfHost() OVERRIDE; |
43 virtual TabContents* GetAssociatedTabContents() const; | 43 virtual TabContents* GetAssociatedTabContents() const OVERRIDE; |
44 | 44 |
45 const string16& GetSource() const; | 45 const string16& GetSource() const; |
46 | 46 |
47 TabContents* tab_contents() const { return tab_contents_.get(); } | 47 TabContents* tab_contents() const { return tab_contents_.get(); } |
48 | 48 |
49 // Enable Web UI. This has to be called before renderer is created. | 49 // Enable Web UI. This has to be called before renderer is created. |
50 void EnableWebUI(); | 50 void EnableWebUI(); |
51 | 51 |
52 // Returns whether the associated render view is ready. Used only for testing. | 52 // Returns whether the associated render view is ready. Used only for testing. |
53 bool IsRenderViewReady() const; | 53 bool IsRenderViewReady() const; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Site instance for the balloon/profile, to be used for opening new links. | 91 // Site instance for the balloon/profile, to be used for opening new links. |
92 scoped_refptr<SiteInstance> site_instance_; | 92 scoped_refptr<SiteInstance> site_instance_; |
93 | 93 |
94 // A flag to enable Web UI. | 94 // A flag to enable Web UI. |
95 bool enable_web_ui_; | 95 bool enable_web_ui_; |
96 | 96 |
97 ExtensionFunctionDispatcher extension_function_dispatcher_; | 97 ExtensionFunctionDispatcher extension_function_dispatcher_; |
98 }; | 98 }; |
99 | 99 |
100 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 100 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
OLD | NEW |