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

Side by Side Diff: printing/print_destination_interface.h

Issue 10483006: Print support for Windows Metro... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to ToT... Created 8 years, 5 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/ui/browser_commands.cc ('k') | printing/print_destination_none.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PRINTING_PRINT_DESTINATION_INTERFACE_H_
6 #define PRINTING_PRINT_DESTINATION_INTERFACE_H_
7 #pragma once
8
9 #include "base/memory/ref_counted.h"
10 #include "printing/printing_export.h"
11
12 namespace printing {
13
14 class PrintDestinationInterface
15 : public base::RefCountedThreadSafe<PrintDestinationInterface> {
16 public:
17 // Sets the number of pages to print as soon as it is known.
18 virtual void SetPageCount(int page_count) = 0;
19
20 // Sets the metafile bits for a given page as soon as it is ready.
21 virtual void SetPageContent(int page_number,
22 void* content,
23 size_t content_size) = 0;
24 protected:
25 friend class base::RefCountedThreadSafe<PrintDestinationInterface>;
26 virtual ~PrintDestinationInterface() {}
27 };
28
29 PRINTING_EXPORT PrintDestinationInterface* CreatePrintDestination();
30
31 } // namespace printing
32
33 #endif // PRINTING_PRINT_DESTINATION_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | printing/print_destination_none.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698