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

Side by Side Diff: printing/printed_document.h

Issue 8486020: compositor_unittests target is unimplmented on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and nit. Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void SetPage(int page_number, Metafile* metafile, double shrink, 44 void SetPage(int page_number, Metafile* metafile, double shrink,
45 const gfx::Size& paper_size, const gfx::Rect& page_rect); 45 const gfx::Size& paper_size, const gfx::Rect& page_rect);
46 46
47 // Retrieves a page. If the page is not available right now, it 47 // Retrieves a page. If the page is not available right now, it
48 // requests to have this page be rendered and returns false. 48 // requests to have this page be rendered and returns false.
49 // Note: locks for a short amount of time. 49 // Note: locks for a short amount of time.
50 bool GetPage(int page_number, scoped_refptr<PrintedPage>* page); 50 bool GetPage(int page_number, scoped_refptr<PrintedPage>* page);
51 51
52 // Draws the page in the context. 52 // Draws the page in the context.
53 // Note: locks for a short amount of time in debug only. 53 // Note: locks for a short amount of time in debug only.
54 #if defined(OS_WIN) || defined(OS_MACOSX) 54 #if defined(OS_WIN) || defined(OS_MACOSX) && !defined(USE_AURA)
55 void RenderPrintedPage(const PrintedPage& page, 55 void RenderPrintedPage(const PrintedPage& page,
56 gfx::NativeDrawingContext context) const; 56 gfx::NativeDrawingContext context) const;
57 #elif defined(OS_POSIX) 57 #elif defined(OS_POSIX)
58 void RenderPrintedPage(const PrintedPage& page, 58 void RenderPrintedPage(const PrintedPage& page,
59 PrintingContext* context) const; 59 PrintingContext* context) const;
60 #endif 60 #endif
61 61
62 // Returns true if all the necessary pages for the settings are already 62 // Returns true if all the necessary pages for the settings are already
63 // rendered. 63 // rendered.
64 // Note: locks while parsing the whole tree. 64 // Note: locks while parsing the whole tree.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 // All the immutable members. 174 // All the immutable members.
175 const Immutable immutable_; 175 const Immutable immutable_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); 177 DISALLOW_COPY_AND_ASSIGN(PrintedDocument);
178 }; 178 };
179 179
180 } // namespace printing 180 } // namespace printing
181 181
182 #endif // PRINTING_PRINTED_DOCUMENT_H_ 182 #endif // PRINTING_PRINTED_DOCUMENT_H_
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | printing/printing.gyp » ('j') | ui/gfx/gl/gl_context_nsview.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698