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

Issue 8341081: Add icon-visibility attribute to cr.ui.Tree. (Closed)

Created:
9 years, 1 month ago by flackr
Modified:
9 years, 1 month ago
CC:
chromium-reviews, arv (Not doing code reviews), Rick Byers
Visibility:
Public.

Description

Add icon-visibility attribute to cr.ui.Tree. This adds an icon-visibility attribute to cr.ui.Tree. If 'hidden', no space is reserved beside .tree-item labels and icons are not displayed. 'all' => show folder icons beside all nodes. 'parent' => show folder icons beside expandable/parent nodes. Removes icons from certificate viewer. BUG=101920 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108160

Patch Set 1 #

Total comments: 4

Patch Set 2 : Define property on cr.ui.Tree and fix style. #

Total comments: 8

Patch Set 3 : Use icon-visibility values 'all', 'parent', 'hidden', define property on cr.ui.Tree. #

Patch Set 4 : Make default behaviour the same as before change. #

Total comments: 6

Patch Set 5 : Convert from camelCase to hyphenated-words for defineProperty ATTR setters/getters. #

Total comments: 2

Patch Set 6 : Use simple regex. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -56 lines) Patch
M chrome/browser/resources/certificate_viewer.html View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/resources/collected_cookies.html View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/certificate_manager.html View 1 4 chunks +28 lines, -24 lines 0 comments Download
M chrome/browser/resources/shared/css/tree.css View 1 2 3 1 chunk +32 lines, -17 lines 0 comments Download
M chrome/browser/resources/shared/js/cr.js View 1 2 3 4 5 4 chunks +22 lines, -8 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/tree.js View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/sync_internals/node_browser.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_handler.cc View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
flackr
We discussed a few ways of allowing the Tree icons to be removed, this was ...
9 years, 1 month ago (2011-10-27 21:22:19 UTC) #1
arv (Not doing code reviews)
Do you mind adding a property to cr.ui.Tree that reflects this? http://codereview.chromium.org/8341081/diff/1/chrome/browser/resources/options/certificate_manager.html File chrome/browser/resources/options/certificate_manager.html (right): ...
9 years, 1 month ago (2011-10-28 00:03:40 UTC) #2
flackr
Is undefined a reasonable value? Or should I use something like icon-visibility=hidden to hide icons? ...
9 years, 1 month ago (2011-10-28 15:19:36 UTC) #3
arv (Not doing code reviews)
http://codereview.chromium.org/8341081/diff/4002/chrome/browser/resources/shared/css/tree.css File chrome/browser/resources/shared/css/tree.css (right): http://codereview.chromium.org/8341081/diff/4002/chrome/browser/resources/shared/css/tree.css#newcode105 chrome/browser/resources/shared/css/tree.css:105: tree[icon-visibility] .tree-label { Sorry, I should have paid more ...
9 years, 1 month ago (2011-10-28 16:15:12 UTC) #4
flackr
http://codereview.chromium.org/8341081/diff/4002/chrome/browser/resources/shared/css/tree.css File chrome/browser/resources/shared/css/tree.css (right): http://codereview.chromium.org/8341081/diff/4002/chrome/browser/resources/shared/css/tree.css#newcode105 chrome/browser/resources/shared/css/tree.css:105: tree[icon-visibility] .tree-label { If A and C are the ...
9 years, 1 month ago (2011-10-28 22:32:50 UTC) #5
arv (Not doing code reviews)
http://codereview.chromium.org/8341081/diff/4002/chrome/browser/resources/shared/css/tree.css File chrome/browser/resources/shared/css/tree.css (right): http://codereview.chromium.org/8341081/diff/4002/chrome/browser/resources/shared/css/tree.css#newcode105 chrome/browser/resources/shared/css/tree.css:105: tree[icon-visibility] .tree-label { On 2011/10/28 22:32:50, flackr wrote: > ...
9 years, 1 month ago (2011-10-28 22:41:03 UTC) #6
flackr
http://codereview.chromium.org/8341081/diff/4002/chrome/browser/resources/shared/css/tree.css File chrome/browser/resources/shared/css/tree.css (right): http://codereview.chromium.org/8341081/diff/4002/chrome/browser/resources/shared/css/tree.css#newcode105 chrome/browser/resources/shared/css/tree.css:105: tree[icon-visibility] .tree-label { On 2011/10/28 22:41:03, arv wrote: > ...
9 years, 1 month ago (2011-10-31 14:37:56 UTC) #7
arv (Not doing code reviews)
http://codereview.chromium.org/8341081/diff/6001/chrome/browser/resources/bookmark_manager/main.html File chrome/browser/resources/bookmark_manager/main.html (right): http://codereview.chromium.org/8341081/diff/6001/chrome/browser/resources/bookmark_manager/main.html#newcode77 chrome/browser/resources/bookmark_manager/main.html:77: <tree id=tree tabindex=2 role="tree" icon-visibility="all"></tree> this can be removed ...
9 years, 1 month ago (2011-10-31 18:44:54 UTC) #8
flackr
http://codereview.chromium.org/8341081/diff/6001/chrome/browser/resources/bookmark_manager/main.html File chrome/browser/resources/bookmark_manager/main.html (right): http://codereview.chromium.org/8341081/diff/6001/chrome/browser/resources/bookmark_manager/main.html#newcode77 chrome/browser/resources/bookmark_manager/main.html:77: <tree id=tree tabindex=2 role="tree" icon-visibility="all"></tree> On 2011/10/31 18:44:54, arv ...
9 years, 1 month ago (2011-11-01 17:06:14 UTC) #9
arv1
http://codereview.chromium.org/8341081/diff/14001/chrome/browser/resources/shared/js/cr.js File chrome/browser/resources/shared/js/cr.js (right): http://codereview.chromium.org/8341081/diff/14001/chrome/browser/resources/shared/js/cr.js#newcode145 chrome/browser/resources/shared/js/cr.js:145: return jsName.replace(/([a-z](?=[A-Z])|[A-Z](?=[A-Z][a-z]))/g, '$&-') This looks overly complex. The following ...
9 years, 1 month ago (2011-11-01 17:46:23 UTC) #10
flackr
http://codereview.chromium.org/8341081/diff/14001/chrome/browser/resources/shared/js/cr.js File chrome/browser/resources/shared/js/cr.js (right): http://codereview.chromium.org/8341081/diff/14001/chrome/browser/resources/shared/js/cr.js#newcode145 chrome/browser/resources/shared/js/cr.js:145: return jsName.replace(/([a-z](?=[A-Z])|[A-Z](?=[A-Z][a-z]))/g, '$&-') On 2011/11/01 17:46:24, arv1 wrote: > ...
9 years, 1 month ago (2011-11-01 17:55:46 UTC) #11
arv1
LGTM Thanks for being patient with an old, slow reviewer.
9 years, 1 month ago (2011-11-01 18:13:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/8341081/13002
9 years, 1 month ago (2011-11-01 18:23:42 UTC) #13
commit-bot: I haz the power
9 years, 1 month ago (2011-11-01 20:30:24 UTC) #14
Change committed as 108160

Powered by Google App Engine
This is Rietveld 408576698