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 480243003: Implement smoother autosizing of the extension options overlay (Closed)

Created:
6 years, 4 months ago by ericzeng
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement smoother autosizing of the extension options overlay - Use element.animate to resize the overlay for embedded extension options. When an <extensionoptions> element is embedded in a WebUI overlay, if its size changes the overlay will smoothly expand to surround the element. - Add an API to <extensionoptions> to defer autosizing until its embedder is ready. This is used to 'pin' the element's size until the overlay is done expanding. - Move the <extensionoptions> off screen until the overlay is done expanding. - Prevent <extensionoptions> from shrinking after the initial sizing. This makes the look of the embedded options page more consistent. BUG=386842 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291286 Committed: https://crrev.com/a9438c47225d119a953ebf195210e655cb88dbc5 Cr-Commit-Position: refs/heads/master@{#291583}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Remove magic numbers #

Patch Set 3 : Implement deferred autosizing #

Patch Set 4 : Use overlay size instead of <extensionoptions> size for initial animation keyframe #

Patch Set 5 : Fix syntax error #

Patch Set 6 : Move <extensionoptions> off screen until overlay is ready #

Total comments: 19

Patch Set 7 : Address comments #

Total comments: 4

Patch Set 8 : Address comments and some overlay code cleanup #

Patch Set 9 : Rebase #

Patch Set 10 : Fix variable names in autosize test #

Patch Set 11 : Fix merge conflict with CL 444813002 #

Patch Set 12 : rebase #

Messages

