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

Issue 2482593003: DevTools: eliminate ToolbarButton.setState method; cleanup toolbar.css (Closed)

Created:
4 years, 1 month ago by lushnikov
Modified:
4 years ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, shans, rjwright, blink-reviews-animation_chromium.org, darktears, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, Eric Willigers, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: eliminate ToolbarButton.setState method; cleanup toolbar.css This patch is a preparation for the crrev.com/2473313002. It cleans up toolbar.css so that for every icon in toolbarButtonGlyphs.png there's exactly one css class which defines it. Today, some clients of the ToolbarButton were abusing ToolbarButton state to specify different icons. This patch moves these clients to use ToolbarButton.setGlyph method. As a result, the ToolbarButton.setState method became unneeded. Instead, there's a ToolbarToggle.setToggleWithRed method which is there to support needs of "recording" red icon. As a nifty perk, the patch gets rid of two icons in toolbarButtonGlyphs.svg. BUG=none R=dgozman Committed: https://crrev.com/cec7d0e095a1fb1304b6bda02129ac4cc117f134 Cr-Commit-Position: refs/heads/master@{#430714}

Patch Set 1 #

Total comments: 10

Patch Set 2 : kill ToolbarToggle.setActive() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -130 lines) Patch
M third_party/WebKit/Source/devtools/front_end/Images/src/optimize_png.hashes View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Images/src/svg2png.hashes View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Images/src/toolbarButtonGlyphs.svg View 2 chunks +7 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Images/toolbarButtonGlyphs.png View Binary file 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Images/toolbarButtonGlyphs_2x.png View Binary file 0 comments Download
M third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js View 1 4 chunks +15 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/ElementStatePaneWidget.js View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/module.json View 1 1 chunk +2 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/devtools/front_end/profiler/module.json View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/module.json View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/module.json View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js View 1 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js View 1 3 chunks +11 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/SplitWidget.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js View 1 6 chunks +20 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/toolbar.css View 1 5 chunks +35 lines, -38 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
lushnikov
please, take a look!
4 years, 1 month ago (2016-11-05 02:44:44 UTC) #1
lushnikov
https://codereview.chromium.org/2482593003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/toolbar.css File third_party/WebKit/Source/devtools/front_end/ui/toolbar.css (right): https://codereview.chromium.org/2482593003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/toolbar.css#newcode528 third_party/WebKit/Source/devtools/front_end/ui/toolbar.css:528: .active-recording-toolbar-item.toolbar-glyph, this should be just .toolbar-state-active { background-color: rgb(216, ...
4 years, 1 month ago (2016-11-05 17:36:39 UTC) #7
lushnikov
https://codereview.chromium.org/2482593003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/toolbar.css File third_party/WebKit/Source/devtools/front_end/ui/toolbar.css (right): https://codereview.chromium.org/2482593003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/toolbar.css#newcode528 third_party/WebKit/Source/devtools/front_end/ui/toolbar.css:528: .active-recording-toolbar-item.toolbar-glyph, On 2016/11/05 17:36:38, lushnikov wrote: > this should ...
4 years, 1 month ago (2016-11-07 05:05:06 UTC) #8
dgozman
lgtm https://codereview.chromium.org/2482593003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js File third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js (right): https://codereview.chromium.org/2482593003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js#newcode584 third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js:584: constructor(title, glyph, text, toggledGlyph) { Does it make ...
4 years, 1 month ago (2016-11-07 18:32:46 UTC) #9
lushnikov
please, take another look https://codereview.chromium.org/2482593003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js File third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js (right): https://codereview.chromium.org/2482593003/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js#newcode584 third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js:584: constructor(title, glyph, text, toggledGlyph) { ...
4 years, 1 month ago (2016-11-08 01:44:45 UTC) #10
dgozman
lgtm
4 years, 1 month ago (2016-11-08 16:56:12 UTC) #12
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/2482593003/20001
4 years, 1 month ago (2016-11-08 17:11:28 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-08 21:15:42 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/cec7d0e095a1fb1304b6bda02129ac4cc117f134 Cr-Commit-Position: refs/heads/master@{#430714}
4 years, 1 month ago (2016-11-08 21:19:32 UTC) #18
pfeldman
4 years ago (2016-12-10 00:11:39 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/2482593003/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/devtools/front_end/network/module.json (right):

https://codereview.chromium.org/2482593003/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/devtools/front_end/network/module.json:46:
"toggleWithRedColor": true,
I don't think this is particularly extensible.

Powered by Google App Engine
This is Rietveld 408576698