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

Unified Diff: chrome/browser/printing/printing_gtk_util.cc

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/printing_gtk_util.cc
diff --git a/chrome/browser/printing/printing_gtk_util.cc b/chrome/browser/printing/printing_gtk_util.cc
deleted file mode 100644
index 361278a5d1b9e428816d08000c9f8375c64be7c1..0000000000000000000000000000000000000000
--- a/chrome/browser/printing/printing_gtk_util.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/printing/printing_gtk_util.h"
-
-#include <gtk/gtk.h>
-#include <gtk/gtkunixprint.h>
-
-#include "base/strings/string16.h"
-#include "base/strings/utf_string_conversions.h"
-#include "printing/print_settings.h"
-#include "printing/printing_context_linux.h"
-#include "printing/units.h"
-
-gfx::Size GetPdfPaperSizeDeviceUnitsGtk(
- printing::PrintingContextLinux* context) {
- GtkPageSetup* page_setup = gtk_page_setup_new();
-
- gfx::SizeF paper_size(
- gtk_page_setup_get_paper_width(page_setup, GTK_UNIT_INCH),
- gtk_page_setup_get_paper_height(page_setup, GTK_UNIT_INCH));
-
- g_object_unref(page_setup);
-
- const printing::PrintSettings& settings = context->settings();
-
- return gfx::Size(
- paper_size.width() * settings.device_units_per_inch(),
- paper_size.height() * settings.device_units_per_inch());
-}

Powered by Google App Engine
This is Rietveld 408576698