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

Side by Side Diff: printing/backend/win_helper.cc

Issue 24989002: Cleanup: Use base namespace in printing/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « printing/backend/win_helper.h ('k') | printing/print_dialog_gtk_interface.h » ('j') | 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 #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"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 g_close_provider_proc = 132 g_close_provider_proc =
133 reinterpret_cast<PTCloseProviderProc>( 133 reinterpret_cast<PTCloseProviderProc>(
134 GetProcAddress(prntvpt_module, "PTCloseProvider")); 134 GetProcAddress(prntvpt_module, "PTCloseProvider"));
135 if (!g_close_provider_proc) { 135 if (!g_close_provider_proc) {
136 NOTREACHED(); 136 NOTREACHED();
137 return false; 137 return false;
138 } 138 }
139 return true; 139 return true;
140 } 140 }
141 141
142 HRESULT XPSModule::OpenProvider(const string16& printer_name, 142 HRESULT XPSModule::OpenProvider(const base::string16& printer_name,
143 DWORD version, 143 DWORD version,
144 HPTPROVIDER* provider) { 144 HPTPROVIDER* provider) {
145 return g_open_provider_proc(printer_name.c_str(), version, provider); 145 return g_open_provider_proc(printer_name.c_str(), version, provider);
146 } 146 }
147 147
148 HRESULT XPSModule::GetPrintCapabilities(HPTPROVIDER provider, 148 HRESULT XPSModule::GetPrintCapabilities(HPTPROVIDER provider,
149 IStream* print_ticket, 149 IStream* print_ticket,
150 IStream* capabilities, 150 IStream* capabilities,
151 BSTR* error_message) { 151 BSTR* error_message) {
152 return g_get_print_capabilities_proc(provider, 152 return g_get_print_capabilities_proc(provider,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « printing/backend/win_helper.h ('k') | printing/print_dialog_gtk_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698