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

Side by Side Diff: components/supervised_user_error_page/resources/supervised_user_block_interstitial.js

Issue 2503453003: Remove all calls to domAutomationController.setAutomationId.
Patch Set: Fix nacl_browsertest_util.cc Created 3 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 var mobileNav = false; 5 var mobileNav = false;
6 6
7 var showDetails = false; 7 var showDetails = false;
8 8
9 /** 9 /**
10 * For small screen mobile the navigation buttons are moved 10 * For small screen mobile the navigation buttons are moved
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 function setupMobileNav() { 32 function setupMobileNav() {
33 window.addEventListener('resize', onResize); 33 window.addEventListener('resize', onResize);
34 onResize(); 34 onResize();
35 } 35 }
36 36
37 document.addEventListener('DOMContentLoaded', setupMobileNav); 37 document.addEventListener('DOMContentLoaded', setupMobileNav);
38 38
39 function sendCommand(cmd) { 39 function sendCommand(cmd) {
40 window.domAutomationController.setAutomationId(1);
41 window.domAutomationController.send(cmd); 40 window.domAutomationController.send(cmd);
42 } 41 }
43 42
44 function makeImageSet(url1x, url2x) { 43 function makeImageSet(url1x, url2x) {
45 return '-webkit-image-set(url(' + url1x + ') 1x, url(' + url2x + ') 2x)'; 44 return '-webkit-image-set(url(' + url1x + ') 1x, url(' + url2x + ') 2x)';
46 } 45 }
47 46
48 function initialize() { 47 function initialize() {
49 var allowAccessRequests = loadTimeData.getBoolean('allowAccessRequests'); 48 var allowAccessRequests = loadTimeData.getBoolean('allowAccessRequests');
50 if (allowAccessRequests) { 49 if (allowAccessRequests) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 $('request-access-button').hidden = true; 131 $('request-access-button').hidden = true;
133 $('show-details-link').hidden = true; 132 $('show-details-link').hidden = true;
134 } else { 133 } else {
135 $('request-failed-message').hidden = false; 134 $('request-failed-message').hidden = false;
136 $('request-access-button').hidden = false; 135 $('request-access-button').hidden = false;
137 $('show-details-link').hidden = false; 136 $('show-details-link').hidden = false;
138 } 137 }
139 } 138 }
140 139
141 document.addEventListener('DOMContentLoaded', initialize); 140 document.addEventListener('DOMContentLoaded', initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698