OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 10 #include <vector> |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 virtual void ShowCreatedWidget(int route_id, | 151 virtual void ShowCreatedWidget(int route_id, |
152 const gfx::Rect& initial_pos); | 152 const gfx::Rect& initial_pos); |
153 virtual void ShowCreatedFullscreenWidget(int route_id); | 153 virtual void ShowCreatedFullscreenWidget(int route_id); |
154 virtual void ShowContextMenu(const ContextMenuParams& params); | 154 virtual void ShowContextMenu(const ContextMenuParams& params); |
155 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 155 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
156 int item_height, | 156 int item_height, |
157 double item_font_size, | 157 double item_font_size, |
158 int selected_item, | 158 int selected_item, |
159 const std::vector<WebMenuItem>& items, | 159 const std::vector<WebMenuItem>& items, |
160 bool right_aligned); | 160 bool right_aligned); |
| 161 virtual bool IsWebCopyCutEnabled(); |
| 162 virtual bool IsWebPasteEnabled(); |
161 virtual void StartDragging(const WebDropData& drop_data, | 163 virtual void StartDragging(const WebDropData& drop_data, |
162 WebKit::WebDragOperationsMask allowed_operations, | 164 WebKit::WebDragOperationsMask allowed_operations, |
163 const SkBitmap& image, | 165 const SkBitmap& image, |
164 const gfx::Point& image_offset); | 166 const gfx::Point& image_offset); |
165 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 167 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
166 virtual void GotFocus(); | 168 virtual void GotFocus(); |
167 virtual void TakeFocus(bool reverse); | 169 virtual void TakeFocus(bool reverse); |
168 virtual void LostCapture(); | 170 virtual void LostCapture(); |
169 virtual void Activate(); | 171 virtual void Activate(); |
170 virtual void Deactivate(); | 172 virtual void Deactivate(); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 // FileSelectHelper, lazily created. | 288 // FileSelectHelper, lazily created. |
287 scoped_ptr<FileSelectHelper> file_select_helper_; | 289 scoped_ptr<FileSelectHelper> file_select_helper_; |
288 | 290 |
289 // Handles desktop notification IPCs. | 291 // Handles desktop notification IPCs. |
290 scoped_ptr<DesktopNotificationHandler> desktop_notification_handler_; | 292 scoped_ptr<DesktopNotificationHandler> desktop_notification_handler_; |
291 | 293 |
292 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 294 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
293 }; | 295 }; |
294 | 296 |
295 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 297 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |