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

Side by Side Diff: chrome/browser/resources/bluetooth_internals/adapter_page.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 /** 5 /**
6 * Javascript for AdapterPage, served from chrome://bluetooth-internals/. 6 * Javascript for AdapterPage, served from chrome://bluetooth-internals/.
7 */ 7 */
8 8
9 cr.define('adapter_page', function() { 9 cr.define('adapter_page', function() {
10 /** @const */ var Page = cr.ui.pageManager.Page; 10 /** @const */ var Page = cr.ui.pageManager.Page;
11 11
12 var PROPERTY_NAMES = { 12 var PROPERTY_NAMES = {
13 address: 'Address', 13 address: 'Address',
14 name: 'Name', 14 name: 'Name',
15 initialized: 'Initialized', 15 initialized: 'Initialized',
16 present: 'Present', 16 present: 'Present',
17 powered: 'Powered', 17 powered: 'Powered',
18 discoverable: 'Discoverable', 18 discoverable: 'Discoverable',
19 discovering: 'Discovering', 19 discovering: 'Discovering',
20 }; 20 };
21 21
22 /** 22 /**
23 * Page that contains an ObjectFieldSet that displays the latest AdapterInfo. 23 * Page that contains an ObjectFieldSet that displays the latest AdapterInfo.
24 * @constructor 24 * @constructor
25 * @extends {cr.ui.pageManager.Page} 25 * @extends {cr.ui.pageManager.Page}
26 */ 26 */
27 function AdapterPage() { 27 function AdapterPage() {
28 Page.call(this, 'adapter', 'Adapter', 'adapter'); 28 Page.call(this, 'adapter', 'Adapter', 'adapter');
29 29
(...skipping 26 matching lines...) Expand all
56 redraw: function() { 56 redraw: function() {
57 this.adapterFieldSet.redraw(); 57 this.adapterFieldSet.redraw();
58 this.refreshBtn_.disabled = false; 58 this.refreshBtn_.disabled = false;
59 }, 59 },
60 }; 60 };
61 61
62 return { 62 return {
63 AdapterPage: AdapterPage, 63 AdapterPage: AdapterPage,
64 }; 64 };
65 }); 65 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698