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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 2649153005: DevTools: convert datagrid and network waterfall sort icons to UI.Icon (Closed)
Patch Set: rebaseline Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after
2120 2120
2121 /** 2121 /**
2122 * @override 2122 * @override
2123 */ 2123 */
2124 oncollapse() { 2124 oncollapse() {
2125 this._updateExpandElement(); 2125 this._updateExpandElement();
2126 } 2126 }
2127 2127
2128 _updateExpandElement() { 2128 _updateExpandElement() {
2129 if (this.expanded) 2129 if (this.expanded)
2130 this._expandElement.setIconType('smallicon-triangle-bottom'); 2130 this._expandElement.setIconType('smallicon-triangle-down');
2131 else 2131 else
2132 this._expandElement.setIconType('smallicon-triangle-right'); 2132 this._expandElement.setIconType('smallicon-triangle-right');
2133 } 2133 }
2134 2134
2135 updateTitle() { 2135 updateTitle() {
2136 this._updateState(); 2136 this._updateState();
2137 this._expandElement = UI.Icon.create('smallicon-triangle-right', 'expand-ico n'); 2137 this._expandElement = UI.Icon.create('smallicon-triangle-right', 'expand-ico n');
2138 2138
2139 var propertyRenderer = 2139 var propertyRenderer =
2140 new Elements.StylesSidebarPropertyRenderer(this._style.parentRule, this. node(), this.name, this.value); 2140 new Elements.StylesSidebarPropertyRenderer(this._style.parentRule, this. node(), this.name, this.value);
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 } 3080 }
3081 3081
3082 /** 3082 /**
3083 * @override 3083 * @override
3084 * @return {!UI.ToolbarItem} 3084 * @return {!UI.ToolbarItem}
3085 */ 3085 */
3086 item() { 3086 item() {
3087 return this._button; 3087 return this._button;
3088 } 3088 }
3089 }; 3089 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698