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

Side by Side Diff: chrome/browser/resources/network_menu.js

Issue 6513010: WebUI: Get rid of more references to DOMUI in the rest of the directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/menu.js ('k') | chrome/browser/resources/options/options_page.css » ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Network status constants. 6 // Network status constants.
7 const StatusConnected = 'connected'; 7 const StatusConnected = 'connected';
8 const StatusDisconnected = 'disconnected'; 8 const StatusDisconnected = 'disconnected';
9 const StatusConnecting = 'connecting'; 9 const StatusConnecting = 'connecting';
10 const StatusError = 'error'; 10 const StatusError = 'error';
11 11
(...skipping 10 matching lines...) Expand all
22 ctx.lineJoin = 'round'; 22 ctx.lineJoin = 'round';
23 23
24 ctx.strokeStyle = '#4e73c7'; 24 ctx.strokeStyle = '#4e73c7';
25 ctx.beginPath(); 25 ctx.beginPath();
26 ctx.moveTo(lineWidth / 2, r - lineWidth / 2); 26 ctx.moveTo(lineWidth / 2, r - lineWidth / 2);
27 ctx.arc(r, r, r - lineWidth / 2, Math.PI, Math.PI * 3 / 2); 27 ctx.arc(r, r, r - lineWidth / 2, Math.PI, Math.PI * 3 / 2);
28 ctx.stroke(); 28 ctx.stroke();
29 })(); 29 })();
30 30
31 /** 31 /**
32 * Sends "connect" using the 'action' DOMUI message. 32 * Sends "connect" using the 'action' WebUI message.
33 */ 33 */
34 function sendConnect(index, passphrase, identity, auto_connect) { 34 function sendConnect(index, passphrase, identity, auto_connect) {
35 chrome.send('action', 35 chrome.send('action',
36 ['connect', 36 ['connect',
37 String(index), 37 String(index),
38 passphrase, 38 passphrase,
39 identity, 39 identity,
40 auto_connect ? '1' : '0']); 40 auto_connect ? '1' : '0']);
41 } 41 }
42 42
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 event.target == item.autoConnectCheckbox.nextElementSibling || 352 event.target == item.autoConnectCheckbox.nextElementSibling ||
353 event.target == item.ssidEdit || 353 event.target == item.ssidEdit ||
354 event.target == item.passwordEdit) { 354 event.target == item.passwordEdit) {
355 return; 355 return;
356 } 356 }
357 } 357 }
358 358
359 Menu.prototype.onClick_.call(this, event, item); 359 Menu.prototype.onClick_.call(this, event, item);
360 }, 360 },
361 }; 361 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/menu.js ('k') | chrome/browser/resources/options/options_page.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698