| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const GURL& creator_url); | 124 const GURL& creator_url); |
| 125 virtual void ShowCreatedWidget(int route_id, | 125 virtual void ShowCreatedWidget(int route_id, |
| 126 const gfx::Rect& initial_pos); | 126 const gfx::Rect& initial_pos); |
| 127 virtual void ShowContextMenu(const ContextMenuParams& params); | 127 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 128 virtual void StartDragging(const WebDropData& drop_data, | 128 virtual void StartDragging(const WebDropData& drop_data, |
| 129 WebKit::WebDragOperationsMask allowed_operations); | 129 WebKit::WebDragOperationsMask allowed_operations); |
| 130 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 130 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
| 131 virtual void GotFocus(); | 131 virtual void GotFocus(); |
| 132 virtual void TakeFocus(bool reverse); | 132 virtual void TakeFocus(bool reverse); |
| 133 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event); | 133 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event); |
| 134 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 134 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 135 virtual void HandleMouseEvent(); | 135 virtual void HandleMouseEvent(); |
| 136 virtual void HandleMouseLeave(); | 136 virtual void HandleMouseLeave(); |
| 137 virtual void UpdatePreferredSize(const gfx::Size& new_size); | 137 virtual void UpdatePreferredSize(const gfx::Size& new_size); |
| 138 | 138 |
| 139 // NotificationObserver | 139 // NotificationObserver |
| 140 virtual void Observe(NotificationType type, | 140 virtual void Observe(NotificationType type, |
| 141 const NotificationSource& source, | 141 const NotificationSource& source, |
| 142 const NotificationDetails& details); | 142 const NotificationDetails& details); |
| 143 | 143 |
| 144 private: | 144 private: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 197 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 198 | 198 |
| 199 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here, | 199 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here, |
| 200 // others are not hostd by ExtensionHost. | 200 // others are not hostd by ExtensionHost. |
| 201 ViewType::Type extension_host_type_; | 201 ViewType::Type extension_host_type_; |
| 202 | 202 |
| 203 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 203 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 206 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |