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

Unified Diff: views/widget/widget.h

Issue 6507028: Remove usages of RootView from View by moving relevant RootView API methods t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/widget/root_view_win.cc ('k') | views/widget/widget_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.h
===================================================================
--- views/widget/widget.h (revision 75181)
+++ views/widget/widget.h (working copy)
@@ -18,6 +18,7 @@
namespace ui {
class Accelerator;
+class OSExchangeData;
class ThemeProvider;
}
using ui::ThemeProvider;
@@ -228,6 +229,17 @@
// Returns true if the native view |native_view| is contained in the
// views::View hierarchy rooted at this widget.
virtual bool ContainsNativeView(gfx::NativeView native_view) = 0;
+
+ // Starts a drag operation for the specified view. This blocks until done.
+ // If the view has not been deleted during the drag, OnDragDone is invoked
+ // on the view.
+ // NOTE: |view| may be NULL.
+ virtual void StartDragForViewFromMouseEvent(View* view,
+ const ui::OSExchangeData& data,
+ int operation) = 0;
+
+ // If a view is dragging, this returns it. Otherwise returns NULL.
+ virtual View* GetDraggedView() = 0;
};
} // namespace views
« no previous file with comments | « views/widget/root_view_win.cc ('k') | views/widget/widget_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698