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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | printing/print_destination_none.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_destination_interface.h
diff --git a/printing/print_destination_interface.h b/printing/print_destination_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..13e8c95f6c25a50d27d31932657c0c32625b4486
--- /dev/null
+++ b/printing/print_destination_interface.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PRINTING_PRINT_DESTINATION_INTERFACE_H_
+#define PRINTING_PRINT_DESTINATION_INTERFACE_H_
+#pragma once
+
+#include "base/memory/ref_counted.h"
+#include "printing/printing_export.h"
+
+namespace printing {
+
+class PrintDestinationInterface
+ : public base::RefCountedThreadSafe<PrintDestinationInterface> {
+ public:
+ // Sets the number of pages to print as soon as it is known.
+ virtual void SetPageCount(int page_count) = 0;
+
+ // Sets the metafile bits for a given page as soon as it is ready.
+ virtual void SetPageContent(int page_number,
+ void* content,
+ size_t content_size) = 0;
+ protected:
+ friend class base::RefCountedThreadSafe<PrintDestinationInterface>;
+ virtual ~PrintDestinationInterface() {}
+};
+
+PRINTING_EXPORT PrintDestinationInterface* CreatePrintDestination();
+
+} // namespace printing
+
+#endif // PRINTING_PRINT_DESTINATION_INTERFACE_H_
« 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