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

Side by Side Diff: chrome/browser/resources/options/chromeos_internet_options.js

Issue 4572001: Pass wifi available/enabled status to JS at initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespaces. Created 10 years, 1 month 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/options/chromeos_internet_options.html ('k') | no next file » | 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) 2010 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 cr.define('options', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 ///////////////////////////////////////////////////////////////////////////// 9 /////////////////////////////////////////////////////////////////////////////
10 // InternetOptions class: 10 // InternetOptions class:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 }; 52 };
53 $('detailsInternetLogin').onclick = function(event) { 53 $('detailsInternetLogin').onclick = function(event) {
54 InternetOptions.loginFromDetails(); 54 InternetOptions.loginFromDetails();
55 }; 55 };
56 $('enableWifi').onclick = function(event) { 56 $('enableWifi').onclick = function(event) {
57 event.target.disabled = true; 57 event.target.disabled = true;
58 chrome.send('enableWifi', []); 58 chrome.send('enableWifi', []);
59 }; 59 };
60 $('disableWifi').onclick = function(event) { 60 $('disableWifi').onclick = function(event) {
61 event.target.disabled = true; 61 event.target.disabled = true;
62 chrome.send('disableWifi', []); 62 chrome.send('disableWifi', []);
63 }; 63 };
64 $('enableCellular').onclick = function(event) { 64 $('enableCellular').onclick = function(event) {
65 event.target.disabled = true; 65 event.target.disabled = true;
66 chrome.send('enableCellular', []); 66 chrome.send('enableCellular', []);
67 }; 67 };
68 $('disableCellular').onclick = function(event) { 68 $('disableCellular').onclick = function(event) {
69 event.target.disabled = true; 69 event.target.disabled = true;
70 chrome.send('disableCellular', []); 70 chrome.send('disableCellular', []);
71 }; 71 };
72 $('purchaseMore').onclick = function(event) { 72 $('purchaseMore').onclick = function(event) {
73 chrome.send('buyDataPlan', []); 73 chrome.send('buyDataPlan', []);
74 }; 74 };
75 $('moreInfo').onclick = function(event) { 75 $('moreInfo').onclick = function(event) {
76 chrome.send('showMorePlanInfo', []); 76 chrome.send('showMorePlanInfo', []);
77 }; 77 };
78 78
79 this.showNetworkDetails_(); 79 this.showNetworkDetails_();
80 }, 80 },
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 OptionsPage.showOverlay('detailsInternetPage'); 302 OptionsPage.showOverlay('detailsInternetPage');
303 }; 303 };
304 304
305 // Export 305 // Export
306 return { 306 return {
307 InternetOptions: InternetOptions 307 InternetOptions: InternetOptions
308 }; 308 };
309 309
310 }); 310 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/chromeos_internet_options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698