| 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/perftimer.h" | 10 #include "base/perftimer.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 bool user_gesture, | 133 bool user_gesture, |
| 134 const GURL& creator_url); | 134 const GURL& creator_url); |
| 135 virtual void ShowCreatedWidget(int route_id, | 135 virtual void ShowCreatedWidget(int route_id, |
| 136 const gfx::Rect& initial_pos); | 136 const gfx::Rect& initial_pos); |
| 137 virtual void ShowContextMenu(const ContextMenuParams& params); | 137 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 138 virtual void StartDragging(const WebDropData& drop_data, | 138 virtual void StartDragging(const WebDropData& drop_data, |
| 139 WebKit::WebDragOperationsMask allowed_operations); | 139 WebKit::WebDragOperationsMask allowed_operations); |
| 140 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 140 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
| 141 virtual void GotFocus(); | 141 virtual void GotFocus(); |
| 142 virtual void TakeFocus(bool reverse); | 142 virtual void TakeFocus(bool reverse); |
| 143 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event); | 143 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 144 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 144 bool* is_keyboard_shortcut); |
| 145 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 145 virtual void HandleMouseEvent(); | 146 virtual void HandleMouseEvent(); |
| 146 virtual void HandleMouseLeave(); | 147 virtual void HandleMouseLeave(); |
| 147 virtual void UpdatePreferredSize(const gfx::Size& new_size); | 148 virtual void UpdatePreferredSize(const gfx::Size& new_size); |
| 148 | 149 |
| 149 // NotificationObserver | 150 // NotificationObserver |
| 150 virtual void Observe(NotificationType type, | 151 virtual void Observe(NotificationType type, |
| 151 const NotificationSource& source, | 152 const NotificationSource& source, |
| 152 const NotificationDetails& details); | 153 const NotificationDetails& details); |
| 153 | 154 |
| 154 // JavaScriptMessageBoxClient | 155 // JavaScriptMessageBoxClient |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // are used here, others are not hosted by ExtensionHost. | 239 // are used here, others are not hosted by ExtensionHost. |
| 239 ViewType::Type extension_host_type_; | 240 ViewType::Type extension_host_type_; |
| 240 | 241 |
| 241 // Used to measure how long it's been since the host was created. | 242 // Used to measure how long it's been since the host was created. |
| 242 PerfTimer since_created_; | 243 PerfTimer since_created_; |
| 243 | 244 |
| 244 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 245 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 245 }; | 246 }; |
| 246 | 247 |
| 247 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 248 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |