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

Issue 15734011: Correct immersive mode gestures under rotation (Closed)

Created:
7 years, 7 months ago by rharrison
Modified:
7 years, 6 months ago
Reviewers:
pkotwicz, sadrul, James Cook
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Correct immersive mode gestures under rotation This code does to things to make sure that immersive mode gestures operate correctly regardless of the screen orientation. The first is to move the registration of the filter to the root window, which guarantees that all of the events will be seen by the filter. The second change is to extend the bounds the filter is watching above by the maximum bezel side. This makes sure that under rotation swipes that start on the bezel are still handled. BUG=241545, 244269 TEST=Rotated screen through all rotations and confirmed that swipe in/out works as expected in immersive mode. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203005

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed sadrul's comments #

Total comments: 2

Patch Set 3 : Addressed pkotwicz's comments #

Patch Set 4 : Other part of the change to address pkotwicz's comments #

Total comments: 6

Patch Set 5 : Rebased and cleaned up CL #

Patch Set 6 : Added in OnWindowRemovedFromRootWindow #

Total comments: 14

Patch Set 7 : Responded to pkotwicz's comments #

Patch Set 8 : Moved SetPreTargetHandler() to private section #

Total comments: 8

Patch Set 9 : Fixed outstanding nits #

Patch Set 10 : Corrected incorrect overridden method names #

Patch Set 11 : Fix misnamed overrides correctly this time :-/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -60 lines) Patch
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +21 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +62 lines, -49 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
rharrison
PTAL
7 years, 7 months ago (2013-05-22 18:15:28 UTC) #1
sadrul
https://codereview.chromium.org/15734011/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (left): https://codereview.chromium.org/15734011/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#oldcode1001 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:1001: return near_bounds.Contains(location); Could you just do: return near_bounds.Contains(location) || ...
7 years, 7 months ago (2013-05-22 18:22:45 UTC) #2
rharrison
https://codereview.chromium.org/15734011/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (left): https://codereview.chromium.org/15734011/diff/1/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#oldcode1001 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:1001: return near_bounds.Contains(location); On 2013/05/22 18:22:45, sadrul wrote: > Could ...
7 years, 7 months ago (2013-05-22 20:58:49 UTC) #3
pkotwicz
I checked and it is possible for the root window to become invalid. The common ...
7 years, 7 months ago (2013-05-23 03:29:29 UTC) #4
pkotwicz
https://codereview.chromium.org/15734011/diff/16001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (right): https://codereview.chromium.org/15734011/diff/16001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#newcode358 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:358: bezel_inset_(0) { You don't use this?
7 years, 7 months ago (2013-05-23 03:29:35 UTC) #5
rharrison
Only part of my change was in this upload, will upload the rest soon. https://codereview.chromium.org/15734011/diff/16001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc ...
7 years, 7 months ago (2013-05-23 17:12:57 UTC) #6
rharrison
I have resolved all outstanding comments. PTAL
7 years, 7 months ago (2013-05-23 17:42:51 UTC) #7
pkotwicz
I'll take a look tonight
7 years, 7 months ago (2013-05-23 17:51:12 UTC) #8
sadrul
Looks pretty close. You can probably send to OWNERS in the next iteration. https://codereview.chromium.org/15734011/diff/28001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File ...
7 years, 7 months ago (2013-05-23 18:22:06 UTC) #9
rharrison
Adding jamescook@ for OWNERS https://codereview.chromium.org/15734011/diff/28001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (right): https://codereview.chromium.org/15734011/diff/28001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#newcode29 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:29: #include "ui/base/ui_base_switches.h" On 2013/05/23 18:22:07, ...
7 years, 7 months ago (2013-05-23 19:10:11 UTC) #10
pkotwicz
Looks really good. Just nits. https://codereview.chromium.org/15734011/diff/47001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (right): https://codereview.chromium.org/15734011/diff/47001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#newcode301 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:301: class ImmersiveModeControllerAsh::WindowObserver : public ...
7 years, 7 months ago (2013-05-24 03:27:30 UTC) #11
rharrison
https://codereview.chromium.org/15734011/diff/47001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (right): https://codereview.chromium.org/15734011/diff/47001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#newcode301 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:301: class ImmersiveModeControllerAsh::WindowObserver : public aura::WindowObserver { On 2013/05/24 03:27:30, ...
7 years, 7 months ago (2013-05-27 19:00:54 UTC) #12
pkotwicz
LGTM with nits https://codereview.chromium.org/15734011/diff/53001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (right): https://codereview.chromium.org/15734011/diff/53001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#newcode1025 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:1025: // hit the bounds due to ...
7 years, 7 months ago (2013-05-27 21:32:45 UTC) #13
James Cook
LGTM with nit https://codereview.chromium.org/15734011/diff/53001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h File chrome/browser/ui/views/frame/immersive_mode_controller_ash.h (right): https://codereview.chromium.org/15734011/diff/53001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h#newcode218 chrome/browser/ui/views/frame/immersive_mode_controller_ash.h:218: void SetPreTargetHandler(); nit: Consider making this ...
7 years, 6 months ago (2013-05-28 16:29:41 UTC) #14
rharrison
https://codereview.chromium.org/15734011/diff/53001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc File chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc (right): https://codereview.chromium.org/15734011/diff/53001/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc#newcode1025 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc:1025: // hit the bounds due to small on screen ...
7 years, 6 months ago (2013-05-28 17:03:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rharrison@chromium.org/15734011/71002
7 years, 6 months ago (2013-05-29 20:12:54 UTC) #16
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 23:38:05 UTC) #17
Message was sent while issue was closed.
Change committed as 203005

Powered by Google App Engine
This is Rietveld 408576698