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

Issue 545393002: Adding split view divider widget. (Closed)

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

Description

Adding split view divider widget. Adding split view divider widget which could be dragged to exit the split view. BUG=403207, 408691 Committed: https://crrev.com/b47c16517f0882cbabf8c9aa9ce66711f026fd5b Cr-Commit-Position: refs/heads/master@{#296351}

Patch Set 1 #

Patch Set 2 : git cl format #

Total comments: 22

Patch Set 3 : Implementing targeting for the divider, addressing mukai's feedback. #

Total comments: 22

Patch Set 4 : Rebase #

Patch Set 5 : Minor format fixes. #

Patch Set 6 : Addressing sadrul's feedback #

Total comments: 12

Patch Set 7 : Addressing sadrul's feedback (contd) #

Patch Set 8 : Getting rid of divider_window, addressing tdanderson's feedback. #

Total comments: 59

Patch Set 9 : Addressing sadrul's feedback (contd). #

Total comments: 2

Patch Set 10 : Addressing Peter's feedback. #

Patch Set 11 : Code format #

Total comments: 21

Patch Set 12 : Addressing pkotwicz 's feedback (contd) #

Total comments: 1

Patch Set 13 : Rebase + a couple of TODOs #

Total comments: 1

Patch Set 14 : Addressing pkotwicz feedback (contd) #

Patch Set 15 : Fixing the unit test #

