OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_EXTENSIONS_EXTENSION_HOST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 base::WaitableEvent* modal_dialog_event); | 106 base::WaitableEvent* modal_dialog_event); |
107 virtual void CreateNewWidget(int route_id, bool activatable); | 107 virtual void CreateNewWidget(int route_id, bool activatable); |
108 virtual void ShowCreatedWindow(int route_id, | 108 virtual void ShowCreatedWindow(int route_id, |
109 WindowOpenDisposition disposition, | 109 WindowOpenDisposition disposition, |
110 const gfx::Rect& initial_pos, | 110 const gfx::Rect& initial_pos, |
111 bool user_gesture, | 111 bool user_gesture, |
112 const GURL& creator_url); | 112 const GURL& creator_url); |
113 virtual void ShowCreatedWidget(int route_id, | 113 virtual void ShowCreatedWidget(int route_id, |
114 const gfx::Rect& initial_pos); | 114 const gfx::Rect& initial_pos); |
115 virtual void ShowContextMenu(const ContextMenuParams& params); | 115 virtual void ShowContextMenu(const ContextMenuParams& params); |
116 virtual void StartDragging(const WebDropData& drop_data); | 116 virtual void StartDragging(const WebDropData& drop_data, |
117 virtual void UpdateDragCursor(bool is_drop_target); | 117 WebKit::WebDragOperationsMask allowed_operations); |
| 118 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
118 virtual void GotFocus(); | 119 virtual void GotFocus(); |
119 virtual void TakeFocus(bool reverse); | 120 virtual void TakeFocus(bool reverse); |
120 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 121 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
121 virtual void HandleMouseEvent(); | 122 virtual void HandleMouseEvent(); |
122 virtual void HandleMouseLeave(); | 123 virtual void HandleMouseLeave(); |
123 virtual void UpdatePreferredWidth(int pref_width); | 124 virtual void UpdatePreferredWidth(int pref_width); |
124 | 125 |
125 // NotificationObserver | 126 // NotificationObserver |
126 virtual void Observe(NotificationType type, | 127 virtual void Observe(NotificationType type, |
127 const NotificationSource& source, | 128 const NotificationSource& source, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 177 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
177 | 178 |
178 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here, | 179 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here, |
179 // others are not hostd by ExtensionHost. | 180 // others are not hostd by ExtensionHost. |
180 ViewType::Type extension_host_type_; | 181 ViewType::Type extension_host_type_; |
181 | 182 |
182 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 183 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
183 }; | 184 }; |
184 | 185 |
185 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 186 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |