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

Side by Side Diff: printing/print_settings_initializer_gtk.cc

Issue 8586044: GTK: Make the gtk port compile with GTK_DISABLE_SINGLE_INCLUDES. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove views/. Not our problem for gtk3 porting. Created 9 years 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 | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | printing/printing_context_gtk.cc » ('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) 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 "printing/print_settings_initializer_gtk.h" 5 #include "printing/print_settings_initializer_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 #include <gtk/gtkprinter.h> 8 #include <gtk/gtkunixprint.h>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "printing/print_settings.h" 12 #include "printing/print_settings.h"
13 #include "printing/units.h" 13 #include "printing/units.h"
14 14
15 namespace printing { 15 namespace printing {
16 16
17 // static 17 // static
18 void PrintSettingsInitializerGtk::InitPrintSettings( 18 void PrintSettingsInitializerGtk::InitPrintSettings(
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 GtkPageOrientation orientation = gtk_print_settings_get_orientation(settings); 75 GtkPageOrientation orientation = gtk_print_settings_get_orientation(settings);
76 print_settings->SetOrientation(orientation == GTK_PAGE_ORIENTATION_LANDSCAPE); 76 print_settings->SetOrientation(orientation == GTK_PAGE_ORIENTATION_LANDSCAPE);
77 } 77 }
78 78
79 const double PrintSettingsInitializerGtk::kTopMarginInInch = 0.25; 79 const double PrintSettingsInitializerGtk::kTopMarginInInch = 0.25;
80 const double PrintSettingsInitializerGtk::kBottomMarginInInch = 0.56; 80 const double PrintSettingsInitializerGtk::kBottomMarginInInch = 0.56;
81 const double PrintSettingsInitializerGtk::kLeftMarginInInch = 0.25; 81 const double PrintSettingsInitializerGtk::kLeftMarginInInch = 0.25;
82 const double PrintSettingsInitializerGtk::kRightMarginInInch = 0.25; 82 const double PrintSettingsInitializerGtk::kRightMarginInInch = 0.25;
83 83
84 } // namespace printing 84 } // namespace printing
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | printing/printing_context_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698