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 #include "chrome/browser/extensions/extension_host.h" | 5 #include "chrome/browser/extensions/extension_host.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 // TODO(erikkay): These two lines could be refactored with TabContentsView. | 550 // TODO(erikkay): These two lines could be refactored with TabContentsView. |
551 widget_host_view->InitAsPopup(render_view_host()->view(), initial_pos); | 551 widget_host_view->InitAsPopup(render_view_host()->view(), initial_pos); |
552 widget_host_view->GetRenderWidgetHost()->Init(); | 552 widget_host_view->GetRenderWidgetHost()->Init(); |
553 } | 553 } |
554 | 554 |
555 void ExtensionHost::ShowContextMenu(const ContextMenuParams& params) { | 555 void ExtensionHost::ShowContextMenu(const ContextMenuParams& params) { |
556 // TODO(erikkay) Show a default context menu. | 556 // TODO(erikkay) Show a default context menu. |
557 } | 557 } |
558 | 558 |
559 void ExtensionHost::StartDragging(const WebDropData& drop_data, | 559 void ExtensionHost::StartDragging(const WebDropData& drop_data, |
560 WebDragOperationsMask operation_mask) { | 560 WebDragOperationsMask operation_mask, |
| 561 const SkBitmap& image, |
| 562 const gfx::Point& image_offset) { |
561 // We're not going to do any drag & drop, but we have to tell the renderer the | 563 // We're not going to do any drag & drop, but we have to tell the renderer the |
562 // drag & drop ended, othewise the renderer thinks the drag operation is | 564 // drag & drop ended, othewise the renderer thinks the drag operation is |
563 // underway and mouse events won't work. See bug 34061. | 565 // underway and mouse events won't work. See bug 34061. |
564 // TODO(twiz) Implement drag & drop support for ExtensionHost instances. | 566 // TODO(twiz) Implement drag & drop support for ExtensionHost instances. |
565 // See feature issue 36288. | 567 // See feature issue 36288. |
566 render_view_host()->DragSourceSystemDragEnded(); | 568 render_view_host()->DragSourceSystemDragEnded(); |
567 } | 569 } |
568 | 570 |
569 void ExtensionHost::UpdateDragCursor(WebDragOperation operation) { | 571 void ExtensionHost::UpdateDragCursor(WebDragOperation operation) { |
570 } | 572 } |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 // Extensions hosted in ExternalTabContainer objects may not have | 702 // Extensions hosted in ExternalTabContainer objects may not have |
701 // an associated browser. | 703 // an associated browser. |
702 Browser* browser = GetBrowser(); | 704 Browser* browser = GetBrowser(); |
703 if (browser) | 705 if (browser) |
704 window_id = ExtensionTabUtil::GetWindowId(browser); | 706 window_id = ExtensionTabUtil::GetWindowId(browser); |
705 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { | 707 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { |
706 NOTREACHED(); | 708 NOTREACHED(); |
707 } | 709 } |
708 return window_id; | 710 return window_id; |
709 } | 711 } |
OLD | NEW |