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

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

Issue 740983002: Implement window.print() on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typos, sorry Created 6 years 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
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_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 int page_count); 49 int page_count);
50 50
51 // content::NotificationObserver implementation. 51 // content::NotificationObserver implementation.
52 void Observe(int type, 52 void Observe(int type,
53 const content::NotificationSource& source, 53 const content::NotificationSource& source,
54 const content::NotificationDetails& details) override; 54 const content::NotificationDetails& details) override;
55 55
56 // PrintJobWorkerOwner implementation. 56 // PrintJobWorkerOwner implementation.
57 void GetSettingsDone(const PrintSettings& new_settings, 57 void GetSettingsDone(const PrintSettings& new_settings,
58 PrintingContext::Result result) override; 58 PrintingContext::Result result) override;
59
59 PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) override; 60 PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) override;
60 const PrintSettings& settings() const override; 61 const PrintSettings& settings() const override;
61 int cookie() const override; 62 int cookie() const override;
62 63
63 // Starts the actual printing. Signals the worker that it should begin to 64 // Starts the actual printing. Signals the worker that it should begin to
64 // spool as soon as data is available. 65 // spool as soon as data is available.
65 void StartPrinting(); 66 void StartPrinting();
66 67
67 // Asks for the worker thread to finish its queued tasks and disconnects the 68 // Asks for the worker thread to finish its queued tasks and disconnects the
68 // delegate object. The PrintJobManager will remove its reference. This may 69 // delegate object. The PrintJobManager will remove its reference. This may
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 scoped_refptr<PrintedDocument> document_; 218 scoped_refptr<PrintedDocument> document_;
218 scoped_refptr<PrintedPage> page_; 219 scoped_refptr<PrintedPage> page_;
219 const Type type_; 220 const Type type_;
220 221
221 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); 222 DISALLOW_COPY_AND_ASSIGN(JobEventDetails);
222 }; 223 };
223 224
224 } // namespace printing 225 } // namespace printing
225 226
226 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ 227 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698