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

Issue 326813004: Added quick lock mechanism while in Touchview (Closed)

Created:
6 years, 6 months ago by bruthig
Modified:
6 years, 3 months ago
Reviewers:
flackr, Daniel Erat
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

- Moved screenshot shortcut handling from MaximizeModeController to PowerButtonController - Added a command line switch to enable quick locking mode. - Refactored SessionStateAnimator into an interface, implementation, and a test double so that all the LockStateControllerTests could be re-enabled. - Re-enabled LockStateControllerTests. BUG=371608, 167048, 162645 Committed: https://crrev.com/ca2e1496db635fb826949d54c72798fd56f7fcfd Cr-Commit-Position: refs/heads/master@{#294696}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Reverted immediate lock on power button press. #

Total comments: 2

Patch Set 3 : Merged with trunk. #

Patch Set 4 : Added ash-enable-power-quick-lock switch and handling. #

Patch Set 5 : Fixed whitespace nit. #

Total comments: 7

Patch Set 6 : Changed kAshEnablePowerQuickLock to kAshEnablePowerButtonQuickLock. #

Total comments: 6

Patch Set 7 : Re-enabled most LockStateControllerTests. #

Patch Set 8 : Add docs for TestSessionStateAnimator::AnimationSequence. #

Total comments: 47

Patch Set 9 : Enabled LockStateControllerTests for Background hiding & addressed other comments. #

Total comments: 6

Patch Set 10 : Minor nit fixes. #

Total comments: 4

Patch Set 11 : Fixed LockStateControllerTest.Screenshot test on Windows #

Patch Set 12 : Disabled LockStateControllerTest.Lock on OS_WIN #

Total comments: 4

Patch Set 13 : Fixed minor indent nit. #

Patch Set 14 : Removed ASH_EXPORT from TestSessionStateAnimator. #

