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

Issue 574113004: [Athena] Fix switching activities by swiping from the right bezel (Closed)

Created:
6 years, 3 months ago by pkotwicz
Modified:
6 years, 2 months ago
Reviewers:
sadrul, oshima, mfomitchev
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@athena_split
Project:
chromium
Visibility:
Public.

Description

[Athena] Fix switching activities by swiping from the right bezel BUG=414936 TEST=WindowManagertest.BezelGestureToSwitchBetweenWindows Committed: https://crrev.com/b166746fc2820f27cecfaa80cd97edaaf00296af Cr-Commit-Position: refs/heads/master@{#296548}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Total comments: 3

Patch Set 5 : Rebased to ToT #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -153 lines) Patch
M athena/wm/bezel_controller.cc View 1 2 3 4 1 chunk +10 lines, -4 lines 0 comments Download
M athena/wm/public/window_list_provider.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M athena/wm/split_view_controller.h View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download
M athena/wm/split_view_controller.cc View 1 2 3 4 5 6 7 5 chunks +34 lines, -8 lines 0 comments Download
M athena/wm/split_view_controller_unittest.cc View 1 2 5 chunks +48 lines, -25 lines 0 comments Download
M athena/wm/window_list_provider_impl.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M athena/wm/window_list_provider_impl.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M athena/wm/window_list_provider_impl_unittest.cc View 1 2 1 chunk +18 lines, -30 lines 0 comments Download
M athena/wm/window_manager_impl.h View 1 2 3 chunks +8 lines, -7 lines 0 comments Download
M athena/wm/window_manager_impl.cc View 1 2 3 4 5 6 7 5 chunks +20 lines, -22 lines 0 comments Download
M athena/wm/window_manager_unittest.cc View 1 2 3 4 5 6 7 14 chunks +52 lines, -45 lines 0 comments Download

Messages

