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

Side by Side Diff: printing/printed_document.h

Issue 2400873002: keep only one typedef for the native drawing context (Closed)
Patch Set: native_drawing_context.h Created 4 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 | « printing/pdf_metafile_skia.cc ('k') | printing/printed_document_mac.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) 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 PRINTING_PRINTED_DOCUMENT_H_ 5 #ifndef PRINTING_PRINTED_DOCUMENT_H_
6 #define PRINTING_PRINTED_DOCUMENT_H_ 6 #define PRINTING_PRINTED_DOCUMENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "printing/print_settings.h" 16 #include "printing/print_settings.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "skia/ext/native_drawing_context.h"
18 18
19 namespace base { 19 namespace base {
20 class RefCountedMemory; 20 class RefCountedMemory;
21 class TaskRunner; 21 class TaskRunner;
22 } 22 }
23 23
24 namespace printing { 24 namespace printing {
25 25
26 class MetafilePlayer; 26 class MetafilePlayer;
27 class PrintedPage; 27 class PrintedPage;
(...skipping 28 matching lines...) Expand all
56 56
57 // Retrieves a page. If the page is not available right now, it 57 // Retrieves a page. If the page is not available right now, it
58 // requests to have this page be rendered and returns NULL. 58 // requests to have this page be rendered and returns NULL.
59 // Note: locks for a short amount of time. 59 // Note: locks for a short amount of time.
60 scoped_refptr<PrintedPage> GetPage(int page_number); 60 scoped_refptr<PrintedPage> GetPage(int page_number);
61 61
62 // Draws the page in the context. 62 // Draws the page in the context.
63 // Note: locks for a short amount of time in debug only. 63 // Note: locks for a short amount of time in debug only.
64 #if defined(OS_WIN) || defined(OS_MACOSX) && !defined(USE_AURA) 64 #if defined(OS_WIN) || defined(OS_MACOSX) && !defined(USE_AURA)
65 void RenderPrintedPage(const PrintedPage& page, 65 void RenderPrintedPage(const PrintedPage& page,
66 gfx::NativeDrawingContext context) const; 66 skia::NativeDrawingContext context) const;
67 #elif defined(OS_POSIX) 67 #elif defined(OS_POSIX)
68 void RenderPrintedPage(const PrintedPage& page, 68 void RenderPrintedPage(const PrintedPage& page,
69 PrintingContext* context) const; 69 PrintingContext* context) const;
70 #endif 70 #endif
71 71
72 // Returns true if all the necessary pages for the settings are already 72 // Returns true if all the necessary pages for the settings are already
73 // rendered. 73 // rendered.
74 // Note: locks while parsing the whole tree. 74 // Note: locks while parsing the whole tree.
75 bool IsComplete() const; 75 bool IsComplete() const;
76 76
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 // All the immutable members. 186 // All the immutable members.
187 const Immutable immutable_; 187 const Immutable immutable_;
188 188
189 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); 189 DISALLOW_COPY_AND_ASSIGN(PrintedDocument);
190 }; 190 };
191 191
192 } // namespace printing 192 } // namespace printing
193 193
194 #endif // PRINTING_PRINTED_DOCUMENT_H_ 194 #endif // PRINTING_PRINTED_DOCUMENT_H_
OLDNEW
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | printing/printed_document_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698