| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This file adheres to closure-compiler conventions in order to enable |
| 6 // compilation with ADVANCED_OPTIMIZATIONS. In particular, members that are to |
| 7 // be accessed externally should be specified in this['style'] as opposed to |
| 8 // this.style because member identifiers are minified by default. |
| 9 // See http://goo.gl/FwOgy |
| 10 |
| 11 // Intercept window.print calls. |
| 12 |
| 13 /** |
| 14 * Namespace for this module. |
| 15 */ |
| 16 __gCrWeb['print'] = {}; |
| 17 |
| 18 new function() { |
| 19 // Overwrites window.print function to invoke chrome command. |
| 20 window.print = function() { |
| 21 __gCrWeb.message.invokeOnHost({'command': 'print.window.print'}); |
| 22 }; |
| 23 } |
| OLD | NEW |