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

Issue 2744883003: DevTools: generalize setting UI for enum/select settings (Closed)

Created:
3 years, 9 months ago by luoe
Modified:
3 years, 6 months ago
Reviewers:
dgozman, lushnikov, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: generalize setting UI for enum/select settings This CL add the 'options' array when registering settings. Doing so lets us generalize a UI.SettingsUI.createSelectSetting() that understands how to render a <select> element using the options defined in the setting. BUG=none Review-Url: https://codereview.chromium.org/2744883003 Cr-Commit-Position: refs/heads/master@{#475611} Committed: https://chromium.googlesource.com/chromium/src/+/4d2bbb5fe7ec1a28c4e9493a26a79e3a83df9be2

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase and keep settings pure #

Total comments: 6

Patch Set 3 : acc #

Total comments: 4

Patch Set 4 : ac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -34 lines) Patch
M third_party/WebKit/Source/devtools/front_end/main/module.json View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/settings/SettingsScreen.js View 1 2 3 2 chunks +8 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/SettingsUI.js View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (16 generated)
luoe
Please take a look, but no visible changes in this CL. A follow up, dependent ...
3 years, 9 months ago (2017-03-10 23:07:13 UTC) #3
lushnikov
https://codereview.chromium.org/2744883003/diff/1/third_party/WebKit/Source/devtools/front_end/common/Settings.js File third_party/WebKit/Source/devtools/front_end/common/Settings.js (right): https://codereview.chromium.org/2744883003/diff/1/third_party/WebKit/Source/devtools/front_end/common/Settings.js#newcode309 third_party/WebKit/Source/devtools/front_end/common/Settings.js:309: options() { Let's not infect Common.Setting with fields which ...
3 years, 9 months ago (2017-03-11 00:46:00 UTC) #4
luoe
Instead of touching our Common.Settings, I've made the next patch (https://codereview.chromium.org/2839413002/) just do a search ...
3 years, 7 months ago (2017-05-09 02:58:00 UTC) #8
pfeldman
https://codereview.chromium.org/2744883003/diff/40001/third_party/WebKit/Source/devtools/front_end/Runtime.js File third_party/WebKit/Source/devtools/front_end/Runtime.js (right): https://codereview.chromium.org/2744883003/diff/40001/third_party/WebKit/Source/devtools/front_end/Runtime.js#newcode678 third_party/WebKit/Source/devtools/front_end/Runtime.js:678: this.options; You should not need to change runtime, pretty ...
3 years, 7 months ago (2017-05-10 20:58:42 UTC) #9
luoe
ptal https://codereview.chromium.org/2744883003/diff/40001/third_party/WebKit/Source/devtools/front_end/Runtime.js File third_party/WebKit/Source/devtools/front_end/Runtime.js (right): https://codereview.chromium.org/2744883003/diff/40001/third_party/WebKit/Source/devtools/front_end/Runtime.js#newcode678 third_party/WebKit/Source/devtools/front_end/Runtime.js:678: this.options; On 2017/05/10 20:58:42, pfeldman wrote: > You ...
3 years, 7 months ago (2017-05-11 21:39:44 UTC) #11
dgozman
https://codereview.chromium.org/2744883003/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/SettingsUI.js File third_party/WebKit/Source/devtools/front_end/ui/SettingsUI.js (right): https://codereview.chromium.org/2744883003/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/SettingsUI.js#newcode58 third_party/WebKit/Source/devtools/front_end/ui/SettingsUI.js:58: * @param {!Array<!{title: string, text: (string|undefined), value: *, raw: ...
3 years, 7 months ago (2017-05-15 18:57:25 UTC) #13
luoe
Ptal https://codereview.chromium.org/2744883003/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/SettingsUI.js File third_party/WebKit/Source/devtools/front_end/ui/SettingsUI.js (right): https://codereview.chromium.org/2744883003/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/SettingsUI.js#newcode58 third_party/WebKit/Source/devtools/front_end/ui/SettingsUI.js:58: * @param {!Array<!{title: string, text: (string|undefined), value: *, ...
3 years, 7 months ago (2017-05-16 00:05:38 UTC) #14
dgozman
lgtm
3 years, 7 months ago (2017-05-16 18:37:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2744883003/100001
3 years, 7 months ago (2017-05-16 18:39:56 UTC) #17
pfeldman
Let's land it next week.
3 years, 7 months ago (2017-05-16 20:27:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2744883003/100001
3 years, 7 months ago (2017-05-27 00:01:27 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/348800) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-05-27 00:11:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2744883003/100001
3 years, 7 months ago (2017-05-27 00:23:16 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/348910)
3 years, 7 months ago (2017-05-27 00:33:03 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2744883003/100001
3 years, 6 months ago (2017-05-30 16:50:04 UTC) #29
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 18:49:17 UTC) #32
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/4d2bbb5fe7ec1a28c4e9493a26a7...

Powered by Google App Engine
This is Rietveld 408576698