Patch Set 16 : Fixing a NOTREACHED in the test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+755 lines, -105 lines) Patch
M athena/athena.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +9 lines, -6 lines 0 comments Download
M athena/util/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A athena/util/drag_handle.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +41 lines, -0 lines 0 comments Download
A athena/util/drag_handle.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +142 lines, -0 lines 0 comments Download
A athena/util/drag_handle_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +140 lines, -0 lines 0 comments Download
M athena/wm/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M athena/wm/bezel_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -8 lines 0 comments Download
M athena/wm/bezel_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +37 lines, -23 lines 0 comments Download
M athena/wm/split_view_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +63 lines, -16 lines 0 comments Download
M athena/wm/split_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10 chunks +313 lines, -50 lines 0 comments Download
M athena/wm/window_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M athena/wm/window_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (6 generated)
mfomitchev
PTAL tl;dr: Any thoughts about unifying DragHandle::ScrollDelegate and BezelController::ScrollDelegate? DragHandle::ScrollDelegate is obviously very similar to ...
6 years, 3 months ago (2014-09-05 23:17:11 UTC) #2
Jun Mukai
Apart from the coding, I am wondering if using a widget for the splitter is ...
6 years, 3 months ago (2014-09-08 19:32:00 UTC) #3
mfomitchev
On 2014/09/08 19:32:00, Jun Mukai wrote: > Apart from the coding, I am wondering if ...
6 years, 3 months ago (2014-09-09 14:40:30 UTC) #4
Jun Mukai
On 2014/09/09 14:40:30, mfomitchev wrote: > On 2014/09/08 19:32:00, Jun Mukai wrote: > > Apart ...
6 years, 3 months ago (2014-09-10 00:41:55 UTC) #5
sadrul
https://codereview.chromium.org/545393002/diff/20001/athena/common/drag_handle.cc File athena/common/drag_handle.cc (right): https://codereview.chromium.org/545393002/diff/20001/athena/common/drag_handle.cc#newcode137 athena/common/drag_handle.cc:137: delegate_->HandleScrollEnd(); Do we not want to take the velocity ...
6 years, 3 months ago (2014-09-12 04:30:37 UTC) #6
mfomitchev
https://codereview.chromium.org/545393002/diff/20001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/545393002/diff/20001/athena/wm/split_view_controller.cc#newcode146 athena/wm/split_view_controller.cc:146: const int kDividerWidth = kDragHandleWidth + 2 * kDragHandleInnerMargin; ...
6 years, 3 months ago (2014-09-12 19:58:42 UTC) #7
mfomitchev
https://codereview.chromium.org/545393002/diff/20001/athena/common/drag_handle.cc File athena/common/drag_handle.cc (right): https://codereview.chromium.org/545393002/diff/20001/athena/common/drag_handle.cc#newcode137 athena/common/drag_handle.cc:137: delegate_->HandleScrollEnd(); That sounds like a good idea. I was ...
6 years, 3 months ago (2014-09-12 20:49:08 UTC) #8
sadrul
https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc#newcode108 athena/wm/split_view_controller.cc:108: virtual void OnWindowDestroying(aura::Window* window) OVERRIDE {} Some have {} ...
6 years, 3 months ago (2014-09-15 14:32:30 UTC) #10
mfomitchev
https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc#newcode108 athena/wm/split_view_controller.cc:108: virtual void OnWindowDestroying(aura::Window* window) OVERRIDE {} On 2014/09/15 14:32:29, ...
6 years, 3 months ago (2014-09-15 16:37:25 UTC) #11
sadrul
[Note that a couple of the replies below are to the comments in patchset 3] ...
6 years, 3 months ago (2014-09-15 16:53:31 UTC) #12
mfomitchev
https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc#newcode314 athena/wm/split_view_controller.cc:314: divider_window_.reset(new aura::Window(new EmptyWindowDelegate())); If we do that, we will ...
6 years, 3 months ago (2014-09-15 17:44:20 UTC) #13
tdanderson
View targeting stuff lgtm with the TODO suggested (I will look into that). Came across ...
6 years, 3 months ago (2014-09-15 17:48:19 UTC) #14
sadrul
https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc#newcode314 athena/wm/split_view_controller.cc:314: divider_window_.reset(new aura::Window(new EmptyWindowDelegate())); On 2014/09/15 17:44:20, mfomitchev wrote: > ...
6 years, 3 months ago (2014-09-15 17:50:25 UTC) #15
mfomitchev
https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc#newcode314 athena/wm/split_view_controller.cc:314: divider_window_.reset(new aura::Window(new EmptyWindowDelegate())); > It still doesn't make sense ...
6 years, 3 months ago (2014-09-15 18:34:21 UTC) #16
mfomitchev
6 years, 3 months ago (2014-09-15 18:34:22 UTC) #17
sadrul
On 2014/09/15 18:34:21, mfomitchev wrote: > https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc > File athena/wm/split_view_controller.cc (right): > > https://codereview.chromium.org/545393002/diff/40001/athena/wm/split_view_controller.cc#newcode314 > ...
6 years, 3 months ago (2014-09-15 18:48:47 UTC) #18
mfomitchev
Ok, I got rid of the divider window. I didn't change the view-level targeting, since ...
6 years, 3 months ago (2014-09-15 21:43:47 UTC) #19
pkotwicz
Perhaps, this is for another CL, but if Javascript opens a popup window while a ...
6 years, 3 months ago (2014-09-16 16:05:36 UTC) #20
mfomitchev
Aren't popups completely broken on Athena right now? I just tried http://www.w3schools.com/js/tryit.asp?filename=tryjs_confirm (in normal mode) ...
6 years, 3 months ago (2014-09-16 16:46:37 UTC) #21
pkotwicz
JS alerts are completely broken in athena. Popups opened via window.open() are not.
6 years, 3 months ago (2014-09-16 16:48:06 UTC) #22
pkotwicz
For the sake of completeness, http://crbug.com/405594 tracks alert() and confirm() being broken on athena
6 years, 3 months ago (2014-09-16 16:49:05 UTC) #23
sadrul
On 2014/09/16 16:05:36, pkotwicz wrote: > Perhaps, this is for another CL, but if Javascript ...
6 years, 3 months ago (2014-09-16 17:11:37 UTC) #24
mfomitchev
Ah, I see. It's actually worse than just opening the window in the background - ...
6 years, 3 months ago (2014-09-16 17:18:12 UTC) #25
mfomitchev
https://codereview.chromium.org/545393002/diff/140001/athena/util/drag_handle.cc File athena/util/drag_handle.cc (right): https://codereview.chromium.org/545393002/diff/140001/athena/util/drag_handle.cc#newcode21 athena/util/drag_handle.cc:21: explicit DragHandleView(DragHandle::ScrollDirection scroll_direction, On 2014/09/16 17:11:36, sadrul wrote: > ...
6 years, 3 months ago (2014-09-16 19:48:11 UTC) #26
sadrul
lgtm
6 years, 3 months ago (2014-09-16 19:51:26 UTC) #27
Jun Mukai
lgtm https://codereview.chromium.org/545393002/diff/160001/athena/wm/bezel_controller.cc File athena/wm/bezel_controller.cc (right): https://codereview.chromium.org/545393002/diff/160001/athena/wm/bezel_controller.cc#newcode53 athena/wm/bezel_controller.cc:53: aura::Window* window) { nit: Doesn't this fit into ...
6 years, 3 months ago (2014-09-16 19:58:48 UTC) #28
pkotwicz
https://codereview.chromium.org/545393002/diff/140001/athena/util/drag_handle.cc File athena/util/drag_handle.cc (right): https://codereview.chromium.org/545393002/diff/140001/athena/util/drag_handle.cc#newcode43 athena/util/drag_handle.cc:43: State state_; The enum has two values, can this ...
6 years, 3 months ago (2014-09-16 20:02:48 UTC) #30
mfomitchev
Peter, can you PTAL? https://codereview.chromium.org/545393002/diff/140001/athena/util/drag_handle.cc File athena/util/drag_handle.cc (right): https://codereview.chromium.org/545393002/diff/140001/athena/util/drag_handle.cc#newcode43 athena/util/drag_handle.cc:43: State state_; On 2014/09/16 20:02:47, ...
6 years, 2 months ago (2014-09-22 21:11:00 UTC) #31
pkotwicz
A few more comments. Thank you for being patient with me https://codereview.chromium.org/545393002/diff/140001/athena/util/drag_handle.h File athena/util/drag_handle.h (right): ...
6 years, 2 months ago (2014-09-23 05:13:40 UTC) #32
pkotwicz
https://codereview.chromium.org/545393002/diff/140001/athena/wm/split_view_controller.cc File athena/wm/split_view_controller.cc (right): https://codereview.chromium.org/545393002/diff/140001/athena/wm/split_view_controller.cc#newcode536 athena/wm/split_view_controller.cc:536: gfx::Rect container_bounds = container_->GetBoundsInScreen(); Leaving as is probably OK. ...
6 years, 2 months ago (2014-09-23 14:34:09 UTC) #33
mfomitchev
https://codereview.chromium.org/545393002/diff/140001/athena/util/drag_handle.h File athena/util/drag_handle.h (right): https://codereview.chromium.org/545393002/diff/140001/athena/util/drag_handle.h#newcode39 athena/util/drag_handle.h:39: virtual bool HandleCanScroll() = 0; Yes, good point. I ...
6 years, 2 months ago (2014-09-23 15:46:03 UTC) #34
pkotwicz
LGTM with comments https://codereview.chromium.org/545393002/diff/200001/athena/wm/bezel_controller.cc File athena/wm/bezel_controller.cc (right): https://codereview.chromium.org/545393002/diff/200001/athena/wm/bezel_controller.cc#newcode118 athena/wm/bezel_controller.cc:118: SetState(NONE); From talking to tdresser@ we ...
6 years, 2 months ago (2014-09-23 19:44:46 UTC) #35
mfomitchev
https://codereview.chromium.org/545393002/diff/200001/athena/wm/bezel_controller.cc File athena/wm/bezel_controller.cc (right): https://codereview.chromium.org/545393002/diff/200001/athena/wm/bezel_controller.cc#newcode118 athena/wm/bezel_controller.cc:118: SetState(NONE); I started a thread with sadrul on this, ...
6 years, 2 months ago (2014-09-23 21:02:09 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/545393002/260001
6 years, 2 months ago (2014-09-23 21:03:15 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/17113)
6 years, 2 months ago (2014-09-23 22:08:22 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/545393002/280001
6 years, 2 months ago (2014-09-24 04:45:52 UTC) #42
commit-bot: I haz the power
Committed patchset #15 (id:280001) as 3f398207ca94ba6354b3efdfe0cdf19d0e2019fe
6 years, 2 months ago (2014-09-24 05:20:47 UTC) #43
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/b47c16517f0882cbabf8c9aa9ce66711f026fd5b Cr-Commit-Position: refs/heads/master@{#296351}
6 years, 2 months ago (2014-09-24 05:21:25 UTC) #44
Nico
6 years, 2 months ago (2014-09-24 16:19:47 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #15 id:280001) has been created in
https://codereview.chromium.org/602603003/ by thakis@chromium.org.

The reason for reverting is: DragHandleTest.ScrollTest is failing on the bots:
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2....

Powered by Google App Engine
This is Rietveld 408576698