diff options
author | zelidrag@google.com <zelidrag@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 07:59:00 +0000 |
---|---|---|
committer | zelidrag@google.com <zelidrag@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 07:59:00 +0000 |
commit | b5f94dea90a5c108a4c91876e53afaff34aef15b (patch) | |
tree | 05a843db3bbd79b09c6351ef898c9c4757fa50a3 /views/view.h | |
parent | 192a0cb4bf1790445726a09bb51dd386aca64467 (diff) | |
download | chromium_src-b5f94dea90a5c108a4c91876e53afaff34aef15b.zip chromium_src-b5f94dea90a5c108a4c91876e53afaff34aef15b.tar.gz chromium_src-b5f94dea90a5c108a4c91876e53afaff34aef15b.tar.bz2 |
Downward drag after mouse-down is now causing bookmark bar folders to open, rather than drag. The bar folder can still be dragged in any other direction.
Please note that this change is already reviews in http://codereview.chromium.org/463001, hence TBR field here. I needed to move to a different client to check it in.
BUG=9016
TEST=Open bookmark bar. Select folder button and try to drag it down. Observe that now if dragged straight downward, the folder button will open its menu.
TBR=sky
Review URL: http://codereview.chromium.org/467017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r-- | views/view.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/views/view.h b/views/view.h index ae9a637..ef806ea 100644 --- a/views/view.h +++ b/views/view.h @@ -85,8 +85,16 @@ class DragController { // Returns the supported drag operations (see DragDropTypes for possible // values). A drag is only started if this returns a non-zero value. virtual int GetDragOperations(View* sender, int x, int y) = 0; -}; + // Returns true if a drag operation can be started. + // |press_x| and |press_y| represent coordinates where mouse was initially + // pressed down. |x| and |y| are the current mouse coordinates. + virtual bool CanStartDrag(View* sender, + int press_x, + int press_y, + int x, + int y) = 0; +}; ///////////////////////////////////////////////////////////////////////////// // |