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

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

Issue 3384035: Printing: Call PrintingContext::AskUserForSettings() on the UI thread for Linux (Closed)
Patch Set: Created 10 years, 2 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 | « 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 #pragma once 7 #pragma once
8 8
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "base/thread.h" 10 #include "base/thread.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Renders a page in the printer. 74 // Renders a page in the printer.
75 void SpoolPage(PrintedPage& page); 75 void SpoolPage(PrintedPage& page);
76 76
77 // Closes the job since spooling is done. 77 // Closes the job since spooling is done.
78 void OnDocumentDone(); 78 void OnDocumentDone();
79 79
80 // Discards the current document, the current page and cancels the printing 80 // Discards the current document, the current page and cancels the printing
81 // context. 81 // context.
82 void OnFailure(); 82 void OnFailure();
83 83
84 #if defined(OS_MACOSX) 84 #if defined(OS_MACOSX) || defined(USE_X11)
85 // Asks the user for print settings. Must be called on the UI thread. 85 // Asks the user for print settings. Must be called on the UI thread.
86 // Mac-only since Windows can display UI from non-main threads. 86 // Mac and Linux-only since Windows can display UI from non-main threads.
87 void GetSettingsWithUI(gfx::NativeView parent_view, 87 void GetSettingsWithUI(gfx::NativeView parent_view,
88 int document_page_count, 88 int document_page_count,
89 bool has_selection); 89 bool has_selection);
90 90
91 // The callback used by PrintingContext::GetSettingsWithUI() to notify this 91 // The callback used by PrintingContext::GetSettingsWithUI() to notify this
92 // object that the print settings are set. This is needed in order to bounce 92 // object that the print settings are set. This is needed in order to bounce
93 // back into the IO thread for GetSettingsDone(). 93 // back into the IO thread for GetSettingsDone().
94 void GetSettingsWithUIDone(PrintingContext::Result result); 94 void GetSettingsWithUIDone(PrintingContext::Result result);
95 #endif 95 #endif
96 96
(...skipping 20 matching lines...) Expand all
117 117
118 template <> 118 template <>
119 struct RunnableMethodTraits<printing::PrintJobWorker> { 119 struct RunnableMethodTraits<printing::PrintJobWorker> {
120 void RetainCallee(printing::PrintJobWorker* obj); 120 void RetainCallee(printing::PrintJobWorker* obj);
121 void ReleaseCallee(printing::PrintJobWorker* obj); 121 void ReleaseCallee(printing::PrintJobWorker* obj);
122 private: 122 private:
123 scoped_refptr<printing::PrintJobWorkerOwner> owner_; 123 scoped_refptr<printing::PrintJobWorkerOwner> owner_;
124 }; 124 };
125 125
126 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ 126 #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