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 2678623002: DevTools: pass title when creating settings (Closed)

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

Description

DevTools: pass title when creating settings Settings can now be created with an optional 'title', affecting the setting classes and constructors. This lets us create toolbar checkboxes that inherit titles from their setting. BUG=687315 Review-Url: https://codereview.chromium.org/2678623002 Cr-Commit-Position: refs/heads/master@{#450205} Committed: https://chromium.googlesource.com/chromium/src/+/b874581aab39ed174ed99b4fd2d115bd1e375a2a

Patch Set 1 #

Patch Set 2 : a #

Total comments: 8

Patch Set 3 : ac #

Patch Set 4 : rebase #

Total comments: 7

Patch Set 5 : ac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -69 lines) Patch
M third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js View 1 2 3 chunks +6 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/common/Settings.js View 1 2 3 4 3 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/layer_viewer/Layers3DView.js View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network_conditions/NetworkConditionsSelector.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkersView.js View 1 2 1 chunk +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/EventsTimelineTreeView.js View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js View 1 2 3 6 chunks +14 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js View 1 2 3 2 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
luoe
Affected fn's Common.Setting, Common.RegExpSetting, Common.Settings.createSetting, Common.Settings.createLocalSetting, Common.Settings.createRegExpSetting Removed Audits2Panel._createSettingCheckbox TimelinePanel _createSettingCheckbox UI.ToolbarCheckbox(title, setting) UI.ToolbarSettingCheckbox(setting, title, ...
3 years, 10 months ago (2017-02-07 03:10:57 UTC) #3
pfeldman
Seems like this regresses "Async" and "Disable JavaScript (when opened)" cases. https://codereview.chromium.org/2678623002/diff/20001/third_party/WebKit/Source/devtools/front_end/common/Settings.js File third_party/WebKit/Source/devtools/front_end/common/Settings.js (right): ...
3 years, 10 months ago (2017-02-07 20:10:28 UTC) #4
luoe
comments addressed and rebased. Ready for another look https://codereview.chromium.org/2678623002/diff/20001/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/2678623002/diff/20001/third_party/WebKit/Source/devtools/front_end/common/Settings.js#newcode96 third_party/WebKit/Source/devtools/front_end/common/Settings.js:96: createSetting(key, ...
3 years, 10 months ago (2017-02-13 06:27:20 UTC) #5
pfeldman
lgtm https://codereview.chromium.org/2678623002/diff/60001/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/2678623002/diff/60001/third_party/WebKit/Source/devtools/front_end/common/Settings.js#newcode60 third_party/WebKit/Source/devtools/front_end/common/Settings.js:60: var isRegex = settingType === 'regex'; revert https://codereview.chromium.org/2678623002/diff/60001/third_party/WebKit/Source/devtools/front_end/common/Settings.js#newcode98 ...
3 years, 10 months ago (2017-02-13 20:24:54 UTC) #6
luoe
https://codereview.chromium.org/2678623002/diff/60001/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/2678623002/diff/60001/third_party/WebKit/Source/devtools/front_end/common/Settings.js#newcode60 third_party/WebKit/Source/devtools/front_end/common/Settings.js:60: var isRegex = settingType === 'regex'; On 2017/02/13 20:24:54, ...
3 years, 10 months ago (2017-02-13 22:18:26 UTC) #7
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/2678623002/80001
3 years, 10 months ago (2017-02-14 02:25:12 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 02:34:21 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b874581aab39ed174ed99b4fd2d1...

Powered by Google App Engine
This is Rietveld 408576698