Patch Set 15 : Added ASH_EXPORT to SessionStateAnimator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1285 lines, -1244 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M ash/ash_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash_switches.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A ash/test/test_session_state_animator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +166 lines, -0 lines 0 comments Download
A ash/test/test_session_state_animator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +304 lines, -0 lines 0 comments Download
M ash/wm/lock_state_controller.h View 1 2 3 4 5 6 7 8 6 chunks +14 lines, -9 lines 0 comments Download
M ash/wm/lock_state_controller.cc View 1 2 3 4 5 6 7 8 9 10 18 chunks +64 lines, -185 lines 0 comments Download
M ash/wm/lock_state_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 36 chunks +317 lines, -294 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 4 chunks +0 lines, -46 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 2 chunks +0 lines, -30 lines 0 comments Download
M ash/wm/power_button_controller.h View 1 2 3 4 5 6 6 chunks +23 lines, -5 lines 0 comments Download
M ash/wm/power_button_controller.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +29 lines, -5 lines 0 comments Download
M ash/wm/session_state_animator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +109 lines, -63 lines 0 comments Download
M ash/wm/session_state_animator.cc View 1 2 3 4 5 6 2 chunks +33 lines, -541 lines 0 comments Download
A ash/wm/session_state_animator_impl.h View 1 2 3 4 5 6 7 8 1 chunk +88 lines, -0 lines 0 comments Download
A + ash/wm/session_state_animator_impl.cc View 1 2 3 4 5 6 7 8 9 12 chunks +123 lines, -62 lines 0 comments Download
M chrome/browser/chromeos/power/power_button_observer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 51 (15 generated)
bruthig
6 years, 6 months ago (2014-06-10 17:14:29 UTC) #1
bruthig
6 years, 6 months ago (2014-06-10 17:15:02 UTC) #2
flackr
The general concept seems fine to me. We might need to make this only when ...
6 years, 6 months ago (2014-06-10 17:34:42 UTC) #3
bruthig
I've reverted the immediate lock on power button press to maintain the lock/shutdown behaviour. flackr@ ...
6 years, 6 months ago (2014-06-17 14:00:11 UTC) #4
flackr
I'm not sure we want this change if it doesn't get us the easy lock ...
6 years, 6 months ago (2014-06-17 14:09:09 UTC) #5
Daniel Erat
huh, i didn't even know that this shortcut existed. and powerd doesn't have anything to ...
6 years, 6 months ago (2014-06-17 14:14:29 UTC) #6
flackr
On 2014/06/17 14:14:29, Daniel Erat wrote: > huh, i didn't even know that this shortcut ...
6 years, 6 months ago (2014-06-17 14:19:37 UTC) #7
flackr
On 2014/06/17 14:14:29, Daniel Erat wrote: > huh, i didn't even know that this shortcut ...
6 years, 6 months ago (2014-06-17 14:19:38 UTC) #8
Daniel Erat
On 2014/06/17 14:19:38, flackr wrote: > On 2014/06/17 14:14:29, Daniel Erat wrote: > > huh, ...
6 years, 6 months ago (2014-06-17 14:30:05 UTC) #9
bruthig
flackr@, derat@, I've updated the implementation and I've written some potential tests, however there are ...
6 years, 3 months ago (2014-08-29 14:44:33 UTC) #10
Daniel Erat
https://codereview.chromium.org/326813004/diff/80001/ash/ash_switches.h File ash/ash_switches.h (right): https://codereview.chromium.org/326813004/diff/80001/ash/ash_switches.h#newcode33 ash/ash_switches.h:33: ASH_EXPORT extern const char kAshEnablePowerQuickLock[]; maybe either kAshEnablePowerButtonQuickLock or ...
6 years, 3 months ago (2014-08-29 14:58:26 UTC) #11
bruthig
Continued discussion on LockStateControllerTests... https://codereview.chromium.org/326813004/diff/80001/ash/wm/lock_state_controller_unittest.cc File ash/wm/lock_state_controller_unittest.cc (right): https://codereview.chromium.org/326813004/diff/80001/ash/wm/lock_state_controller_unittest.cc#newcode89 ash/wm/lock_state_controller_unittest.cc:89: // no leaks happen during ...
6 years, 3 months ago (2014-08-29 15:41:47 UTC) #12
bruthig
Just minor fixes https://codereview.chromium.org/326813004/diff/80001/ash/ash_switches.h File ash/ash_switches.h (right): https://codereview.chromium.org/326813004/diff/80001/ash/ash_switches.h#newcode33 ash/ash_switches.h:33: ASH_EXPORT extern const char kAshEnablePowerQuickLock[]; On ...
6 years, 3 months ago (2014-09-02 13:53:48 UTC) #13
Daniel Erat
looks fine to me. were you also planning to include the proposed refactoring that'll let ...
6 years, 3 months ago (2014-09-02 14:09:48 UTC) #14
flackr
Looks good. Just a few comments. https://codereview.chromium.org/326813004/diff/100001/ash/wm/lock_state_controller_unittest.cc File ash/wm/lock_state_controller_unittest.cc (right): https://codereview.chromium.org/326813004/diff/100001/ash/wm/lock_state_controller_unittest.cc#newcode91 ash/wm/lock_state_controller_unittest.cc:91: // ui::ScopedAnimationDurationScaleMode::ZERO_DURATION)); nit: ...
6 years, 3 months ago (2014-09-03 12:48:29 UTC) #15
bruthig
I've written a SessionStateAnimator test double and re-enabled most LockStateControllerTests. I still have two concerns ...
6 years, 3 months ago (2014-09-08 15:33:20 UTC) #16
Daniel Erat
awesome, thanks for doing this! my comments are mostly just nits. you can also update ...
6 years, 3 months ago (2014-09-08 16:16:03 UTC) #17
bruthig
derat@, I think I addressed all comments, please have another look. https://codereview.chromium.org/326813004/diff/140001/ash/test/test_session_state_animator.cc File ash/test/test_session_state_animator.cc (right): ...
6 years, 3 months ago (2014-09-09 17:32:35 UTC) #18
Daniel Erat
lgtm https://codereview.chromium.org/326813004/diff/160001/ash/test/test_session_state_animator.h File ash/test/test_session_state_animator.h (right): https://codereview.chromium.org/326813004/diff/160001/ash/test/test_session_state_animator.h#newcode39 ash/test/test_session_state_animator.h:39: // animations that will have completed after |duration| ...
6 years, 3 months ago (2014-09-09 17:42:09 UTC) #19
bruthig
Minor nit fixes, no need to review. https://codereview.chromium.org/326813004/diff/160001/ash/test/test_session_state_animator.h File ash/test/test_session_state_animator.h (right): https://codereview.chromium.org/326813004/diff/160001/ash/test/test_session_state_animator.h#newcode39 ash/test/test_session_state_animator.h:39: // animations ...
6 years, 3 months ago (2014-09-09 17:55:22 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruthig@chromium.org/326813004/180001
6 years, 3 months ago (2014-09-09 18:01:32 UTC) #22
flackr
lgtm too https://codereview.chromium.org/326813004/diff/180001/ash/test/test_session_state_animator.cc File ash/test/test_session_state_animator.cc (right): https://codereview.chromium.org/326813004/diff/180001/ash/test/test_session_state_animator.cc#newcode22 ash/test/test_session_state_animator.cc:22: SessionStateAnimator::DESKTOP_BACKGROUND, nit: I believe this should be ...
6 years, 3 months ago (2014-09-10 19:38:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruthig@chromium.org/326813004/200001
6 years, 3 months ago (2014-09-10 21:12:02 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruthig@chromium.org/326813004/200001
6 years, 3 months ago (2014-09-10 21:15:34 UTC) #29
bruthig
Minor nit fixes and disabled LockStateControllerTest.Lock on OS_WIN. derat@, are ok with this? https://codereview.chromium.org/326813004/diff/180001/ash/test/test_session_state_animator.cc File ...
6 years, 3 months ago (2014-09-12 15:30:07 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/326813004/220001
6 years, 3 months ago (2014-09-12 15:40:30 UTC) #33
Daniel Erat
lgtm https://codereview.chromium.org/326813004/diff/220001/ash/test/test_session_state_animator.cc File ash/test/test_session_state_animator.cc (right): https://codereview.chromium.org/326813004/diff/220001/ash/test/test_session_state_animator.cc#newcode29 ash/test/test_session_state_animator.cc:29: }; nit: i'm not sure what the rules ...
6 years, 3 months ago (2014-09-12 15:50:15 UTC) #34
bruthig
Minor fix, no need to review. https://codereview.chromium.org/326813004/diff/220001/ash/test/test_session_state_animator.cc File ash/test/test_session_state_animator.cc (right): https://codereview.chromium.org/326813004/diff/220001/ash/test/test_session_state_animator.cc#newcode29 ash/test/test_session_state_animator.cc:29: }; On 2014/09/12 ...
6 years, 3 months ago (2014-09-12 16:01:52 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/326813004/240001
6 years, 3 months ago (2014-09-12 16:04:44 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/15053) win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/12001)
6 years, 3 months ago (2014-09-12 17:02:56 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/326813004/260001
6 years, 3 months ago (2014-09-12 17:14:45 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/326813004/280001
6 years, 3 months ago (2014-09-12 18:29:56 UTC) #45
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-12 20:34:30 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/326813004/280001
6 years, 3 months ago (2014-09-12 22:53:59 UTC) #49
commit-bot: I haz the power
Committed patchset #15 (id:280001) as 3dd78428b8ef81a6ec93b81370e8d5bb3b94cca5
6 years, 3 months ago (2014-09-12 23:52:26 UTC) #50
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 23:56:05 UTC) #51
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/ca2e1496db635fb826949d54c72798fd56f7fcfd
Cr-Commit-Position: refs/heads/master@{#294696}

Powered by Google App Engine
This is Rietveld 408576698