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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 53 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
54 virtual void RenderViewReady(RenderViewHost* render_view_host); | 54 virtual void RenderViewReady(RenderViewHost* render_view_host); |
55 virtual void RenderViewGone(RenderViewHost* render_view_host, | 55 virtual void RenderViewGone(RenderViewHost* render_view_host, |
56 base::TerminationStatus status, | 56 base::TerminationStatus status, |
57 int error_code); | 57 int error_code); |
58 virtual void UpdateTitle(RenderViewHost* render_view_host, | 58 virtual void UpdateTitle(RenderViewHost* render_view_host, |
59 int32 page_id, const std::wstring& title) {} | 59 int32 page_id, const std::wstring& title) {} |
60 virtual int GetBrowserWindowID() const; | 60 virtual int GetBrowserWindowID() const; |
61 virtual ViewType::Type GetRenderViewType() const; | 61 virtual ViewType::Type GetRenderViewType() const; |
62 virtual RenderViewHostDelegate::View* GetViewDelegate(); | 62 virtual RenderViewHostDelegate::View* GetViewDelegate(); |
63 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params); | 63 virtual void ProcessWebUIMessage( |
| 64 const ExtensionHostMsg_DomMessage_Params& params); |
64 | 65 |
65 // NotificationObserver override. | 66 // NotificationObserver override. |
66 virtual void Observe(NotificationType type, | 67 virtual void Observe(NotificationType type, |
67 const NotificationSource& source, | 68 const NotificationSource& source, |
68 const NotificationDetails& details); | 69 const NotificationDetails& details); |
69 | 70 |
70 | 71 |
71 // RenderViewHostDelegate::View methods. Only the ones for opening new | 72 // RenderViewHostDelegate::View methods. Only the ones for opening new |
72 // windows are currently implemented. | 73 // windows are currently implemented. |
73 virtual void CreateNewWindow( | 74 virtual void CreateNewWindow( |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // rendering a page from an extension. | 155 // rendering a page from an extension. |
155 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 156 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
156 | 157 |
157 // A flag to enable Web UI. | 158 // A flag to enable Web UI. |
158 bool enable_web_ui_; | 159 bool enable_web_ui_; |
159 | 160 |
160 NotificationRegistrar registrar_; | 161 NotificationRegistrar registrar_; |
161 }; | 162 }; |
162 | 163 |
163 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 164 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
OLD | NEW |