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

Side by Side Diff: ios/web/web_state/js/resources/plugin_placeholder.js

Issue 1779453002: [ios] Corrected Closure annotation for getEmbedChild_ function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This file adheres to closure-compiler conventions in order to enable 5 // This file adheres to closure-compiler conventions in order to enable
6 // compilation with ADVANCED_OPTIMIZATIONS. See http://goo.gl/FwOgy 6 // compilation with ADVANCED_OPTIMIZATIONS. See http://goo.gl/FwOgy
7 // 7 //
8 // Installs and runs the plugin placeholder function on the |__gCrWeb| object. 8 // Installs and runs the plugin placeholder function on the |__gCrWeb| object.
9 9
10 /** 10 /**
(...skipping 24 matching lines...) Expand all
35 'TdPcAq8mtjjunyFEtN8ohfOWaVZR88Qd2WKK15a5zoRY8ZmRaNIZ/yCZ/P1u0zY+9TASjc' + 35 'TdPcAq8mtjjunyFEtN8ohfOWaVZR88Qd2WKK15a5zoRY8ZmRaNIZ/yCZ/P1u0zY+9TASjc' +
36 'q04YMzBhqAAUBXf5iWcITGdql3aTtpIZVnxGYvSxj1VPXUB0EtHnxBoT6iwgeXEwQfwC69' + 36 'q04YMzBhqAAUBXf5iWcITGdql3aTtpIZVnxGYvSxj1VPXUB0EtHnxBoT6iwgeXEwQfwC69' +
37 'xmROAcr5DwESxa3XLGW9G9AgPGVKahzzb/UvEcq81PwCl/MyDMrUgxQeMH7tNniQW6nPKA' + 37 'xmROAcr5DwESxa3XLGW9G9AgPGVKahzzb/UvEcq81PwCl/MyDMrUgxQeMH7tNniQW6nPKA' +
38 'e5TU3KUFjPmTRxyofUsFeFVQqyENBHDAYyodJhR0CFrnfaYECgvAjdogEwZCVySQaJ8Zeq' + 38 'e5TU3KUFjPmTRxyofUsFeFVQqyENBHDAYyodJhR0CFrnfaYECgvAjdogEwZCVySQaJ8Zeq' +
39 'AL874rsy+2ofT1ev5fkSdmihwF0jpOra/kskTHkGMckkG9Gg7Xvw9XtifXOy/GEgCr7H/r' + 39 'AL874rsy+2ofT1ev5fkSdmihwF0jpOra/kskTHkGMckkG9Gg7Xvw9XtifXOy/GEgCr7H/r' +
40 'yepFOFy5fu1agI9XH71RbRWRrDmHOhrfLYrx9ndv3Wz98R+P7LgG2uyMvgAAAABJRU5Erk' + 40 'yepFOFy5fu1agI9XH71RbRWRrDmHOhrfLYrx9ndv3Wz98R+P7LgG2uyMvgAAAABJRU5Erk' +
41 'Jggg=='; 41 'Jggg==';
42 42
43 /** 43 /**
44 * Returns the first <embed> child of the given node, if any. 44 * Returns the first <embed> child of the given node, if any.
45 * @param {HTMLElement} node The node to check. 45 * @param {Node} node The node to check.
46 * @return {HTMLElement} The first <embed> child, or null. 46 * @return {Node} The first <embed> child, or null.
47 * @private 47 * @private
48 */ 48 */
49 __gCrWeb['plugin'].getEmbedChild_ = function(node) { 49 __gCrWeb['plugin'].getEmbedChild_ = function(node) {
50 if (node.hasChildNodes()) { 50 if (node.hasChildNodes()) {
51 for (var i = 0; i < node.childNodes.length; i++) { 51 for (var i = 0; i < node.childNodes.length; i++) {
52 if (node.childNodes[i].nodeName === 'EMBED') { 52 if (node.childNodes[i].nodeName === 'EMBED') {
53 return node.childNodes[i]; 53 return node.childNodes[i];
54 } 54 }
55 } 55 }
56 } 56 }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 label.style.marginTop = imageSize + 'px'; 190 label.style.marginTop = imageSize + 'px';
191 // Center horizontally. 191 // Center horizontally.
192 label.style.textAlign = 'center'; 192 label.style.textAlign = 'center';
193 label.textContent = message; 193 label.textContent = message;
194 placeholderBox.appendChild(label); 194 placeholderBox.appendChild(label);
195 195
196 plugin.insertBefore(placeholder, plugin.firstChild); 196 plugin.insertBefore(placeholder, plugin.firstChild);
197 } 197 }
198 }; 198 };
199 }()); // End of anonymous object 199 }()); // End of anonymous object
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698