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

Issue 2494943005: [ash-md] Added a delay between system menu default/detailed view transitions. (Closed)

Created:
4 years, 1 month ago by bruthig
Modified:
4 years, 1 month ago
Reviewers:
danakj, tdanderson, gab
CC:
chromium-reviews, kalyank, sadrul, fdoray
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ash-md] Added a delay between system menu default/detailed view transitions. This change adds a delay before initiating the transtions to/from the default/detailed views in the system menu in an effort to make the ink drop animation on the clicked target more noticable. BUG=664823 TEST=ash_unittests Committed: https://crrev.com/eb01167a5b2d97d18446ca7b502761d658a7a995 Cr-Commit-Position: refs/heads/master@{#433366}

Patch Set 1 #

Total comments: 33

Patch Set 2 : Merge branch 'master' into system_menu_transition_animation #

Patch Set 3 : Addressed review comments. #

Total comments: 12

Patch Set 4 : Actually removed ScopedMockTaskRunnerWrapper. #

Patch Set 5 : Addressed review comments from patch set 3. #

Total comments: 4

Patch Set 6 : Merge branch 'master' into system_menu_transition_animation #

Patch Set 7 : Merge branch 'master' into system_menu_transition_animation #

Total comments: 4

Patch Set 8 : Addressed gab@'s comments. #

Total comments: 40

Patch Set 9 : Addressed gab@ review comments. #

Patch Set 10 : Merge branch 'master' into system_menu_transition_animation #

Total comments: 7

Patch Set 11 : Addressed gab@ comments. #

Total comments: 10

