OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/perftimer.h" | 10 #include "base/perftimer.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 virtual void CreateNewWindow(int route_id); | 134 virtual void CreateNewWindow(int route_id); |
135 virtual void CreateNewWidget(int route_id, bool activatable); | 135 virtual void CreateNewWidget(int route_id, bool activatable); |
136 virtual void ShowCreatedWindow(int route_id, | 136 virtual void ShowCreatedWindow(int route_id, |
137 WindowOpenDisposition disposition, | 137 WindowOpenDisposition disposition, |
138 const gfx::Rect& initial_pos, | 138 const gfx::Rect& initial_pos, |
139 bool user_gesture); | 139 bool user_gesture); |
140 virtual void ShowCreatedWidget(int route_id, | 140 virtual void ShowCreatedWidget(int route_id, |
141 const gfx::Rect& initial_pos); | 141 const gfx::Rect& initial_pos); |
142 virtual void ShowContextMenu(const ContextMenuParams& params); | 142 virtual void ShowContextMenu(const ContextMenuParams& params); |
143 virtual void StartDragging(const WebDropData& drop_data, | 143 virtual void StartDragging(const WebDropData& drop_data, |
144 WebKit::WebDragOperationsMask allowed_operations); | 144 WebKit::WebDragOperationsMask allowed_operations, |
| 145 const SkBitmap& image, |
| 146 const gfx::Point& image_offset); |
145 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 147 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
146 virtual void GotFocus(); | 148 virtual void GotFocus(); |
147 virtual void TakeFocus(bool reverse); | 149 virtual void TakeFocus(bool reverse); |
148 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 150 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
149 bool* is_keyboard_shortcut); | 151 bool* is_keyboard_shortcut); |
150 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 152 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
151 virtual void HandleMouseEvent(); | 153 virtual void HandleMouseEvent(); |
152 virtual void HandleMouseLeave(); | 154 virtual void HandleMouseLeave(); |
153 virtual void UpdatePreferredSize(const gfx::Size& new_size); | 155 virtual void UpdatePreferredSize(const gfx::Size& new_size); |
154 | 156 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // are used here, others are not hosted by ExtensionHost. | 255 // are used here, others are not hosted by ExtensionHost. |
254 ViewType::Type extension_host_type_; | 256 ViewType::Type extension_host_type_; |
255 | 257 |
256 // Used to measure how long it's been since the host was created. | 258 // Used to measure how long it's been since the host was created. |
257 PerfTimer since_created_; | 259 PerfTimer since_created_; |
258 | 260 |
259 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 261 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
260 }; | 262 }; |
261 | 263 |
262 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 264 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |