OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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('print_preview', function() { | 5 cr.define('print_preview', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 /** | 8 /** |
9 * Capabilities of a cloud-based print destination. | 9 * Capabilities of a cloud-based print destination. |
10 * @param {print_preview.CollateCapability} collateCapability Print | 10 * @param {print_preview.CollateCapability} collateCapability Print |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 * @type {!RegExp} | 276 * @type {!RegExp} |
277 * @const | 277 * @const |
278 */ | 278 */ |
279 ColorCapability.COLOR_REGEX = /(.*color.*|.*rgb.*|.*cmy.*|true)/i; | 279 ColorCapability.COLOR_REGEX = /(.*color.*|.*rgb.*|.*cmy.*|true)/i; |
280 | 280 |
281 /** | 281 /** |
282 * Regular expression that matches a black-white option. | 282 * Regular expression that matches a black-white option. |
283 * @type {!RegExp} | 283 * @type {!RegExp} |
284 * @const | 284 * @const |
285 */ | 285 */ |
286 ColorCapability.BW_REGEX = /(.*gray.*|.*mono.*|.*black.*|false)/i; | 286 ColorCapability.BW_REGEX = /(.*gray.*|.*mono.*|.*black.*|false|grey_k)/i; |
287 | 287 |
288 ColorCapability.prototype = { | 288 ColorCapability.prototype = { |
289 __proto__: CloudCapability.prototype, | 289 __proto__: CloudCapability.prototype, |
290 | 290 |
291 /** @return {string} Identifier of the color option. */ | 291 /** @return {string} Identifier of the color option. */ |
292 get colorOption() { | 292 get colorOption() { |
293 return this.colorOption_; | 293 return this.colorOption_; |
294 }, | 294 }, |
295 | 295 |
296 /** @return {string} Identifier of the black-white option. */ | 296 /** @return {string} Identifier of the black-white option. */ |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 | 404 |
405 // Export | 405 // Export |
406 return { | 406 return { |
407 CloudCapabilities: CloudCapabilities, | 407 CloudCapabilities: CloudCapabilities, |
408 CollateCapability: CollateCapability, | 408 CollateCapability: CollateCapability, |
409 ColorCapability: ColorCapability, | 409 ColorCapability: ColorCapability, |
410 CopiesCapability: CopiesCapability, | 410 CopiesCapability: CopiesCapability, |
411 DuplexCapability: DuplexCapability | 411 DuplexCapability: DuplexCapability |
412 }; | 412 }; |
413 }); | 413 }); |
OLD | NEW |