diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-20 23:59:48 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-20 23:59:48 +0000 |
commit | 133af7239c9f198d78c38e263a4e5303c2b2b3f8 (patch) | |
tree | 05734f9bc4a1c23bff8cd69032bf487b705388ca /printing | |
parent | 7f914fd43919c5eb62fc8e05474db6680b365428 (diff) | |
download | chromium_src-133af7239c9f198d78c38e263a4e5303c2b2b3f8.zip chromium_src-133af7239c9f198d78c38e263a4e5303c2b2b3f8.tar.gz chromium_src-133af7239c9f198d78c38e263a4e5303c2b2b3f8.tar.bz2 |
Renamed color_capable to color_changeable.
BUG=153726
Review URL: https://chromiumcodereview.appspot.com/11641003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r-- | printing/backend/cups_helper.cc | 2 | ||||
-rw-r--r-- | printing/backend/cups_helper_unittest.cc | 10 | ||||
-rw-r--r-- | printing/backend/print_backend.cc | 2 | ||||
-rw-r--r-- | printing/backend/print_backend.h | 2 | ||||
-rw-r--r-- | printing/backend/print_backend_win.cc | 12 |
5 files changed, 14 insertions, 14 deletions
diff --git a/printing/backend/cups_helper.cc b/printing/backend/cups_helper.cc index 8153307..5b500e7 100644 --- a/printing/backend/cups_helper.cc +++ b/printing/backend/cups_helper.cc @@ -382,7 +382,7 @@ bool parsePpdCapabilities( VLOG(1) << "Unknown printer color model"; } - caps.color_capable = (cm_color && cm_black && (cm_color != cm_black)); + caps.color_changeable = (cm_color && cm_black && (cm_color != cm_black)); caps.color_default = is_color; ppdClose(ppd); diff --git a/printing/backend/cups_helper_unittest.cc b/printing/backend/cups_helper_unittest.cc index d83b3b7..7a111e3 100644 --- a/printing/backend/cups_helper_unittest.cc +++ b/printing/backend/cups_helper_unittest.cc @@ -33,7 +33,7 @@ TEST(PrintBackendCupsHelperTest, TestPpdParsingNoColorDuplexLongEdge) { printing::PrinterSemanticCapsAndDefaults caps; EXPECT_TRUE(printing::parsePpdCapabilities("test", test_ppd_data, &caps)); - EXPECT_FALSE(caps.color_capable); + EXPECT_FALSE(caps.color_changeable); EXPECT_FALSE(caps.color_default); EXPECT_TRUE(caps.duplex_capable); EXPECT_EQ(caps.duplex_default, printing::LONG_EDGE); @@ -58,7 +58,7 @@ TEST(PrintBackendCupsHelperTest, TestPpdParsingNoColorDuplexSimples) { printing::PrinterSemanticCapsAndDefaults caps; EXPECT_TRUE(printing::parsePpdCapabilities("test", test_ppd_data, &caps)); - EXPECT_FALSE(caps.color_capable); + EXPECT_FALSE(caps.color_changeable); EXPECT_FALSE(caps.color_default); EXPECT_TRUE(caps.duplex_capable); EXPECT_EQ(caps.duplex_default, printing::SIMPLEX); @@ -82,7 +82,7 @@ TEST(PrintBackendCupsHelperTest, TestPpdParsingNoColorNoDuplex) { printing::PrinterSemanticCapsAndDefaults caps; EXPECT_TRUE(printing::parsePpdCapabilities("test", test_ppd_data, &caps)); - EXPECT_FALSE(caps.color_capable); + EXPECT_FALSE(caps.color_changeable); EXPECT_FALSE(caps.color_default); EXPECT_FALSE(caps.duplex_capable); EXPECT_EQ(caps.duplex_default, printing::UNKNOWN_DUPLEX_MODE); @@ -115,7 +115,7 @@ TEST(PrintBackendCupsHelperTest, TestPpdParsingColorTrueDuplexLongEdge) { printing::PrinterSemanticCapsAndDefaults caps; EXPECT_TRUE(printing::parsePpdCapabilities("test", test_ppd_data, &caps)); - EXPECT_TRUE(caps.color_capable); + EXPECT_TRUE(caps.color_changeable); EXPECT_TRUE(caps.color_default); EXPECT_TRUE(caps.duplex_capable); EXPECT_EQ(caps.duplex_default, printing::LONG_EDGE); @@ -152,7 +152,7 @@ TEST(PrintBackendCupsHelperTest, TestPpdParsingColorFalseDuplexLongEdge) { printing::PrinterSemanticCapsAndDefaults caps; EXPECT_TRUE(printing::parsePpdCapabilities("test", test_ppd_data, &caps)); - EXPECT_TRUE(caps.color_capable); + EXPECT_TRUE(caps.color_changeable); EXPECT_FALSE(caps.color_default); EXPECT_TRUE(caps.duplex_capable); EXPECT_EQ(caps.duplex_default, printing::LONG_EDGE); diff --git a/printing/backend/print_backend.cc b/printing/backend/print_backend.cc index ad3ef1b..ab8ae5f 100644 --- a/printing/backend/print_backend.cc +++ b/printing/backend/print_backend.cc @@ -25,7 +25,7 @@ PrinterBasicInfo::PrinterBasicInfo() PrinterBasicInfo::~PrinterBasicInfo() {} PrinterSemanticCapsAndDefaults::PrinterSemanticCapsAndDefaults() - : color_capable(false), + : color_changeable(false), duplex_capable(false), color_default(false), duplex_default(UNKNOWN_DUPLEX_MODE) {} diff --git a/printing/backend/print_backend.h b/printing/backend/print_backend.h index 127caf5..df9e622 100644 --- a/printing/backend/print_backend.h +++ b/printing/backend/print_backend.h @@ -39,7 +39,7 @@ struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults { ~PrinterSemanticCapsAndDefaults(); // Capabilities. - bool color_capable; + bool color_changeable; bool duplex_capable; // Current defaults. diff --git a/printing/backend/print_backend_win.cc b/printing/backend/print_backend_win.cc index e6b229a..76b68fa 100644 --- a/printing/backend/print_backend_win.cc +++ b/printing/backend/print_backend_win.cc @@ -120,11 +120,11 @@ bool PrintBackendWin::GetPrinterSemanticCapsAndDefaults( // Get printer capabilities. For more info see here: // http://msdn.microsoft.com/en-us/library/windows/desktop/dd183552(v=vs.85).aspx - caps.color_capable = (::DeviceCapabilities(info_5.get()->pPrinterName, - info_5.get()->pPortName, - DC_COLORDEVICE, - NULL, - NULL) == 1); + caps.color_changeable = (::DeviceCapabilities(info_5.get()->pPrinterName, + info_5.get()->pPortName, + DC_COLORDEVICE, + NULL, + NULL) == 1); caps.duplex_capable = (::DeviceCapabilities(info_5.get()->pPrinterName, info_5.get()->pPortName, @@ -155,7 +155,7 @@ bool PrintBackendWin::GetPrinterSemanticCapsAndDefaults( } } else { LOG(WARNING) << "Fallback to color/simplex mode."; - caps.color_default = caps.color_capable; + caps.color_default = caps.color_changeable; caps.duplex_default = SIMPLEX; } |