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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/devices/DevicesView.js

Issue 2912563003: DevTools: cleanup button styles (Closed)
Patch Set: fix test Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/help/ReleaseNoteView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Devices.DevicesView = class extends UI.VBox { 7 Devices.DevicesView = class extends UI.VBox {
8 constructor() { 8 constructor() {
9 super(true); 9 super(true);
10 this.registerRequiredCSS('devices/devicesView.css'); 10 this.registerRequiredCSS('devices/devicesView.css');
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 } 784 }
785 785
786 /** 786 /**
787 * @return {!Devices.DevicesView.PageSection} 787 * @return {!Devices.DevicesView.PageSection}
788 */ 788 */
789 _createPageSection() { 789 _createPageSection() {
790 var element = createElementWithClass('div', 'vbox'); 790 var element = createElementWithClass('div', 'vbox');
791 791
792 var titleRow = element.createChild('div', 'device-page-title-row'); 792 var titleRow = element.createChild('div', 'device-page-title-row');
793 var title = titleRow.createChild('div', 'device-page-title'); 793 var title = titleRow.createChild('div', 'device-page-title');
794 var inspect = 794 var inspect = UI.createTextButton(Common.UIString('Inspect'), doAction.bind( null, 'inspect'));
795 UI.createTextButton(Common.UIString('Inspect'), doAction.bind(null, 'ins pect'), 'device-inspect-button');
796 titleRow.appendChild(inspect); 795 titleRow.appendChild(inspect);
797 796
798 var toolbar = new UI.Toolbar(''); 797 var toolbar = new UI.Toolbar('');
799 toolbar.appendToolbarItem(new UI.ToolbarMenuButton(appendActions)); 798 toolbar.appendToolbarItem(new UI.ToolbarMenuButton(appendActions));
800 titleRow.appendChild(toolbar.element); 799 titleRow.appendChild(toolbar.element);
801 800
802 var url = element.createChild('div', 'device-page-url'); 801 var url = element.createChild('div', 'device-page-url');
803 var section = {page: null, element: element, title: title, url: url, inspect : inspect}; 802 var section = {page: null, element: element, title: title, url: url, inspect : inspect};
804 return section; 803 return section;
805 804
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 932
934 /** 933 /**
935 * @param {!Common.Event} event 934 * @param {!Common.Event} event
936 */ 935 */
937 _devicesDiscoveryConfigChanged(event) { 936 _devicesDiscoveryConfigChanged(event) {
938 this._config = /** @type {!Adb.Config} */ (event.data); 937 this._config = /** @type {!Adb.Config} */ (event.data);
939 this._networkDiscoveryView.discoveryConfigChanged( 938 this._networkDiscoveryView.discoveryConfigChanged(
940 this._config.networkDiscoveryEnabled, this._config.networkDiscoveryConfi g); 939 this._config.networkDiscoveryEnabled, this._config.networkDiscoveryConfi g);
941 } 940 }
942 }; 941 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/help/ReleaseNoteView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698