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

Side by Side Diff: printing/print_settings_initializer_gtk.h

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PRINTING_PRINT_SETTINGS_INITIALIZER_GTK_H_
6 #define PRINTING_PRINT_SETTINGS_INITIALIZER_GTK_H_
7
8 #include "base/logging.h"
9 #include "printing/page_range.h"
10
11 typedef struct _GtkPrintSettings GtkPrintSettings;
12 typedef struct _GtkPageSetup GtkPageSetup;
13
14 namespace printing {
15
16 class PrintSettings;
17
18 // Initializes a PrintSettings object from the provided Gtk printer objects.
19 class PRINTING_EXPORT PrintSettingsInitializerGtk {
20 public:
21 static void InitPrintSettings(GtkPrintSettings* settings,
22 GtkPageSetup* page_setup,
23 PrintSettings* print_settings);
24
25 // The default margins, in points. These values are based on 72 dpi,
26 // with 0.25 margins on top, left, and right, and 0.56 on bottom.
27 static const double kTopMarginInInch;
28 static const double kRightMarginInInch;
29 static const double kBottomMarginInInch;
30 static const double kLeftMarginInInch;
31
32 private:
33 DISALLOW_IMPLICIT_CONSTRUCTORS(PrintSettingsInitializerGtk);
34 };
35
36 } // namespace printing
37
38 #endif // PRINTING_PRINT_SETTINGS_INITIALIZER_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698