| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |