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

Side by Side Diff: chrome/browser/printing/print_dialog_gtk.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/printing/print_dialog_gtk.h" 5 #include "chrome/browser/printing/print_dialog_gtk.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <gtk/gtkpagesetupunixdialog.h> 8 #include <gtk/gtkpagesetupunixdialog.h>
9 #include <gtk/gtkprintjob.h> 9 #include <gtk/gtkprintjob.h>
10 #include <sys/stat.h> 10 #include <sys/stat.h>
11 #include <sys/types.h> 11 #include <sys/types.h>
12 12
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/file_util.h" 16 #include "base/file_util.h"
17 #include "base/file_util_proxy.h" 17 #include "base/file_util_proxy.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/utf_string_conversions.h" 19 #include "base/utf_string_conversions.h"
20 #include "chrome/browser/ui/browser_list.h" 20 #include "chrome/browser/ui/browser_list.h"
21 #include "chrome/browser/ui/browser_window.h" 21 #include "chrome/browser/ui/browser_window.h"
22 #include "printing/metafile.h" 22 #include "printing/metafile.h"
23 #include "printing/print_job_constants.h" 23 #include "printing/print_job_constants.h"
24 #include "printing/print_settings.h" 24 #include "printing/print_settings.h"
25 #include "printing/print_settings_initializer_gtk.h" 25 #include "printing/print_settings_initializer_gtk.h"
26 26
27 using content::BrowserThread;
27 using printing::PageRanges; 28 using printing::PageRanges;
28 using printing::PrintSettings; 29 using printing::PrintSettings;
29 30
30 namespace { 31 namespace {
31 32
32 // CUPS Duplex attribute and values. 33 // CUPS Duplex attribute and values.
33 const char kCUPSDuplex[] = "cups-Duplex"; 34 const char kCUPSDuplex[] = "cups-Duplex";
34 const char kDuplexNone[] = "None"; 35 const char kDuplexNone[] = "None";
35 const char kDuplexTumble[] = "DuplexTumble"; 36 const char kDuplexTumble[] = "DuplexTumble";
36 const char kDuplexNoTumble[] = "DuplexNoTumble"; 37 const char kDuplexNoTumble[] = "DuplexNoTumble";
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // Printing finished. Matches AddRef() in PrintDocument(); 396 // Printing finished. Matches AddRef() in PrintDocument();
396 Release(); 397 Release();
397 } 398 }
398 399
399 void PrintDialogGtk::InitPrintSettings(const PageRanges& page_ranges, 400 void PrintDialogGtk::InitPrintSettings(const PageRanges& page_ranges,
400 PrintSettings* settings) { 401 PrintSettings* settings) {
401 printing::PrintSettingsInitializerGtk::InitPrintSettings( 402 printing::PrintSettingsInitializerGtk::InitPrintSettings(
402 gtk_settings_, page_setup_, page_ranges, false, settings); 403 gtk_settings_, page_setup_, page_ranges, false, settings);
403 context_->InitWithSettings(*settings); 404 context_->InitWithSettings(*settings);
404 } 405 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_dialog_gtk.h ('k') | chrome/browser/printing/print_job_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698