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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <list> | 10 #include <list> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 virtual void ShowCreatedWidget(int route_id, | 158 virtual void ShowCreatedWidget(int route_id, |
159 const gfx::Rect& initial_pos); | 159 const gfx::Rect& initial_pos); |
160 virtual void ShowContextMenu(const ContextMenuParams& params); | 160 virtual void ShowContextMenu(const ContextMenuParams& params); |
161 virtual void StartDragging(const WebDropData& drop_data, | 161 virtual void StartDragging(const WebDropData& drop_data, |
162 WebKit::WebDragOperationsMask allowed_operations, | 162 WebKit::WebDragOperationsMask allowed_operations, |
163 const SkBitmap& image, | 163 const SkBitmap& image, |
164 const gfx::Point& image_offset); | 164 const gfx::Point& image_offset); |
165 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 165 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
166 virtual void GotFocus(); | 166 virtual void GotFocus(); |
167 virtual void TakeFocus(bool reverse); | 167 virtual void TakeFocus(bool reverse); |
| 168 virtual void Activate(); |
| 169 virtual void Deactivate(); |
168 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 170 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
169 bool* is_keyboard_shortcut); | 171 bool* is_keyboard_shortcut); |
170 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 172 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
171 virtual void HandleMouseMove(); | 173 virtual void HandleMouseMove(); |
172 virtual void HandleMouseDown(); | 174 virtual void HandleMouseDown(); |
173 virtual void HandleMouseLeave(); | 175 virtual void HandleMouseLeave(); |
174 virtual void UpdatePreferredSize(const gfx::Size& new_size); | 176 virtual void UpdatePreferredSize(const gfx::Size& new_size); |
175 | 177 |
176 // NotificationObserver | 178 // NotificationObserver |
177 virtual void Observe(NotificationType type, | 179 virtual void Observe(NotificationType type, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // The relevant TabContents associated with this ExtensionHost, if any. | 274 // The relevant TabContents associated with this ExtensionHost, if any. |
273 TabContents* associated_tab_contents_; | 275 TabContents* associated_tab_contents_; |
274 | 276 |
275 // Used to measure how long it's been since the host was created. | 277 // Used to measure how long it's been since the host was created. |
276 PerfTimer since_created_; | 278 PerfTimer since_created_; |
277 | 279 |
278 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 280 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
279 }; | 281 }; |
280 | 282 |
281 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 283 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |