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

Side by Side Diff: printing/printing_context.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 | « chrome/browser/printing/printer_query.cc ('k') | printing/printing_context_cairo.h » ('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_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_H_
6 #define PRINTING_PRINTING_CONTEXT_H_ 6 #define PRINTING_PRINTING_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual Result PageDone() = 0; 65 virtual Result PageDone() = 0;
66 66
67 // Closes the printing job. After this call the object is ready to start a new 67 // Closes the printing job. After this call the object is ready to start a new
68 // document. 68 // document.
69 virtual Result DocumentDone() = 0; 69 virtual Result DocumentDone() = 0;
70 70
71 // Cancels printing. Can be used in a multi-threaded context. Takes effect 71 // Cancels printing. Can be used in a multi-threaded context. Takes effect
72 // immediately. 72 // immediately.
73 virtual void Cancel() = 0; 73 virtual void Cancel() = 0;
74 74
75 // Dismiss the Print... dialog box if shown.
76 virtual void DismissDialog() = 0;
77
78 // Releases the native printing context. 75 // Releases the native printing context.
79 virtual void ReleaseContext() = 0; 76 virtual void ReleaseContext() = 0;
80 77
81 // Returns the native context used to print. 78 // Returns the native context used to print.
82 virtual gfx::NativeDrawingContext context() const = 0; 79 virtual gfx::NativeDrawingContext context() const = 0;
83 80
84 // Creates an instance of this object. Implementers of this interface should 81 // Creates an instance of this object. Implementers of this interface should
85 // implement this method to create an object of their implementation. The 82 // implement this method to create an object of their implementation. The
86 // caller owns the returned object. 83 // caller owns the returned object.
87 static PrintingContext* Create(const std::string& app_locale); 84 static PrintingContext* Create(const std::string& app_locale);
(...skipping 29 matching lines...) Expand all
117 114
118 // The application locale. 115 // The application locale.
119 std::string app_locale_; 116 std::string app_locale_;
120 117
121 DISALLOW_COPY_AND_ASSIGN(PrintingContext); 118 DISALLOW_COPY_AND_ASSIGN(PrintingContext);
122 }; 119 };
123 120
124 } // namespace printing 121 } // namespace printing
125 122
126 #endif // PRINTING_PRINTING_CONTEXT_H_ 123 #endif // PRINTING_PRINTING_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/printer_query.cc ('k') | printing/printing_context_cairo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698