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

Issue 15931005: Move bezel event routing for the shelf into ShelfLayoutManager (Closed)

Created:
7 years, 6 months ago by rharrison
Modified:
7 years, 6 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Move bezel event routing for the shelf into ShelfLayoutManager Currently the only functional use of BorderGestureHandler is to funnel gestures that start on a bezel sensor to the shelf. This CL moves this functionality into ShelfLayoutManager via a filter class ShelfLayoutManager::BezelEventFilter and removes BorderGestureHandler. BUG=224371 TEST=Tested that bezel gestures for the shelf and immersive mode work as expected. Tested that when rotating the screen gestures on the bezeled sides were handled or not handled by the shelf when they should be. Added test cases and ran them. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204904

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed nits for sadrul@ #

Total comments: 2

Patch Set 3 : Moved filter out of ShelfLayoutManager into its own class/file. #

Patch Set 4 : Removed failing test after discussing with sadrul #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -328 lines) Patch
M ash/ash.gyp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A ash/shelf/shelf_bezel_event_filter.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A ash/shelf/shelf_bezel_event_filter.cc View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 7 chunks +14 lines, -6 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 2 chunks +40 lines, -1 line 0 comments Download
D ash/wm/gestures/border_gesture_handler.h View 1 chunk +0 lines, -103 lines 0 comments Download
D ash/wm/gestures/border_gesture_handler.cc View 1 chunk +0 lines, -171 lines 0 comments Download
M ash/wm/system_gesture_event_filter.h View 2 chunks +0 lines, -2 lines 0 comments Download
M ash/wm/system_gesture_event_filter.cc View 3 chunks +0 lines, -7 lines 0 comments Download
M ash/wm/system_gesture_event_filter_unittest.cc View 1 2 3 1 chunk +0 lines, -35 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rharrison
PTAL
7 years, 6 months ago (2013-05-29 20:13:20 UTC) #1
sadrul
Nice! LGTM https://codereview.chromium.org/15931005/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/15931005/diff/1/ash/shelf/shelf_layout_manager.cc#newcode150 ash/shelf/shelf_layout_manager.cc:150: const gfx::Point& point); const method https://codereview.chromium.org/15931005/diff/1/ash/shelf/shelf_layout_manager.cc#newcode213 ash/shelf/shelf_layout_manager.cc:213: ...
7 years, 6 months ago (2013-05-31 14:40:38 UTC) #2
rharrison
Added sky@ for OWNERS https://codereview.chromium.org/15931005/diff/1/ash/shelf/shelf_layout_manager.cc File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/15931005/diff/1/ash/shelf/shelf_layout_manager.cc#newcode150 ash/shelf/shelf_layout_manager.cc:150: const gfx::Point& point); On 2013/05/31 ...
7 years, 6 months ago (2013-05-31 15:15:46 UTC) #3
sky
https://codereview.chromium.org/15931005/diff/5001/ash/shelf/shelf_layout_manager.h File ash/shelf/shelf_layout_manager.h (right): https://codereview.chromium.org/15931005/diff/5001/ash/shelf/shelf_layout_manager.h#newcode321 ash/shelf/shelf_layout_manager.h:321: scoped_ptr<BezelEventFilter> bezel_event_filter_; What's the compelling reason to have this ...
7 years, 6 months ago (2013-05-31 17:04:50 UTC) #4
rharrison
https://codereview.chromium.org/15931005/diff/5001/ash/shelf/shelf_layout_manager.h File ash/shelf/shelf_layout_manager.h (right): https://codereview.chromium.org/15931005/diff/5001/ash/shelf/shelf_layout_manager.h#newcode321 ash/shelf/shelf_layout_manager.h:321: scoped_ptr<BezelEventFilter> bezel_event_filter_; On 2013/05/31 17:04:50, sky wrote: > What's ...
7 years, 6 months ago (2013-06-05 18:24:04 UTC) #5
sky
Fair enough, can you move BezelEventFilter into its own file (shelf_layout_manager.cc is big enough already). ...
7 years, 6 months ago (2013-06-06 15:31:18 UTC) #6
rharrison
Done
7 years, 6 months ago (2013-06-06 18:48:15 UTC) #7
sky
Thanks. LGTM
7 years, 6 months ago (2013-06-07 04:34:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rharrison@chromium.org/15931005/36001
7 years, 6 months ago (2013-06-07 17:09:19 UTC) #9
commit-bot: I haz the power
7 years, 6 months ago (2013-06-07 19:58:10 UTC) #10
Message was sent while issue was closed.
Change committed as 204904

Powered by Google App Engine
This is Rietveld 408576698