Patch Set 12 : Addressed danakj@ comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -9 lines) Patch
M ash/common/system/tray/system_tray_item.h View 1 2 3 4 5 4 chunks +15 lines, -2 lines 0 comments Download
M ash/common/system/tray/system_tray_item.cc View 1 2 3 4 5 3 chunks +17 lines, -1 line 0 comments Download
M ash/common/system/tray/tray_constants.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -1 line 0 comments Download
M ash/common/system/tray/tray_constants.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_details_view.h View 1 2 3 4 5 3 chunks +16 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_details_view.cc View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -5 lines 0 comments Download
M ash/common/system/tray/tray_details_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -0 lines 0 comments Download
M base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M base/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A base/test/scoped_mock_time_message_loop_task_runner.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +41 lines, -0 lines 0 comments Download
A base/test/scoped_mock_time_message_loop_task_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +39 lines, -0 lines 0 comments Download
A base/test/scoped_mock_time_message_loop_task_runner_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +108 lines, -0 lines 0 comments Download
M base/test/test_mock_time_task_runner.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M base/test/test_mock_time_task_runner.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (32 generated)
bruthig
tdanderson@, can you PTAL? Also, I do have some concerns about this approach. Specifically what ...
4 years, 1 month ago (2016-11-12 19:55:41 UTC) #4
tdanderson
LGTM for ash/common/system https://codereview.chromium.org/2494943005/diff/1/ash/common/system/tray/system_tray_item.h File ash/common/system/tray/system_tray_item.h (right): https://codereview.chromium.org/2494943005/diff/1/ash/common/system/tray/system_tray_item.h#newcode2 ash/common/system/tray/system_tray_item.h:2: // Use of this source code ...
4 years, 1 month ago (2016-11-13 20:09:02 UTC) #7
bruthig
danakj@, can you take a look at: - base/test/*? https://codereview.chromium.org/2494943005/diff/1/ash/common/system/tray/system_tray_item.h File ash/common/system/tray/system_tray_item.h (right): https://codereview.chromium.org/2494943005/diff/1/ash/common/system/tray/system_tray_item.h#newcode2 ash/common/system/tray/system_tray_item.h:2: ...
4 years, 1 month ago (2016-11-13 20:47:51 UTC) #10
danakj
This introduces a dependency on MessageLoop though which folks have been tirelessly working to remove. ...
4 years, 1 month ago (2016-11-14 20:03:19 UTC) #12
gab
On 2016/11/14 20:03:19, danakj wrote: > This introduces a dependency on MessageLoop though which folks ...
4 years, 1 month ago (2016-11-15 19:52:01 UTC) #13
danakj
Thanks gab, your comments are great. https://codereview.chromium.org/2494943005/diff/1/base/test/test_mock_time_task_runner.h File base/test/test_mock_time_task_runner.h (right): https://codereview.chromium.org/2494943005/diff/1/base/test/test_mock_time_task_runner.h#newcode171 base/test/test_mock_time_task_runner.h:171: class ScopedMockTaskRunnerWrapper { ...
4 years, 1 month ago (2016-11-15 19:58:13 UTC) #14
bruthig
Thanks for the comments danakj@ & gab@. I think I've addressed all concerns/requests. Can you ...
4 years, 1 month ago (2016-11-15 21:52:45 UTC) #17
danakj
https://codereview.chromium.org/2494943005/diff/40001/base/test/test_mock_time_task_runner.h File base/test/test_mock_time_task_runner.h (right): https://codereview.chromium.org/2494943005/diff/40001/base/test/test_mock_time_task_runner.h#newcode173 base/test/test_mock_time_task_runner.h:173: class ScopedMockTaskRunnerWrapper { This moved to another file right? ...
4 years, 1 month ago (2016-11-15 21:56:37 UTC) #18
bruthig
https://codereview.chromium.org/2494943005/diff/40001/base/test/test_mock_time_task_runner.h File base/test/test_mock_time_task_runner.h (right): https://codereview.chromium.org/2494943005/diff/40001/base/test/test_mock_time_task_runner.h#newcode173 base/test/test_mock_time_task_runner.h:173: class ScopedMockTaskRunnerWrapper { On 2016/11/15 21:56:37, danakj wrote: > ...
4 years, 1 month ago (2016-11-15 22:00:52 UTC) #21
gab
https://codereview.chromium.org/2494943005/diff/1/base/test/test_mock_time_task_runner.h File base/test/test_mock_time_task_runner.h (right): https://codereview.chromium.org/2494943005/diff/1/base/test/test_mock_time_task_runner.h#newcode176 base/test/test_mock_time_task_runner.h:176: base::TestMockTimeTaskRunner* task_runner() { return task_runner_.get(); } On 2016/11/15 21:52:45, ...
4 years, 1 month ago (2016-11-15 22:02:06 UTC) #22
bruthig
Sorry for the haste in the previous 2 patch sets. Hopefully all is well now. ...
4 years, 1 month ago (2016-11-15 22:17:58 UTC) #25
gab
Can we add a test (given the non-trivial logic highlighted below to pass remaining tasks)? ...
4 years, 1 month ago (2016-11-15 23:17:00 UTC) #28
gab
Actually, it just occurred to me while reading timer_unittest.cc (which also use a TickClock [1]), ...
4 years, 1 month ago (2016-11-16 16:08:11 UTC) #29
gab
On 2016/11/16 16:08:11, gab wrote: > Actually, it just occurred to me while reading timer_unittest.cc ...
4 years, 1 month ago (2016-11-17 19:32:18 UTC) #30
gab
https://codereview.chromium.org/2494943005/diff/120001/base/test/scoped_mock_message_loop_task_runner_wrapper.cc File base/test/scoped_mock_message_loop_task_runner_wrapper.cc (right): https://codereview.chromium.org/2494943005/diff/120001/base/test/scoped_mock_message_loop_task_runner_wrapper.cc#newcode21 base/test/scoped_mock_message_loop_task_runner_wrapper.cc:21: MessageLoop::current()->SetTaskRunner(task_runner_); One more thing, add this above this line: ...
4 years, 1 month ago (2016-11-17 19:35:55 UTC) #31
gab
https://codereview.chromium.org/2494943005/diff/120001/base/test/scoped_mock_message_loop_task_runner_wrapper.h File base/test/scoped_mock_message_loop_task_runner_wrapper.h (right): https://codereview.chromium.org/2494943005/diff/120001/base/test/scoped_mock_message_loop_task_runner_wrapper.h#newcode30 base/test/scoped_mock_message_loop_task_runner_wrapper.h:30: class ScopedMockMessageLoopTaskRunnerWrapper { Also, just noticed this name (I'm ...
4 years, 1 month ago (2016-11-17 20:04:37 UTC) #32
bruthig
gab@, can you take another look? https://codereview.chromium.org/2494943005/diff/80001/base/test/scoped_mock_message_loop_task_runner_wrapper.cc File base/test/scoped_mock_message_loop_task_runner_wrapper.cc (right): https://codereview.chromium.org/2494943005/diff/80001/base/test/scoped_mock_message_loop_task_runner_wrapper.cc#newcode29 base/test/scoped_mock_message_loop_task_runner_wrapper.cc:29: for (auto it ...
4 years, 1 month ago (2016-11-17 23:57:08 UTC) #35
gab
Very nice tests :), lvg thanks! https://codereview.chromium.org/2494943005/diff/140001/base/test/scoped_mock_time_message_loop_task_runner.cc File base/test/scoped_mock_time_message_loop_task_runner.cc (right): https://codereview.chromium.org/2494943005/diff/140001/base/test/scoped_mock_time_message_loop_task_runner.cc#newcode12 base/test/scoped_mock_time_message_loop_task_runner.cc:12: #include "base/test/test_mock_time_task_runner.h" rm ...
4 years, 1 month ago (2016-11-18 15:13:55 UTC) #38
bruthig
gab@, thanks for the helpful comments. Can you take another look? BTW what does 'lvg' ...
4 years, 1 month ago (2016-11-18 16:44:53 UTC) #40
gab
Awesome work, base/test lgtm w/ nits PS: lvg == looks very good (I usually use ...
4 years, 1 month ago (2016-11-18 18:18:54 UTC) #42
bruthig
https://codereview.chromium.org/2494943005/diff/180001/ash/common/system/tray/tray_details_view_unittest.cc File ash/common/system/tray/tray_details_view_unittest.cc (right): https://codereview.chromium.org/2494943005/diff/180001/ash/common/system/tray/tray_details_view_unittest.cc#newcode142 ash/common/system/tray/tray_details_view_unittest.cc:142: scoped_task_runner_.task_runner()->FastForwardBy( On 2016/11/18 18:18:54, gab wrote: > scoped_task_runner_->FastForwardBy() > ...
4 years, 1 month ago (2016-11-18 18:47:59 UTC) #45
bruthig
danakj@, can you provide an OWNER's review?
4 years, 1 month ago (2016-11-18 18:48:27 UTC) #46
gab
lgtm++ https://codereview.chromium.org/2494943005/diff/180001/base/test/scoped_mock_time_message_loop_task_runner_unittest.cc File base/test/scoped_mock_time_message_loop_task_runner_unittest.cc (right): https://codereview.chromium.org/2494943005/diff/180001/base/test/scoped_mock_time_message_loop_task_runner_unittest.cc#newcode95 base/test/scoped_mock_time_message_loop_task_runner_unittest.cc:95: scoped_task_runner_->task_runner()->FastForwardBy(step_time_by); On 2016/11/18 18:47:59, bruthig wrote: > On ...
4 years, 1 month ago (2016-11-18 18:53:37 UTC) #49
danakj
LGTM https://codereview.chromium.org/2494943005/diff/190001/base/test/scoped_mock_time_message_loop_task_runner.cc File base/test/scoped_mock_time_message_loop_task_runner.cc (right): https://codereview.chromium.org/2494943005/diff/190001/base/test/scoped_mock_time_message_loop_task_runner.cc#newcode22 base/test/scoped_mock_time_message_loop_task_runner.cc:22: RunLoop().RunUntilIdle(); Can you leave a comment explaining this? ...
4 years, 1 month ago (2016-11-18 21:27:21 UTC) #50
bruthig
https://codereview.chromium.org/2494943005/diff/190001/base/test/scoped_mock_time_message_loop_task_runner.cc File base/test/scoped_mock_time_message_loop_task_runner.cc (right): https://codereview.chromium.org/2494943005/diff/190001/base/test/scoped_mock_time_message_loop_task_runner.cc#newcode22 base/test/scoped_mock_time_message_loop_task_runner.cc:22: RunLoop().RunUntilIdle(); On 2016/11/18 21:27:21, danakj wrote: > Can you ...
4 years, 1 month ago (2016-11-18 22:53:28 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2494943005/210001
4 years, 1 month ago (2016-11-18 22:54:10 UTC) #56
commit-bot: I haz the power
Committed patchset #12 (id:210001)
4 years, 1 month ago (2016-11-19 01:10:06 UTC) #58
commit-bot: I haz the power
4 years, 1 month ago (2016-11-19 01:13:26 UTC) #60
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/eb01167a5b2d97d18446ca7b502761d658a7a995
Cr-Commit-Position: refs/heads/master@{#433366}

Powered by Google App Engine
This is Rietveld 408576698