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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 private: | 62 private: |
63 // TabContentsDelegate implementation: | 63 // TabContentsDelegate implementation: |
64 virtual void CloseContents(TabContents* source) OVERRIDE; | 64 virtual void CloseContents(TabContents* source) OVERRIDE; |
65 virtual void HandleMouseDown() OVERRIDE; | 65 virtual void HandleMouseDown() OVERRIDE; |
66 virtual void UpdatePreferredSize(TabContents* source, | 66 virtual void UpdatePreferredSize(TabContents* source, |
67 const gfx::Size& pref_size) OVERRIDE; | 67 const gfx::Size& pref_size) OVERRIDE; |
68 | 68 |
69 // TabContentsObserver implementation: | 69 // TabContentsObserver implementation: |
70 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 70 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
71 virtual void RenderViewReady() OVERRIDE; | 71 virtual void RenderViewReady() OVERRIDE; |
72 virtual void RenderViewGone() OVERRIDE; | 72 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
73 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 73 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
74 | 74 |
75 // Message handlers | 75 // Message handlers |
76 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 76 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
77 | 77 |
78 // Called to send an event that the balloon has been disconnected from | 78 // Called to send an event that the balloon has been disconnected from |
79 // a renderer (if should_notify_on_disconnect_ is true). | 79 // a renderer (if should_notify_on_disconnect_ is true). |
80 void NotifyDisconnect(); | 80 void NotifyDisconnect(); |
81 | 81 |
82 // Non-owned pointer to the associated balloon. | 82 // Non-owned pointer to the associated balloon. |
(...skipping 10 matching lines...) Expand all Loading... |
93 // Site instance for the balloon/profile, to be used for opening new links. | 93 // Site instance for the balloon/profile, to be used for opening new links. |
94 scoped_refptr<SiteInstance> site_instance_; | 94 scoped_refptr<SiteInstance> site_instance_; |
95 | 95 |
96 // A flag to enable Web UI. | 96 // A flag to enable Web UI. |
97 bool enable_web_ui_; | 97 bool enable_web_ui_; |
98 | 98 |
99 ExtensionFunctionDispatcher extension_function_dispatcher_; | 99 ExtensionFunctionDispatcher extension_function_dispatcher_; |
100 }; | 100 }; |
101 | 101 |
102 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 102 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
OLD | NEW |