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

Issue 2824233003: Disallow toggling of shelf auto-hide with touch when there are no windows open (Closed)

Created:
3 years, 8 months ago by minch1
Modified:
3 years, 7 months ago
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Disallow toggling of shelf auto-hide with touch when there are no windows open. When there are no windows opened, do not change the auto_hide status when swiping down (or swiping up and then releasing) on the shelf. BUG=310322 Review-Url: https://codereview.chromium.org/2824233003 Cr-Commit-Position: refs/heads/master@{#468156} Committed: https://chromium.googlesource.com/chromium/src/+/a88d3cb58a45213da672a9614c04c949c2e0f215

Patch Set 1 #

Patch Set 2 : Add UT. #

Total comments: 5

Patch Set 3 : Addressed comments. #

Total comments: 12

Patch Set 4 : Addressed comments. #

Total comments: 1

Patch Set 5 : Fix comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -23 lines) Patch
M ash/shelf/shelf_layout_manager.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 3 chunks +23 lines, -21 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 2 chunks +59 lines, -2 lines 0 comments Download

Messages

Total messages: 52 (32 generated)
minch1
oshima@, tdanderson@, can you help review? Thanks.
3 years, 8 months ago (2017-04-19 20:06:15 UTC) #8
oshima
can you add a unit test?
3 years, 8 months ago (2017-04-19 20:27:11 UTC) #9
minch1
Hi, xiaoyinh@, can you help take a look? Thanks.
3 years, 8 months ago (2017-04-20 18:53:55 UTC) #13
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2824233003/diff/20001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2824233003/diff/20001/ash/shelf/shelf_layout_manager.cc#newcode885 ash/shelf/shelf_layout_manager.cc:885: visible_window = true; nit: Just return true here, and ...
3 years, 8 months ago (2017-04-21 04:13:12 UTC) #16
minch1
https://codereview.chromium.org/2824233003/diff/20001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2824233003/diff/20001/ash/shelf/shelf_layout_manager.cc#newcode885 ash/shelf/shelf_layout_manager.cc:885: visible_window = true; On 2017/04/21 04:13:12, xiaoyinh wrote: > ...
3 years, 8 months ago (2017-04-21 16:42:43 UTC) #17
minch1
Hi, oshima@, tdanderson@, xiaoyinh@, can you help review? Thanks.
3 years, 8 months ago (2017-04-21 17:27:57 UTC) #23
minch1
Hi, oshima@, tdanderson@, xiaoyinh@, can you help review? Thanks.
3 years, 8 months ago (2017-04-21 17:27:58 UTC) #24
tdanderson
I've left a couple of comments but will defer to oshima@ for a more detailed ...
3 years, 8 months ago (2017-04-24 16:57:23 UTC) #25
minch1
https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc#newcode1136 ash/shelf/shelf_layout_manager.cc:1136: // on the shelf. On 2017/04/24 16:57:23, tdanderson wrote: ...
3 years, 8 months ago (2017-04-24 17:42:40 UTC) #26
tdanderson
https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc#newcode1136 ash/shelf/shelf_layout_manager.cc:1136: // on the shelf. On 2017/04/24 17:42:40, minch1 wrote: ...
3 years, 8 months ago (2017-04-25 13:43:07 UTC) #27
oshima
https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc#newcode876 ash/shelf/shelf_layout_manager.cc:876: for (size_t i = 0; i < windows.size(); ++i) ...
3 years, 8 months ago (2017-04-25 18:02:16 UTC) #28
oshima
3 years, 8 months ago (2017-04-25 18:02:19 UTC) #29
minch1
oshima@, can you help check the replies? https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc#newcode877 ash/shelf/shelf_layout_manager.cc:877: if (windows[i] ...
3 years, 8 months ago (2017-04-25 23:43:09 UTC) #30
oshima
https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2824233003/diff/40001/ash/shelf/shelf_layout_manager.cc#newcode877 ash/shelf/shelf_layout_manager.cc:877: if (windows[i] && windows[i]->IsVisible() && !IsAppListWindow(windows[i]) && On 2017/04/25 ...
3 years, 8 months ago (2017-04-27 01:53:55 UTC) #31
minch1
oshima@, can you take a look again? Thanks.
3 years, 7 months ago (2017-04-27 16:43:45 UTC) #36
oshima
https://codereview.chromium.org/2824233003/diff/60001/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2824233003/diff/60001/ash/shelf/shelf_layout_manager.cc#newcode871 ash/shelf/shelf_layout_manager.cc:871: .id(); Sorry I missed this suggestion. It's simpler and ...
3 years, 7 months ago (2017-04-27 16:55:06 UTC) #37
minch1
oshima@, can you help take a look? Thanks.
3 years, 7 months ago (2017-04-28 21:17:10 UTC) #46
oshima
lgtm thanks!
3 years, 7 months ago (2017-04-28 21:43:02 UTC) #47
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/2824233003/80001
3 years, 7 months ago (2017-04-28 21:47:44 UTC) #49
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 22:27:23 UTC) #52
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a88d3cb58a45213da672a9614c04...

Powered by Google App Engine
This is Rietveld 408576698