Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / libgtk2ui / printing_gtk2_util.h
blob6df33f854de78dc126a396fc7bbf9b1e04dfcfdd
1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_PRINTING_GTK2_UTIL_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_PRINTING_GTK2_UTIL_H_
8 #include "ui/gfx/geometry/size.h"
10 namespace printing {
11 class PrintingContextLinux;
12 class PrintSettings;
15 typedef struct _GtkPrintSettings GtkPrintSettings;
16 typedef struct _GtkPageSetup GtkPageSetup;
18 // Obtains the paper size through Gtk.
19 gfx::Size GetPdfPaperSizeDeviceUnitsGtk(
20 printing::PrintingContextLinux* context);
22 // Initializes a PrintSettings object from the provided Gtk printer objects.
23 void InitPrintSettingsGtk(GtkPrintSettings* settings,
24 GtkPageSetup* page_setup,
25 printing::PrintSettings* print_settings);
27 #endif // CHROME_BROWSER_UI_LIBGTK2UI_PRINTING_GTK2_UTIL_H_