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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // NotificationObserver override. | 64 // NotificationObserver override. |
65 virtual void Observe(NotificationType type, | 65 virtual void Observe(NotificationType type, |
66 const NotificationSource& source, | 66 const NotificationSource& source, |
67 const NotificationDetails& details); | 67 const NotificationDetails& details); |
68 | 68 |
69 | 69 |
70 // RenderViewHostDelegate::View methods. Only the ones for opening new | 70 // RenderViewHostDelegate::View methods. Only the ones for opening new |
71 // windows are currently implemented. | 71 // windows are currently implemented. |
72 virtual void CreateNewWindow( | 72 virtual void CreateNewWindow( |
73 int route_id, | 73 int route_id, |
74 WindowContainerType window_container_type, | 74 const ViewHostMsg_CreateWindow_Params& params); |
75 const string16& frame_name); | |
76 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type) {} | 75 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type) {} |
77 virtual void CreateNewFullscreenWidget( | 76 virtual void CreateNewFullscreenWidget( |
78 int route_id, WebKit::WebPopupType popup_type) {} | 77 int route_id, WebKit::WebPopupType popup_type) {} |
79 virtual void ShowCreatedWindow(int route_id, | 78 virtual void ShowCreatedWindow(int route_id, |
80 WindowOpenDisposition disposition, | 79 WindowOpenDisposition disposition, |
81 const gfx::Rect& initial_pos, | 80 const gfx::Rect& initial_pos, |
82 bool user_gesture); | 81 bool user_gesture); |
83 virtual void ShowCreatedWidget(int route_id, | 82 virtual void ShowCreatedWidget(int route_id, |
84 const gfx::Rect& initial_pos) {} | 83 const gfx::Rect& initial_pos) {} |
85 virtual void ShowCreatedFullscreenWidget(int route_id) {} | 84 virtual void ShowCreatedFullscreenWidget(int route_id) {} |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // rendering a page from an extension. | 154 // rendering a page from an extension. |
156 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 155 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
157 | 156 |
158 // A flag to enable DOM UI. | 157 // A flag to enable DOM UI. |
159 bool enable_dom_ui_; | 158 bool enable_dom_ui_; |
160 | 159 |
161 NotificationRegistrar registrar_; | 160 NotificationRegistrar registrar_; |
162 }; | 161 }; |
163 | 162 |
164 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 163 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
OLD | NEW |