Total messages: 38 (0 generated)
ericzeng
PTAL
6 years, 4 months ago (2014-08-18 23:53:59 UTC) #1
not at google - send to devlin
Neat :) but did you have any luck delaying showing the dialogue until the first ...
6 years, 4 months ago (2014-08-19 17:02:48 UTC) #2
ericzeng
https://codereview.chromium.org/480243003/diff/1/chrome/browser/resources/extensions/extension_options_overlay.js File chrome/browser/resources/extensions/extension_options_overlay.js (right): https://codereview.chromium.org/480243003/diff/1/chrome/browser/resources/extensions/extension_options_overlay.js#newcode67 chrome/browser/resources/extensions/extension_options_overlay.js:67: // maxheight is the overlay window's max height minus ...
6 years, 4 months ago (2014-08-19 18:20:13 UTC) #3
ericzeng
On 2014/08/19 17:02:48, kalman wrote: > Neat :) but did you have any luck delaying ...
6 years, 4 months ago (2014-08-19 18:23:30 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/480243003/diff/1/chrome/renderer/resources/extensions/extension_options.js File chrome/renderer/resources/extensions/extension_options.js (right): https://codereview.chromium.org/480243003/diff/1/chrome/renderer/resources/extensions/extension_options.js#newcode143 chrome/renderer/resources/extensions/extension_options.js:143: var animationTime = 0.25 * Math.sqrt( On 2014/08/19 18:20:13, ...
6 years, 4 months ago (2014-08-19 19:27:18 UTC) #5
ericzeng
On 2014/08/19 19:27:18, kalman wrote: > https://codereview.chromium.org/480243003/diff/1/chrome/renderer/resources/extensions/extension_options.js > File chrome/renderer/resources/extensions/extension_options.js (right): > > https://codereview.chromium.org/480243003/diff/1/chrome/renderer/resources/extensions/extension_options.js#newcode143 > ...
6 years, 4 months ago (2014-08-19 20:26:05 UTC) #6
not at google - send to devlin
I tried this out, and it's awesome. https://codereview.chromium.org/480243003/diff/100001/chrome/browser/resources/extensions/extension_options_overlay.css File chrome/browser/resources/extensions/extension_options_overlay.css (right): https://codereview.chromium.org/480243003/diff/100001/chrome/browser/resources/extensions/extension_options_overlay.css#newcode6 chrome/browser/resources/extensions/extension_options_overlay.css:6: max-width: 100%; ...
6 years, 4 months ago (2014-08-20 02:07:15 UTC) #7
ericzeng
https://codereview.chromium.org/480243003/diff/100001/chrome/browser/resources/extensions/extension_options_overlay.js File chrome/browser/resources/extensions/extension_options_overlay.js (right): https://codereview.chromium.org/480243003/diff/100001/chrome/browser/resources/extensions/extension_options_overlay.js#newcode80 chrome/browser/resources/extensions/extension_options_overlay.js:80: extensionoptions.shouldDeferAutoSize(true); On 2014/08/20 02:07:15, kalman wrote: > You mention ...
6 years, 4 months ago (2014-08-20 02:23:30 UTC) #8
not at google - send to devlin
Also: is there anything to test here? https://codereview.chromium.org/480243003/diff/100001/chrome/browser/resources/extensions/extension_options_overlay.js File chrome/browser/resources/extensions/extension_options_overlay.js (right): https://codereview.chromium.org/480243003/diff/100001/chrome/browser/resources/extensions/extension_options_overlay.js#newcode105 chrome/browser/resources/extensions/extension_options_overlay.js:105: extensionoptions.resumeDeferredAutoSize(); On ...
6 years, 4 months ago (2014-08-20 02:29:34 UTC) #9
Fady Samuel
This looks really interesting but I'd like more background to what problems you are trying ...
6 years, 4 months ago (2014-08-20 14:49:21 UTC) #10
not at google - send to devlin
On 2014/08/20 14:49:21, Fady Samuel wrote: > This looks really interesting but I'd like more ...
6 years, 4 months ago (2014-08-20 14:54:57 UTC) #11
ericzeng
https://codereview.chromium.org/480243003/diff/100001/chrome/browser/resources/extensions/extension_options_overlay.css File chrome/browser/resources/extensions/extension_options_overlay.css (right): https://codereview.chromium.org/480243003/diff/100001/chrome/browser/resources/extensions/extension_options_overlay.css#newcode6 chrome/browser/resources/extensions/extension_options_overlay.css:6: max-width: 100%; On 2014/08/20 02:07:15, kalman wrote: > What ...
6 years, 4 months ago (2014-08-20 18:44:07 UTC) #12
ericzeng
On 2014/08/20 14:49:21, Fady Samuel wrote: > This looks really interesting but I'd like more ...
6 years, 4 months ago (2014-08-20 18:45:14 UTC) #13
not at google - send to devlin
This basically lgtm except for that calculation of the header height, except for that lineHeight ...
6 years, 4 months ago (2014-08-20 20:08:57 UTC) #14
not at google - send to devlin
> except for that calculation of the header height, except for > that lineHeight stuff ...
6 years, 4 months ago (2014-08-20 20:09:27 UTC) #15
ericzeng
https://codereview.chromium.org/480243003/diff/120001/chrome/browser/resources/extensions/extension_options_overlay.js File chrome/browser/resources/extensions/extension_options_overlay.js (right): https://codereview.chromium.org/480243003/diff/120001/chrome/browser/resources/extensions/extension_options_overlay.js#newcode74 chrome/browser/resources/extensions/extension_options_overlay.js:74: var headerHeight = parseInt(headerStyle.lineHeight) + On 2014/08/20 20:08:57, kalman ...
6 years, 4 months ago (2014-08-20 23:10:16 UTC) #16
Fady Samuel
guest_view lgtm extension_options.js lgtm extension_options_events.js lgtm
6 years, 4 months ago (2014-08-21 20:05:16 UTC) #17
ericzeng
The CQ bit was checked by ericzeng@chromium.org
6 years, 4 months ago (2014-08-21 20:23:08 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/480243003/160001
6 years, 4 months ago (2014-08-21 20:28:46 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 21:59:36 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 22:38:46 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/5777)
6 years, 4 months ago (2014-08-21 22:38:47 UTC) #22
ericzeng
The CQ bit was checked by ericzeng@chromium.org
6 years, 4 months ago (2014-08-21 23:26:53 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/480243003/180001
6 years, 4 months ago (2014-08-21 23:29:23 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 00:55:43 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (180001) as 291286
6 years, 4 months ago (2014-08-22 01:06:04 UTC) #26
sadrul
On 2014/08/22 01:06:04, I haz the power (commit-bot) wrote: > Committed patchset #10 (180001) as ...
6 years, 4 months ago (2014-08-22 04:04:17 UTC) #27
ericzeng
On 2014/08/22 04:04:17, sadrul wrote: > On 2014/08/22 01:06:04, I haz the power (commit-bot) wrote: ...
6 years, 4 months ago (2014-08-22 04:09:17 UTC) #28
ericzeng
PTAL, hopefully I won't break everything this time.
6 years, 4 months ago (2014-08-22 17:57:02 UTC) #29
Fady Samuel
still lgtm
6 years, 4 months ago (2014-08-22 19:56:35 UTC) #30
not at google - send to devlin
The CQ bit was checked by kalman@chromium.org
6 years, 4 months ago (2014-08-22 21:00:25 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/480243003/200001
6 years, 4 months ago (2014-08-22 21:01:44 UTC) #32
ericzeng
The CQ bit was unchecked by ericzeng@chromium.org
6 years, 4 months ago (2014-08-22 21:02:23 UTC) #33
ericzeng
The CQ bit was checked by ericzeng@chromium.org
6 years, 4 months ago (2014-08-23 01:26:56 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericzeng@chromium.org/480243003/220001
6 years, 4 months ago (2014-08-23 04:55:45 UTC) #35
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-23 10:53:23 UTC) #36
commit-bot: I haz the power
Committed patchset #12 (220001) as f85b5d1896989b38ec3fd2d392de34a80dd2c8ad
6 years, 4 months ago (2014-08-23 21:28:11 UTC) #37
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:31:03 UTC) #38
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/a9438c47225d119a953ebf195210e655cb88dbc5
Cr-Commit-Position: refs/heads/master@{#291583}

Powered by Google App Engine
This is Rietveld 408576698