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

Side by Side Diff: printing/printing_context_mac.h

Issue 6510007: Printing: Delete dead code in PrintJob and cleanup corresponding code in Prin... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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_context_cairo.cc ('k') | printing/printing_context_mac.mm » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_MAC_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_MAC_H_
6 #define PRINTING_PRINTING_CONTEXT_MAC_H_ 6 #define PRINTING_PRINTING_CONTEXT_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "printing/printing_context.h" 10 #include "printing/printing_context.h"
(...skipping 16 matching lines...) Expand all
27 int max_pages, 27 int max_pages,
28 bool has_selection, 28 bool has_selection,
29 PrintSettingsCallback* callback); 29 PrintSettingsCallback* callback);
30 virtual Result UseDefaultSettings(); 30 virtual Result UseDefaultSettings();
31 virtual Result InitWithSettings(const PrintSettings& settings); 31 virtual Result InitWithSettings(const PrintSettings& settings);
32 virtual Result NewDocument(const string16& document_name); 32 virtual Result NewDocument(const string16& document_name);
33 virtual Result NewPage(); 33 virtual Result NewPage();
34 virtual Result PageDone(); 34 virtual Result PageDone();
35 virtual Result DocumentDone(); 35 virtual Result DocumentDone();
36 virtual void Cancel(); 36 virtual void Cancel();
37 virtual void DismissDialog();
38 virtual void ReleaseContext(); 37 virtual void ReleaseContext();
39 virtual gfx::NativeDrawingContext context() const; 38 virtual gfx::NativeDrawingContext context() const;
40 39
41 private: 40 private:
42 // Read the settings from the given NSPrintInfo (and cache it for later use). 41 // Read the settings from the given NSPrintInfo (and cache it for later use).
43 void ParsePrintInfo(NSPrintInfo* print_info); 42 void ParsePrintInfo(NSPrintInfo* print_info);
44 43
45 // The native print info object. 44 // The native print info object.
46 NSPrintInfo* print_info_; 45 NSPrintInfo* print_info_;
47 46
48 // The current page's context; only valid between NewPage and PageDone call 47 // The current page's context; only valid between NewPage and PageDone call
49 // pairs. 48 // pairs.
50 CGContext* context_; 49 CGContext* context_;
51 50
52 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); 51 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac);
53 }; 52 };
54 53
55 } // namespace printing 54 } // namespace printing
56 55
57 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ 56 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_
OLDNEW
« no previous file with comments | « printing/printing_context_cairo.cc ('k') | printing/printing_context_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698