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

Side by Side Diff: chrome/browser/resources/print_preview/data/cloud_capabilities.js

Issue 10837169: Fixes color capability for HP printers. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 (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
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
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 });
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