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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 10968049: Disable right button drag in omnibox (Closed) Base URL: http://git.chromium.org/chromium/src.git@new
Patch Set: Deliver drag event to omnibox_view Created 8 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index 0caa36c3a6cb67bf2f331aa47eda932c8ea98dca..d95654e1693ae89251190531641c853184629c04 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -105,7 +105,11 @@ class AutocompleteTextfield : public views::Textfield {
}
virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE {
- bool result = views::Textfield::OnMouseDragged(event);
+ bool result = true;
+ // Do not handle anythin with right button drag.
+ if (!event.IsOnlyRightMouseButton())
+ result = views::Textfield::OnMouseDragged(event);
sky 2012/09/24 20:54:08 I think we should do this directly in TextField, a
+
omnibox_view_->HandleMouseDragEvent(event);
return result;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698