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

Unified Diff: chrome/browser/ui/views/frame/glass_browser_frame_view.cc

Issue 1257343002: GestureLongPress should be able to invoke BUBBLE_MODE_FAST_USER_SWITCH. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle windows pathway. Created 5 years, 5 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/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/glass_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
index adb9ba9178c46b60533de39cc0d3e50875a6beae..a828b6b6971028f3556e661d19fd3646d6f1cf86 100644
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
@@ -292,8 +292,9 @@ void GlassBrowserFrameView::ButtonPressed(views::Button* sender,
if (sender == new_avatar_button()) {
BrowserWindow::AvatarBubbleMode mode =
BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT;
- if (event.IsMouseEvent() &&
- static_cast<const ui::MouseEvent&>(event).IsRightMouseButton()) {
+ if ((event.IsMouseEvent() &&
+ static_cast<const ui::MouseEvent&>(event).IsRightMouseButton()) ||
+ (event.type() == ui::ET_GESTURE_LONG_PRESS)) {
mode = BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH;
}
browser_view()->ShowAvatarBubbleFromAvatarButton(
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698