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

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

Issue 2114583002: Windows: Make it possible to print text with GDI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again, resolve conflicts Created 4 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
« no previous file with comments | « chrome/browser/printing/print_job.cc ('k') | chrome/browser/printing/print_job_worker.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_JOB_WORKER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 PrintJobWorker(int render_process_id, 38 PrintJobWorker(int render_process_id,
39 int render_view_id, 39 int render_view_id,
40 PrintJobWorkerOwner* owner); 40 PrintJobWorkerOwner* owner);
41 virtual ~PrintJobWorker(); 41 virtual ~PrintJobWorker();
42 42
43 void SetNewOwner(PrintJobWorkerOwner* new_owner); 43 void SetNewOwner(PrintJobWorkerOwner* new_owner);
44 44
45 // Initializes the print settings. If |ask_user_for_settings| is true, a 45 // Initializes the print settings. If |ask_user_for_settings| is true, a
46 // Print... dialog box will be shown to ask the user his preference. 46 // Print... dialog box will be shown to ask the user his preference.
47 // |is_scripted| should be true for calls coming straight from window.print(). 47 // |is_scripted| should be true for calls coming straight from window.print().
48 void GetSettings( 48 // |is_modifiable| implies HTML and not other formats like PDF.
49 bool ask_user_for_settings, 49 void GetSettings(bool ask_user_for_settings,
50 int document_page_count, 50 int document_page_count,
51 bool has_selection, 51 bool has_selection,
52 MarginType margin_type, 52 MarginType margin_type,
53 bool is_scripted); 53 bool is_scripted,
54 bool is_modifiable);
54 55
55 // Set the new print settings. 56 // Set the new print settings.
56 void SetSettings(std::unique_ptr<base::DictionaryValue> new_settings); 57 void SetSettings(std::unique_ptr<base::DictionaryValue> new_settings);
57 58
58 // Starts the printing loop. Every pages are printed as soon as the data is 59 // Starts the printing loop. Every pages are printed as soon as the data is
59 // available. Makes sure the new_document is the right one. 60 // available. Makes sure the new_document is the right one.
60 void StartPrinting(PrintedDocument* new_document); 61 void StartPrinting(PrintedDocument* new_document);
61 62
62 // Updates the printed document. 63 // Updates the printed document.
63 void OnDocumentChanged(PrintedDocument* new_document); 64 void OnDocumentChanged(PrintedDocument* new_document);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 152
152 // Used to generate a WeakPtr for callbacks. 153 // Used to generate a WeakPtr for callbacks.
153 base::WeakPtrFactory<PrintJobWorker> weak_factory_; 154 base::WeakPtrFactory<PrintJobWorker> weak_factory_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(PrintJobWorker); 156 DISALLOW_COPY_AND_ASSIGN(PrintJobWorker);
156 }; 157 };
157 158
158 } // namespace printing 159 } // namespace printing
159 160
160 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_ 161 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job.cc ('k') | chrome/browser/printing/print_job_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698