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

Side by Side Diff: chrome/browser/printing/print_dialog_gtk.h

Issue 7348010: Added Header and Footer support using Skia (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Moved elide text to print_settings_initializer Created 9 years, 4 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
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 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 #include <gtk/gtkprintunixdialog.h> 10 #include <gtk/gtkprintunixdialog.h>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void SendDocumentToPrinter(const string16& document_name); 66 void SendDocumentToPrinter(const string16& document_name);
67 67
68 // Handles print job response. 68 // Handles print job response.
69 static void OnJobCompletedThunk(GtkPrintJob* print_job, 69 static void OnJobCompletedThunk(GtkPrintJob* print_job,
70 gpointer user_data, 70 gpointer user_data,
71 GError* error); 71 GError* error);
72 void OnJobCompleted(GtkPrintJob* print_job, GError* error); 72 void OnJobCompleted(GtkPrintJob* print_job, GError* error);
73 73
74 // Helper function for initializing |context_|'s PrintSettings with a given 74 // Helper function for initializing |context_|'s PrintSettings with a given
75 // set of |page_ranges|. 75 // set of |page_ranges|.
76 void InitPrintSettings(const printing::PageRanges& page_ranges); 76 void InitPrintSettings(const printing::PageRanges& page_ranges,
77 const base::DictionaryValue& header_footer_info);
77 78
78 // Printing dialog callback. 79 // Printing dialog callback.
79 PrintingContextCairo::PrintSettingsCallback* callback_; 80 PrintingContextCairo::PrintSettingsCallback* callback_;
80 PrintingContextCairo* context_; 81 PrintingContextCairo* context_;
81 82
82 // Print dialog settings. PrintDialogGtk owns |dialog_| and holds references 83 // Print dialog settings. PrintDialogGtk owns |dialog_| and holds references
83 // to the other objects. 84 // to the other objects.
84 GtkWidget* dialog_; 85 GtkWidget* dialog_;
85 GtkPrintSettings* gtk_settings_; 86 GtkPrintSettings* gtk_settings_;
86 GtkPageSetup* page_setup_; 87 GtkPageSetup* page_setup_;
87 GtkPrinter* printer_; 88 GtkPrinter* printer_;
88 89
89 // Event to signal when save document finishes. 90 // Event to signal when save document finishes.
90 scoped_ptr<base::WaitableEvent> save_document_event_; 91 scoped_ptr<base::WaitableEvent> save_document_event_;
91 92
92 FilePath path_to_pdf_; 93 FilePath path_to_pdf_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk); 95 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk);
95 }; 96 };
96 97
97 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ 98 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698