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

Side by Side Diff: chrome/browser/ui/views/frame/avatar_button_manager.cc

Issue 2687693002: Linux/Windows: Setting focus to the first profile in profile switcher (Closed)
Patch Set: Renaming |focus_first_profile| to |is_source_keyboard| Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/frame/avatar_button_manager.h" 5 #include "chrome/browser/ui/views/frame/avatar_button_manager.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/profiles/profile_manager.h" 8 #include "chrome/browser/profiles/profile_manager.h"
9 #include "chrome/browser/ui/view_ids.h" 9 #include "chrome/browser/ui/view_ids.h"
10 #include "chrome/browser/ui/views/frame/browser_frame.h" 10 #include "chrome/browser/ui/views/frame/browser_frame.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 DCHECK_EQ(view_, sender); 58 DCHECK_EQ(view_, sender);
59 BrowserWindow::AvatarBubbleMode mode = 59 BrowserWindow::AvatarBubbleMode mode =
60 BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT; 60 BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT;
61 if ((event.IsMouseEvent() && 61 if ((event.IsMouseEvent() &&
62 static_cast<const ui::MouseEvent&>(event).IsRightMouseButton()) || 62 static_cast<const ui::MouseEvent&>(event).IsRightMouseButton()) ||
63 (event.type() == ui::ET_GESTURE_LONG_PRESS)) { 63 (event.type() == ui::ET_GESTURE_LONG_PRESS)) {
64 mode = BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH; 64 mode = BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH;
65 } 65 }
66 frame_view_->browser_view()->ShowAvatarBubbleFromAvatarButton( 66 frame_view_->browser_view()->ShowAvatarBubbleFromAvatarButton(
67 mode, signin::ManageAccountsParams(), 67 mode, signin::ManageAccountsParams(),
68 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN); 68 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, false);
69 } 69 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_ui_controller.cc ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698