| OLD | NEW |
| 1 // Copyright (c) 2010 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> |
| 11 | 11 |
| (...skipping 16 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 Browser* GetBrowser() const; | 38 virtual Browser* GetBrowser(); |
| 39 virtual gfx::NativeView GetNativeViewOfHost(); | 39 virtual gfx::NativeView GetNativeViewOfHost(); |
| 40 virtual TabContents* associated_tab_contents() const; | 40 virtual TabContents* associated_tab_contents() const; |
| 41 | 41 |
| 42 RenderViewHost* render_view_host() const { return render_view_host_; } | 42 RenderViewHost* render_view_host() const { return render_view_host_; } |
| 43 | 43 |
| 44 const string16& GetSource() const; | 44 const string16& GetSource() const; |
| 45 | 45 |
| 46 // RenderViewHostDelegate overrides. | 46 // RenderViewHostDelegate overrides. |
| 47 virtual WebPreferences GetWebkitPrefs(); | 47 virtual WebPreferences GetWebkitPrefs(); |
| 48 virtual SiteInstance* GetSiteInstance() const; | 48 virtual SiteInstance* GetSiteInstance() const; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // rendering a page from an extension. | 155 // rendering a page from an extension. |
| 156 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 156 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 157 | 157 |
| 158 // A flag to enable DOM UI. | 158 // A flag to enable DOM UI. |
| 159 bool enable_dom_ui_; | 159 bool enable_dom_ui_; |
| 160 | 160 |
| 161 NotificationRegistrar registrar_; | 161 NotificationRegistrar registrar_; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 164 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| OLD | NEW |