Total messages: 38 (16 generated)
pkotwicz
mfomitchev@ PTAL The change in bezel_controller.cc is to make the unit test not crash due ...
6 years, 3 months ago (2014-09-17 01:10:05 UTC) #5
mfomitchev
https://codereview.chromium.org/574113004/diff/80001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/574113004/diff/80001/athena/wm/split_view_controller.cc#newcode125 athena/wm/split_view_controller.cc:125: window_list_provider_->MoveToFront(left_window_); ActivateWindow already moves the window to front with ...
6 years, 3 months ago (2014-09-18 02:36:30 UTC) #7
pkotwicz
mfomitchev@ can you please take another look? https://codereview.chromium.org/574113004/diff/80001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/574113004/diff/80001/athena/wm/split_view_controller.cc#newcode125 athena/wm/split_view_controller.cc:125: window_list_provider_->MoveToFront(left_window_); I ...
6 years, 3 months ago (2014-09-18 13:54:45 UTC) #9
mfomitchev
https://codereview.chromium.org/574113004/diff/80001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/574113004/diff/80001/athena/wm/split_view_controller.cc#newcode125 athena/wm/split_view_controller.cc:125: window_list_provider_->MoveToFront(left_window_); We still use ActivateWindow in ScrollEnd - that's ...
6 years, 3 months ago (2014-09-18 18:11:52 UTC) #10
pkotwicz
I think that chatting with Sadrul is a good idea. I am going to wait ...
6 years, 3 months ago (2014-09-19 14:01:04 UTC) #11
pkotwicz
Mikhail, can you please take another look? I have updated the API as discussed https://codereview.chromium.org/574113004/diff/160001/athena/wm/split_view_controller.cc ...
6 years, 3 months ago (2014-09-19 21:58:00 UTC) #13
mfomitchev
https://codereview.chromium.org/574113004/diff/160001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/574113004/diff/160001/athena/wm/split_view_controller.cc#newcode124 athena/wm/split_view_controller.cc:124: DCHECK_EQ(active_window, right_window_); I'd actually make it into a CHECK ...
6 years, 3 months ago (2014-09-22 18:04:24 UTC) #14
pkotwicz
Mikhail, can you please take another look? https://codereview.chromium.org/574113004/diff/160001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/574113004/diff/160001/athena/wm/split_view_controller.cc#newcode124 athena/wm/split_view_controller.cc:124: DCHECK_EQ(active_window, right_window_); ...
6 years, 3 months ago (2014-09-22 18:30:25 UTC) #15
mfomitchev
LGTM
6 years, 3 months ago (2014-09-22 18:31:33 UTC) #16
pkotwicz
Sadrul, can you please take a look?
6 years, 3 months ago (2014-09-22 18:32:46 UTC) #18
sadrul
LGTM https://codereview.chromium.org/574113004/diff/180001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/574113004/diff/180001/athena/wm/split_view_controller.cc#newcode115 athena/wm/split_view_controller.cc:115: wm::ActivateWindow(to_activate); Add a CHECK here that to_activate is ...
6 years, 3 months ago (2014-09-23 16:18:33 UTC) #19
pkotwicz
Oshima for OWNERS https://codereview.chromium.org/574113004/diff/180001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/574113004/diff/180001/athena/wm/split_view_controller.cc#newcode115 athena/wm/split_view_controller.cc:115: wm::ActivateWindow(to_activate); I have changed things around ...
6 years, 3 months ago (2014-09-24 14:59:23 UTC) #21
oshima
lgtm https://codereview.chromium.org/574113004/diff/220001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/574113004/diff/220001/athena/wm/split_view_controller.cc#newcode230 athena/wm/split_view_controller.cc:230: active_window != right_window_) { can you document when ...
6 years, 3 months ago (2014-09-24 19:42:33 UTC) #22
pkotwicz
https://codereview.chromium.org/574113004/diff/220001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/574113004/diff/220001/athena/wm/split_view_controller.cc#newcode230 athena/wm/split_view_controller.cc:230: active_window != right_window_) { I've made this happen by ...
6 years, 3 months ago (2014-09-24 21:05:12 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/574113004/240001
6 years, 3 months ago (2014-09-24 21:06:36 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/18244) mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/18692) win8_chromium_rel ...
6 years, 3 months ago (2014-09-24 21:10:22 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/574113004/260001
6 years, 3 months ago (2014-09-24 22:12:33 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:260001) as 1336694d5430fd7d6f90b20a0fcb9b144c1a5d8e
6 years, 3 months ago (2014-09-24 22:57:28 UTC) #34
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/b166746fc2820f27cecfaa80cd97edaaf00296af Cr-Commit-Position: refs/heads/master@{#296548}
6 years, 3 months ago (2014-09-24 22:58:02 UTC) #35
Mr4D (OOO till 08-26)
I do not quite understand why WindowListProvider::MoveToFront got removed. This was supposed to be a ...
6 years, 2 months ago (2014-09-26 22:12:25 UTC) #36
pkotwicz
I removed WindowListProvider::MoveToFront() because activating an activity produces the same effect as WindowListProvider::MoveToFront() I think ...
6 years, 2 months ago (2014-09-27 19:55:59 UTC) #37
oshima
6 years, 2 months ago (2014-09-29 19:56:12 UTC) #38
Message was sent while issue was closed.
On 2014/09/27 19:55:59, pkotwicz wrote:
> I removed WindowListProvider::MoveToFront() because activating an activity
> produces the same effect as WindowListProvider::MoveToFront()
> 
> I think that "activating an activity causes it to move to the front" is better
> than "moving an activity to the front causes the activity to be activated".
> Sorry for not CCing you on the CL. I will CC you on future CLs which touch
code
> that you have written
> We can bring back WindowListProvider::MoveToFront() if we find out that it is
> needed. If we do that we would need to change code which assumes that the
> topmost activity is the active activity.

I agree with Peter here. athena/wm is aura level API, and we already have API to
activate, so we should uses that. If we need a method to move a window w/o
activation,
we can add MoveToFront back.

Powered by Google App Engine
This is Rietveld 408576698