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

Side by Side Diff: printing/printing_context_cairo.h

Issue 6826027: Connect the right metafiles for print preview on Linux and Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile problems Created 9 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
« no previous file with comments | « printing/printing.gyp ('k') | printing/printing_context_cairo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PRINTING_PRINTING_CONTEXT_CAIRO_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_CAIRO_H_
6 #define PRINTING_PRINTING_CONTEXT_CAIRO_H_ 6 #define PRINTING_PRINTING_CONTEXT_CAIRO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "printing/printing_context.h" 10 #include "printing/printing_context.h"
11 11
12 #if !defined(OS_CHROMEOS)
13 #include "printing/native_metafile.h"
14 #endif
15
16 namespace printing { 12 namespace printing {
17 13
14 class Metafile;
18 class PrintDialogGtkInterface; 15 class PrintDialogGtkInterface;
19 16
20 class PrintingContextCairo : public PrintingContext { 17 class PrintingContextCairo : public PrintingContext {
21 public: 18 public:
22 explicit PrintingContextCairo(const std::string& app_locale); 19 explicit PrintingContextCairo(const std::string& app_locale);
23 ~PrintingContextCairo(); 20 ~PrintingContextCairo();
24 21
25 #if !defined(OS_CHROMEOS) 22 #if !defined(OS_CHROMEOS)
26 // Sets the function that creates the print dialog. 23 // Sets the function that creates the print dialog.
27 static void SetCreatePrintDialogFunction( 24 static void SetCreatePrintDialogFunction(
28 PrintDialogGtkInterface* (*create_dialog_func)( 25 PrintDialogGtkInterface* (*create_dialog_func)(
29 PrintingContextCairo* context)); 26 PrintingContextCairo* context));
30 27
31 // Prints the document contained in |metafile|. 28 // Prints the document contained in |metafile|.
32 void PrintDocument(const NativeMetafile* metafile); 29 void PrintDocument(const Metafile* metafile);
33 #endif 30 #endif
34 31
35 // PrintingContext implementation. 32 // PrintingContext implementation.
36 virtual void AskUserForSettings(gfx::NativeView parent_view, 33 virtual void AskUserForSettings(gfx::NativeView parent_view,
37 int max_pages, 34 int max_pages,
38 bool has_selection, 35 bool has_selection,
39 PrintSettingsCallback* callback); 36 PrintSettingsCallback* callback);
40 virtual Result UseDefaultSettings(); 37 virtual Result UseDefaultSettings();
41 virtual Result UpdatePrintSettings(const DictionaryValue& job_settings, 38 virtual Result UpdatePrintSettings(const DictionaryValue& job_settings,
42 const PageRanges& ranges); 39 const PageRanges& ranges);
(...skipping 11 matching lines...) Expand all
54 string16 document_name_; 51 string16 document_name_;
55 PrintDialogGtkInterface* print_dialog_; 52 PrintDialogGtkInterface* print_dialog_;
56 #endif 53 #endif
57 54
58 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo); 55 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo);
59 }; 56 };
60 57
61 } // namespace printing 58 } // namespace printing
62 59
63 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_ 60 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_
OLDNEW
« no previous file with comments | « printing/printing.gyp ('k') | printing/printing_context_cairo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698