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

Unified Diff: views/widget/drop_target_gtk.cc

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | « views/view_unittest.cc ('k') | views/widget/native_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/drop_target_gtk.cc
===================================================================
--- views/widget/drop_target_gtk.cc (revision 85284)
+++ views/widget/drop_target_gtk.cc (working copy)
@@ -167,7 +167,7 @@
if (!pending_view_) {
// User isn't over a view, no drop can occur.
static_cast<WidgetGtk*>(
- helper_.root_view()->GetWidget())->ResetDropTarget();
+ helper_.root_view()->GetWidget()->native_widget())->ResetDropTarget();
// WARNING: we've been deleted.
return FALSE;
}
@@ -246,7 +246,8 @@
gtk_drag_finish(context, gdk_action != 0, (gdk_action & GDK_ACTION_MOVE),
time);
- static_cast<WidgetGtk*>(helper_.root_view()->GetWidget())->ResetDropTarget();
+ static_cast<WidgetGtk*>(helper_.root_view()->GetWidget()->native_widget())->
+ ResetDropTarget();
// WARNING: we've been deleted.
}
@@ -264,9 +265,8 @@
int formats,
const std::set<GdkAtom>& custom_formats,
guint time) {
- GtkWidget* widget =
- static_cast<WidgetGtk*>(helper_.root_view()->GetWidget())->
- window_contents();
+ GtkWidget* widget = static_cast<WidgetGtk*>(helper_.root_view()->GetWidget()->
+ native_widget())->window_contents();
const std::set<GdkAtom>& known_formats =
data_provider().known_custom_formats();
« no previous file with comments | « views/view_unittest.cc ('k') | views/widget/native_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698