diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-18 21:05:55 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-18 21:05:55 +0000 |
commit | 72f172417ce801e49ce93e59ae6dc36edba4b114 (patch) | |
tree | 9ee36f1c9b113bd9fb2f60e49679dc7120afa947 /views/widget/widget.h | |
parent | 3306b3ed35a2501ad2b517e10b09940b85072d33 (diff) | |
download | chromium_src-72f172417ce801e49ce93e59ae6dc36edba4b114.zip chromium_src-72f172417ce801e49ce93e59ae6dc36edba4b114.tar.gz chromium_src-72f172417ce801e49ce93e59ae6dc36edba4b114.tar.bz2 |
Remove usages of RootView from View by moving relevant RootView API methods to Widget.
This results in some code duplication right now but this will be mitigated once all platforms use WidgetImpl.
http://crbug.com/72040
TEST=existing tests
Review URL: http://codereview.chromium.org/6507028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75431 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget.h')
-rw-r--r-- | views/widget/widget.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/views/widget/widget.h b/views/widget/widget.h index 46f55d4..200d9b1 100644 --- a/views/widget/widget.h +++ b/views/widget/widget.h @@ -18,6 +18,7 @@ class Rect; namespace ui { class Accelerator; +class OSExchangeData; class ThemeProvider; } using ui::ThemeProvider; @@ -228,6 +229,17 @@ class Widget { // 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 |