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

Issue 916523003: Bring up fast user switcher on right-click of the avatar menu on Mac. (Closed)

Created:
5 years, 10 months ago by anthonyvd
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bring up fast user switcher on right-click of the avatar menu on Mac. Change the behavior of fast user switching on Mac from Command click to right click to be consistent with Windows and Linux. BUG=458755 TEST= 1. Disable #enable-fast-user-switcher and enable #new-avatar-menu flags in chrome://flags 2. Relaunch Chrome 3. Right click on the Avatar Button, the fast user switcher should be shown 4. Command+Click on the Avatar Button, nothing should happen Committed: https://crrev.com/95b89c2672ce7b0ed1a6803b59acee369b232a3c Cr-Commit-Position: refs/heads/master@{#317631}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Unit test and fix issues from CR #

Total comments: 17

Patch Set 3 : Unit testing Avatar Button #

Total comments: 8

Patch Set 4 : Cleanup #

Total comments: 2

Patch Set 5 : Remove init in unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -25 lines) Patch
M chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm View 2 chunks +9 lines, -2 lines 0 comments Download
A chrome/browser/ui/cocoa/profiles/avatar_button.h View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/profiles/avatar_button.mm View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm View 1 2 3 4 chunks +17 lines, -16 lines 0 comments Download
A chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm View 1 2 3 4 1 chunk +93 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/test/cocoa_test_event_utils.h View 1 2 3 1 chunk +12 lines, -3 lines 0 comments Download
M ui/events/test/cocoa_test_event_utils.mm View 1 2 2 chunks +15 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
anthonyvd
Hi asvitkine@, can you please take a look at those 4 files under chrome/browser/ui/cocoa/profiles? Thanks ...
5 years, 10 months ago (2015-02-14 05:58:36 UTC) #2
Alexei Svitkine (slow)
Please add a TEST= line explaining how the UI changes can be tested. +rsesek to ...
5 years, 10 months ago (2015-02-17 16:43:27 UTC) #4
Robert Sesek
AvatarButton should also have a unittest. https://codereview.chromium.org/916523003/diff/1/chrome/browser/ui/cocoa/profiles/avatar_button.h File chrome/browser/ui/cocoa/profiles/avatar_button.h (right): https://codereview.chromium.org/916523003/diff/1/chrome/browser/ui/cocoa/profiles/avatar_button.h#newcode12 chrome/browser/ui/cocoa/profiles/avatar_button.h:12: // Subclassing HoverImageButton ...
5 years, 10 months ago (2015-02-17 18:40:46 UTC) #5
anthonyvd
I also added a unit test. I'm having issues testing the actual mouse tracking. Is ...
5 years, 10 months ago (2015-02-18 00:02:24 UTC) #6
Robert Sesek
On 2015/02/18 00:02:24, anthonyvd wrote: > I also added a unit test. I'm having issues ...
5 years, 10 months ago (2015-02-18 00:12:10 UTC) #7
Robert Sesek
https://codereview.chromium.org/916523003/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_button.h File chrome/browser/ui/cocoa/profiles/avatar_button.h (right): https://codereview.chromium.org/916523003/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_button.h#newcode14 chrome/browser/ui/cocoa/profiles/avatar_button.h:14: @private nit: indent +1 space https://codereview.chromium.org/916523003/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_button.h#newcode15 chrome/browser/ui/cocoa/profiles/avatar_button.h:15: SEL rightAction; ...
5 years, 10 months ago (2015-02-18 18:51:37 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/916523003/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm File chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm (right): https://codereview.chromium.org/916523003/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm#newcode1 chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm:1: // Copyright (c) 2015 The Chromium Authors. All rights ...
5 years, 10 months ago (2015-02-18 19:58:09 UTC) #9
anthonyvd
Hi sadrul@, could you please take a look at those cocoa_test_event_utils changes? Thank you!
5 years, 10 months ago (2015-02-19 03:11:02 UTC) #11
anthonyvd
https://codereview.chromium.org/916523003/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_button.h File chrome/browser/ui/cocoa/profiles/avatar_button.h (right): https://codereview.chromium.org/916523003/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_button.h#newcode14 chrome/browser/ui/cocoa/profiles/avatar_button.h:14: @private On 2015/02/18 18:51:37, Robert Sesek wrote: > nit: ...
5 years, 10 months ago (2015-02-19 03:12:52 UTC) #12
Alexei Svitkine (slow)
lgtm % comments, but please also wait for rsesek's review. Thanks! https://codereview.chromium.org/916523003/diff/40001/chrome/browser/ui/cocoa/profiles/avatar_button.mm File chrome/browser/ui/cocoa/profiles/avatar_button.mm (right): ...
5 years, 10 months ago (2015-02-19 16:40:45 UTC) #13
Robert Sesek
https://codereview.chromium.org/916523003/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm File chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm (right): https://codereview.chromium.org/916523003/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm#newcode21 chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm:21: @synthesize clicked; On 2015/02/18 18:51:37, Robert Sesek wrote: > ...
5 years, 10 months ago (2015-02-19 21:54:21 UTC) #14
anthonyvd
https://codereview.chromium.org/916523003/diff/40001/chrome/browser/ui/cocoa/profiles/avatar_button.mm File chrome/browser/ui/cocoa/profiles/avatar_button.mm (right): https://codereview.chromium.org/916523003/diff/40001/chrome/browser/ui/cocoa/profiles/avatar_button.mm#newcode16 chrome/browser/ui/cocoa/profiles/avatar_button.mm:16: // Override rightMouseDown and implement a custom mouse tracking ...
5 years, 10 months ago (2015-02-20 18:50:48 UTC) #16
anthonyvd
Hi guys, Sorry to be pushy like this but I just wanted to notify you ...
5 years, 10 months ago (2015-02-20 21:52:44 UTC) #17
Robert Sesek
Last comment! https://codereview.chromium.org/916523003/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm File chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm (right): https://codereview.chromium.org/916523003/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm#newcode25 chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm:25: - (id)init { -alloc will 0 all ...
5 years, 10 months ago (2015-02-20 21:56:07 UTC) #18
sadrul
rubber-stamp lgtm after addressing rsesek@'s comments. Can //ui/events/cocoa/ and //ui/events/test/cocoa* have owners?
5 years, 10 months ago (2015-02-23 17:04:49 UTC) #19
anthonyvd
rsesek@, addressed your last comment. Thanks everyone! https://codereview.chromium.org/916523003/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm File chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm (right): https://codereview.chromium.org/916523003/diff/60001/chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm#newcode25 chrome/browser/ui/cocoa/profiles/avatar_button_unittest.mm:25: - (id)init ...
5 years, 10 months ago (2015-02-23 17:21:53 UTC) #21
Robert Sesek
lgtm
5 years, 10 months ago (2015-02-23 17:34:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/916523003/80001
5 years, 10 months ago (2015-02-23 17:35:26 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61733)
5 years, 10 months ago (2015-02-23 17:41:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/916523003/80001
5 years, 10 months ago (2015-02-23 19:55:25 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-23 19:56:45 UTC) #29
commit-bot: I haz the power
5 years, 10 months ago (2015-02-23 19:57:39 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/95b89c2672ce7b0ed1a6803b59acee369b232a3c
Cr-Commit-Position: refs/heads/master@{#317631}

Powered by Google App Engine
This is Rietveld 408576698