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

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

Issue 118338: Add support for printing selection only flag. This only adds the flag to the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « no previous file | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/task.h" 8 #include "base/task.h"
9 #include "base/thread.h" 9 #include "base/thread.h"
10 #include "chrome/browser/printing/page_number.h" 10 #include "chrome/browser/printing/page_number.h"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 explicit PrintJobWorker(PrintJobWorkerOwner* owner); 28 explicit PrintJobWorker(PrintJobWorkerOwner* owner);
29 ~PrintJobWorker(); 29 ~PrintJobWorker();
30 30
31 void SetNewOwner(PrintJobWorkerOwner* new_owner); 31 void SetNewOwner(PrintJobWorkerOwner* new_owner);
32 32
33 // Initializes the print settings. If |ask_user_for_settings| is true, a 33 // Initializes the print settings. If |ask_user_for_settings| is true, a
34 // Print... dialog box will be shown to ask the user his preference. 34 // Print... dialog box will be shown to ask the user his preference.
35 void GetSettings(bool ask_user_for_settings, 35 void GetSettings(bool ask_user_for_settings,
36 HWND parent_window, 36 HWND parent_window,
37 int document_page_count); 37 int document_page_count,
38 bool has_selection);
38 39
39 // Starts the printing loop. Every pages are printed as soon as the data is 40 // Starts the printing loop. Every pages are printed as soon as the data is
40 // available. Makes sure the new_document is the right one. 41 // available. Makes sure the new_document is the right one.
41 void StartPrinting(PrintedDocument* new_document); 42 void StartPrinting(PrintedDocument* new_document);
42 43
43 // Updates the printed document. 44 // Updates the printed document.
44 void OnDocumentChanged(PrintedDocument* new_document); 45 void OnDocumentChanged(PrintedDocument* new_document);
45 46
46 // Unqueues waiting pages. Called when PrintJob receives a 47 // Unqueues waiting pages. Called when PrintJob receives a
47 // NOTIFY_PRINTED_DOCUMENT_UPDATED notification. It's time to look again if 48 // NOTIFY_PRINTED_DOCUMENT_UPDATED notification. It's time to look again if
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 template <> 103 template <>
103 struct RunnableMethodTraits<printing::PrintJobWorker> { 104 struct RunnableMethodTraits<printing::PrintJobWorker> {
104 RunnableMethodTraits(); 105 RunnableMethodTraits();
105 void RetainCallee(printing::PrintJobWorker* obj); 106 void RetainCallee(printing::PrintJobWorker* obj);
106 void ReleaseCallee(printing::PrintJobWorker* obj); 107 void ReleaseCallee(printing::PrintJobWorker* obj);
107 private: 108 private:
108 scoped_refptr<printing::PrintJobWorkerOwner> owner_; 109 scoped_refptr<printing::PrintJobWorkerOwner> owner_;
109 }; 110 };
110 111
111 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ 112 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_job_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698