Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: ash/drag_drop/drag_image_view.cc

Issue 11801027: More work to make ash_unittests pass when we require context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TableViewTest by making it a ViewsTestBase. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/drag_drop/drag_image_view.h ('k') | ash/launcher/launcher_tooltip_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/drag_drop/drag_image_view.cc
diff --git a/ash/drag_drop/drag_image_view.cc b/ash/drag_drop/drag_image_view.cc
index acb42928122b43ccf4734c3fe0159e25cf1f0680..066b99c0105393991edd0e93a273aa44afe2bc65 100644
--- a/ash/drag_drop/drag_image_view.cc
+++ b/ash/drag_drop/drag_image_view.cc
@@ -18,11 +18,12 @@ namespace internal {
namespace {
using views::Widget;
-Widget* CreateDragWidget() {
+Widget* CreateDragWidget(gfx::NativeView context) {
Widget* drag_widget = new Widget;
Widget::InitParams params;
params.type = Widget::InitParams::TYPE_TOOLTIP;
params.keep_on_top = true;
+ params.context = context;
params.accept_events = false;
params.ownership = Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
params.transparent = true;
@@ -34,8 +35,8 @@ Widget* CreateDragWidget() {
}
}
-DragImageView::DragImageView() : views::ImageView() {
- widget_.reset(CreateDragWidget());
+DragImageView::DragImageView(gfx::NativeView context) : views::ImageView() {
+ widget_.reset(CreateDragWidget(context));
widget_->SetContentsView(this);
widget_->SetAlwaysOnTop(true);
« no previous file with comments | « ash/drag_drop/drag_image_view.h ('k') | ash/launcher/launcher_tooltip_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698