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

Unified Diff: chrome/browser/views/bookmark_bar_view.cc

Issue 46066: Disallows dragging from the bookmark bar when the bookmark bar is... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | « no previous file | chrome/views/view_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_bar_view.cc
===================================================================
--- chrome/browser/views/bookmark_bar_view.cc (revision 11663)
+++ chrome/browser/views/bookmark_bar_view.cc (working copy)
@@ -1167,6 +1167,14 @@
}
int BookmarkBarView::GetDragOperations(View* sender, int x, int y) {
+ if (size_animation_->IsAnimating() ||
+ size_animation_->GetCurrentValue() == 0) {
+ // Don't let the user drag while animating open or we're closed. This
+ // typically is only hit if the user does something to inadvertanty trigger
+ // dnd, such as pressing the mouse and hitting control-b.
+ return DragDropTypes::DRAG_NONE;
+ }
+
for (int i = 0; i < GetBookmarkButtonCount(); ++i) {
if (sender == GetBookmarkButton(i)) {
return bookmark_utils::BookmarkDragOperation(
« no previous file with comments | « no previous file | chrome/views/view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698