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