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 #include "printing/backend/win_helper.h" | 5 #include "printing/backend/win_helper.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/file_version_info.h" | 9 #include "base/file_version_info.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "printing/backend/print_backend.h" | 14 #include "printing/backend/print_backend.h" |
15 #include "printing/backend/print_backend_consts.h" | 15 #include "printing/backend/print_backend_consts.h" |
16 #include "printing/backend/printing_info_win.h" | 16 #include "printing/backend/printing_info_win.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 typedef HRESULT (WINAPI* PTOpenProviderProc)(PCWSTR printer_name, | 20 typedef HRESULT (WINAPI* PTOpenProviderProc)(PCWSTR printer_name, |
21 DWORD version, | 21 DWORD version, |
22 HPTPROVIDER* provider); | 22 HPTPROVIDER* provider); |
23 | 23 |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 for (size_t i = 0; i < arraysize(info); ++i) { | 335 for (size_t i = 0; i < arraysize(info); ++i) { |
336 std::replace(info[i].begin(), info[i].end(), ';', ','); | 336 std::replace(info[i].begin(), info[i].end(), ';', ','); |
337 driver_info.append(info[i]); | 337 driver_info.append(info[i]); |
338 if (i < arraysize(info) - 1) | 338 if (i < arraysize(info) - 1) |
339 driver_info.append(";"); | 339 driver_info.append(";"); |
340 } | 340 } |
341 return driver_info; | 341 return driver_info; |
342 } | 342 } |
343 | 343 |
344 } // namespace printing | 344 } // namespace printing |
OLD | NEW |