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

Unified Diff: chrome/browser/ui/views/browser_action_view.cc

Issue 11365046: Redirect behaviour of gesture events on browser action buttons appropriately. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « chrome/browser/ui/views/browser_action_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/browser_action_view.cc
diff --git a/chrome/browser/ui/views/browser_action_view.cc b/chrome/browser/ui/views/browser_action_view.cc
index 0fb725af61e957a4c1f5b2372e15f03332634d46..2327851286939328e6a673247f191351503b91b9 100644
--- a/chrome/browser/ui/views/browser_action_view.cc
+++ b/chrome/browser/ui/views/browser_action_view.cc
@@ -345,6 +345,11 @@ bool BrowserActionButton::OnKeyReleased(const ui::KeyEvent& event) {
: TextButton::OnKeyReleased(event);
}
+ui::EventResult BrowserActionButton::OnGestureEvent(ui::GestureEvent* event) {
+ return IsPopup() ? MenuButton::OnGestureEvent(event)
+ : TextButton::OnGestureEvent(event);
sky 2012/11/01 21:50:15 : should be on the previous line.
+}
+
bool BrowserActionButton::AcceleratorPressed(
const ui::Accelerator& accelerator) {
delegate_->OnBrowserActionExecuted(this);
« no previous file with comments | « chrome/browser/ui/views/browser_action_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698