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

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

Issue 2535573002: Reduce usage of webkit CSS prefixes in chrome/browser/resources (Closed)
Patch Set: rebase Created 3 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
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 cr.define('chrome.supervised_user_internals', function() { 5 cr.define('chrome.supervised_user_internals', function() {
6 'use strict'; 6 'use strict';
7 7
8 function initialize() { 8 function initialize() {
9 function submitURL(event) { 9 function submitURL(event) {
10 $('try-url-result').textContent = ''; 10 $('try-url-result').textContent = '';
(...skipping 17 matching lines...) Expand all
28 function clearHighlight() { 28 function clearHighlight() {
29 this.removeAttribute('highlighted'); 29 this.removeAttribute('highlighted');
30 } 30 }
31 31
32 var oldStr = oldVal.toString(); 32 var oldStr = oldVal.toString();
33 var newStr = newVal.toString(); 33 var newStr = newVal.toString();
34 if (oldStr != '' && oldStr != newStr) { 34 if (oldStr != '' && oldStr != newStr) {
35 // Note the addListener function does not end up creating duplicate 35 // Note the addListener function does not end up creating duplicate
36 // listeners. There can be only one listener per event at a time. 36 // listeners. There can be only one listener per event at a time.
37 // See https://developer.mozilla.org/en/DOM/element.addEventListener 37 // See https://developer.mozilla.org/en/DOM/element.addEventListener
38 node.addEventListener('webkitAnimationEnd', clearHighlight, false); 38 node.addEventListener('animationend', clearHighlight, false);
39 node.setAttribute('highlighted', ''); 39 node.setAttribute('highlighted', '');
40 } 40 }
41 } 41 }
42 42
43 function receiveBasicInfo(info) { 43 function receiveBasicInfo(info) {
44 jstProcess(new JsEvalContext(info), $('basic-info')); 44 jstProcess(new JsEvalContext(info), $('basic-info'));
45 45
46 // Hack: Schedule another refresh after a while. 46 // Hack: Schedule another refresh after a while.
47 // TODO(treib): Get rid of this once we're properly notified of all 47 // TODO(treib): Get rid of this once we're properly notified of all
48 // relevant changes. 48 // relevant changes.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 highlightIfChanged: highlightIfChanged, 122 highlightIfChanged: highlightIfChanged,
123 receiveBasicInfo: receiveBasicInfo, 123 receiveBasicInfo: receiveBasicInfo,
124 receiveUserSettings: receiveUserSettings, 124 receiveUserSettings: receiveUserSettings,
125 receiveTryURLResult: receiveTryURLResult, 125 receiveTryURLResult: receiveTryURLResult,
126 receiveFilteringResult: receiveFilteringResult, 126 receiveFilteringResult: receiveFilteringResult,
127 }; 127 };
128 }); 128 });
129 129
130 document.addEventListener('DOMContentLoaded', 130 document.addEventListener('DOMContentLoaded',
131 chrome.supervised_user_internals.initialize); 131 chrome.supervised_user_internals.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698