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

Issue 1760823002: Allow splitter to resize next element (Closed)

Created:
4 years, 9 months ago by ryoh
Modified:
4 years, 9 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, oshima+watch_chromium.org, hirono, tapted, Evan Stade
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow splitter to resize next element To specify which element should be resized, I added a new argument "resizeNextElement" to decorate method. BUG=591611 TEST=none Committed: https://crrev.com/9613e62a3e9d55ffdc04d1276ee57c54ae8322e2 Cr-Commit-Position: refs/heads/master@{#379737}

Patch Set 1 #

Total comments: 8

Patch Set 2 : use setter instead of argument of decorate, and added tests #

Total comments: 19

Patch Set 3 : updated along the review #

Total comments: 2

Patch Set 4 : remote redundant '+' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -10 lines) Patch
M chrome/test/data/webui/splitter_test.html View 1 2 2 chunks +59 lines, -2 lines 0 comments Download
M ui/webui/resources/js/cr/ui/splitter.js View 1 2 3 5 chunks +37 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
ryoh
Hi! I added an option to switch which element should be resized by splitter. Could ...
4 years, 9 months ago (2016-03-03 08:04:37 UTC) #2
tapted
estade is a better reviewer for this than me, plus he has the OWNERS bits ...
4 years, 9 months ago (2016-03-03 11:41:32 UTC) #4
Dan Beam
I can review for estade@ (I'm sure he's heartbroken, but will recover somehow) please also ...
4 years, 9 months ago (2016-03-03 19:32:28 UTC) #7
ryoh
Thank you for your review! I found that we can't pass any arguments to decorate ...
4 years, 9 months ago (2016-03-07 04:38:18 UTC) #9
Dan Beam
https://codereview.chromium.org/1760823002/diff/20001/chrome/test/data/webui/splitter_test.html File chrome/test/data/webui/splitter_test.html (right): https://codereview.chromium.org/1760823002/diff/20001/chrome/test/data/webui/splitter_test.html#newcode19 chrome/test/data/webui/splitter_test.html:19: } \n https://codereview.chromium.org/1760823002/diff/20001/chrome/test/data/webui/splitter_test.html#newcode35 chrome/test/data/webui/splitter_test.html:35: splitter.dispatchEvent(move); why do we need ...
4 years, 9 months ago (2016-03-07 18:14:20 UTC) #10
ryoh
Thank you for the review! I updated the patch, could you take another look? https://codereview.chromium.org/1760823002/diff/20001/chrome/test/data/webui/splitter_test.html ...
4 years, 9 months ago (2016-03-08 01:24:32 UTC) #11
Dan Beam
lgtm https://codereview.chromium.org/1760823002/diff/40001/ui/webui/resources/js/cr/ui/splitter.js File ui/webui/resources/js/cr/ui/splitter.js (right): https://codereview.chromium.org/1760823002/diff/40001/ui/webui/resources/js/cr/ui/splitter.js#newcode156 ui/webui/resources/js/cr/ui/splitter.js:156: return this.resizeNextElement_ ? -deltaX : +deltaX; nit: unary ...
4 years, 9 months ago (2016-03-08 01:29:17 UTC) #12
ryoh
Thank you! https://codereview.chromium.org/1760823002/diff/40001/ui/webui/resources/js/cr/ui/splitter.js File ui/webui/resources/js/cr/ui/splitter.js (right): https://codereview.chromium.org/1760823002/diff/40001/ui/webui/resources/js/cr/ui/splitter.js#newcode156 ui/webui/resources/js/cr/ui/splitter.js:156: return this.resizeNextElement_ ? -deltaX : +deltaX; On ...
4 years, 9 months ago (2016-03-08 01:36:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1760823002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1760823002/60001
4 years, 9 months ago (2016-03-08 01:37:21 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-08 04:39:12 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 04:41:41 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9613e62a3e9d55ffdc04d1276ee57c54ae8322e2
Cr-Commit-Position: refs/heads/master@{#379737}

Powered by Google App Engine
This is Rietveld 408576698