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

Issue 14195016: Add in gesture for immersive mode (Closed)

Created:
7 years, 8 months ago by rharrison
Modified:
7 years, 7 months ago
Reviewers:
pkotwicz, sadrul, James Cook
CC:
chromium-reviews, tfarina, sadrul, ben+watch_chromium.org
Base URL:
https://codereview.chromium.org/13315002/
Visibility:
Public.

Description

Add in gesture for immersive mode Adds in a swipe in from the top of the screen to the BorderGestureHandler. This gestures causes the tab strip to reveal in the same fashion that moving the mouse to the top of the screen in immersive mode. Currently the tab strip does not reveal by being sticky to the finger like the shelf swipe in. Implementing stickiness will require a significant effort and it is not clear if it is needed yet. There is also an issue with touches outside the tab strip not hidding the shelf, which is left to be resolved in another CL. BUG=chromium:164165 TEST=Entered immersive mode and swiped in from the top of the screen, which caused the tab strip to animate in.

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -13 lines) Patch
M ash/root_window_controller.h View 1 chunk +5 lines, -0 lines 2 comments Download
M ash/root_window_controller.cc View 1 chunk +10 lines, -0 lines 3 comments Download
M ash/wm/gestures/border_gesture_handler.h View 4 chunks +21 lines, -2 lines 2 comments Download
M ash/wm/gestures/border_gesture_handler.cc View 8 chunks +63 lines, -11 lines 2 comments Download
M ash/wm/window_properties.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/window_properties.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rharrison
7 years, 8 months ago (2013-04-17 21:34:49 UTC) #1
sadrul
I looked at just BorderGestureHandler changes. I'll leave the immersive changes for pkotwicz@/jamescook@ https://codereview.chromium.org/14195016/diff/1/ash/wm/gestures/border_gesture_handler.cc File ...
7 years, 8 months ago (2013-04-19 01:41:20 UTC) #2
pkotwicz
I will do a more thorough review on Saturday https://codereview.chromium.org/14195016/diff/1/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/14195016/diff/1/ash/root_window_controller.cc#newcode526 ash/root_window_controller.cc:526: ...
7 years, 8 months ago (2013-04-19 06:06:44 UTC) #3
pkotwicz
I don't really like how we get the event to ImmersiveModeControllerAsh but I can't think ...
7 years, 8 months ago (2013-04-21 21:18:19 UTC) #4
James Cook
https://codereview.chromium.org/14195016/diff/1/ash/root_window_controller.h File ash/root_window_controller.h (right): https://codereview.chromium.org/14195016/diff/1/ash/root_window_controller.h#newcode179 ash/root_window_controller.h:179: void SetPendingImmersiveGesture(bool value); This doesn't feel like it belongs ...
7 years, 8 months ago (2013-04-22 18:19:28 UTC) #5
rharrison
Responded to comments. I will have a new CL up later today or more likely ...
7 years, 8 months ago (2013-04-22 18:36:52 UTC) #6
rharrison
7 years, 8 months ago (2013-04-24 14:07:41 UTC) #7
Rewriting how edge gestures work for the shelf, which should simplify things.
Will update this  CL once that is done.
On 2013/04/22 18:36:52, rharrison wrote:
> Responded to comments. I will have a new CL up later today or more likely
> tomorrow.
> 
> https://codereview.chromium.org/14195016/diff/1/ash/root_window_controller.cc
> File ash/root_window_controller.cc (right):
> 
>
https://codereview.chromium.org/14195016/diff/1/ash/root_window_controller.cc...
> ash/root_window_controller.cc:526: }
> On 2013/04/21 21:18:19, pkotwicz wrote:
> > FYI: I have implemented GetFullscreenWindow() as part of
> > https://codereview.chromium.org/14156005/ so you can probably steal the
> > implementation from there.
> 
> I will change the related code to use GetFullscreenWindow()
> 
> https://codereview.chromium.org/14195016/diff/1/ash/root_window_controller.h
> File ash/root_window_controller.h (right):
> 
>
https://codereview.chromium.org/14195016/diff/1/ash/root_window_controller.h#...
> ash/root_window_controller.h:179: void SetPendingImmersiveGesture(bool value);
> On 2013/04/22 18:19:28, James Cook (Chromium) wrote:
> > This doesn't feel like it belongs in the RootWindowController. In fact,
Peter
> > just removed the IsImmersiveMode() function above and I think we can remove
> the
> > kImmersiveMode window property key.  Can this be wired to call up through
the
> > ChromeShellDelegate and query immersive mode from there?
> 
> I suspect so, I will have to look into it.
> 
>
https://codereview.chromium.org/14195016/diff/1/ash/wm/gestures/border_gestur...
> File ash/wm/gestures/border_gesture_handler.cc (right):
> 
>
https://codereview.chromium.org/14195016/diff/1/ash/wm/gestures/border_gestur...
> ash/wm/gestures/border_gesture_handler.cc:80:
> target->GetRootWindow())->SetPendingImmersiveGesture(true);
> On 2013/04/19 01:41:20, sadrul wrote:
> > I think you should do this in SCROLL_BEGIN
> I agree, I suspect this is a typo
> 
>
https://codereview.chromium.org/14195016/diff/1/ash/wm/gestures/border_gestur...
> File ash/wm/gestures/border_gesture_handler.h (right):
> 
>
https://codereview.chromium.org/14195016/diff/1/ash/wm/gestures/border_gestur...
> ash/wm/gestures/border_gesture_handler.h:115: BorderGestureType gesture_type_;
> On 2013/04/19 01:41:20, sadrul wrote:
> > It doesn't look like you are using gesture_type_? I like the idea of using
> > gesture_type_ instead of having IsGestureInImmersiveOrientation etc.
> 
> This I think was left over cruft from something I was trying. I will have to
> think over your idea a bit.

Powered by Google App Engine
This is Rietveld 408576698