printing_gtk_util.h 910 B

123456789101112131415161718192021222324252627
  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.
  4. #ifndef UI_GTK_PRINTING_PRINTING_GTK_UTIL_H_
  5. #define UI_GTK_PRINTING_PRINTING_GTK_UTIL_H_
  6. #include "ui/gfx/geometry/size.h"
  7. namespace printing {
  8. class PrintingContextLinux;
  9. class PrintSettings;
  10. } // namespace printing
  11. typedef struct _GtkPrintSettings GtkPrintSettings;
  12. typedef struct _GtkPageSetup GtkPageSetup;
  13. // Obtains the paper size through Gtk.
  14. gfx::Size GetPdfPaperSizeDeviceUnitsGtk(
  15. printing::PrintingContextLinux* context);
  16. // Initializes a PrintSettings object from the provided Gtk printer objects.
  17. void InitPrintSettingsGtk(GtkPrintSettings* settings,
  18. GtkPageSetup* page_setup,
  19. printing::PrintSettings* print_settings);
  20. #endif // UI_GTK_PRINTING_PRINTING_GTK_UTIL_H_