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

Side by Side Diff: third_party/WebKit/Source/core/page/PrintContext.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 2 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
3 * Copyright (C) 2007 Apple Inc. 3 * Copyright (C) 2007 Apple Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 20 matching lines...) Expand all
31 namespace blink { 31 namespace blink {
32 32
33 class Element; 33 class Element;
34 class LocalFrame; 34 class LocalFrame;
35 class FloatRect; 35 class FloatRect;
36 class FloatSize; 36 class FloatSize;
37 class GraphicsContext; 37 class GraphicsContext;
38 class IntRect; 38 class IntRect;
39 class Node; 39 class Node;
40 40
41 class CORE_EXPORT PrintContext : public NoBaseWillBeGarbageCollectedFinalized<Pr intContext> { 41 class CORE_EXPORT PrintContext : public GarbageCollectedFinalized<PrintContext> {
42 USING_FAST_MALLOC_WILL_BE_REMOVED(PrintContext);
43 public: 42 public:
44 explicit PrintContext(LocalFrame*); 43 explicit PrintContext(LocalFrame*);
45 virtual ~PrintContext(); 44 virtual ~PrintContext();
46 45
47 LocalFrame* frame() const { return m_frame; } 46 LocalFrame* frame() const { return m_frame; }
48 47
49 // Break up a page into rects without relayout. 48 // Break up a page into rects without relayout.
50 // FIXME: This means that CSS page breaks won't be on page boundary if the s ize is different than what was passed to begin(). That's probably not always des irable. 49 // FIXME: This means that CSS page breaks won't be on page boundary if the s ize is different than what was passed to begin(). That's probably not always des irable.
51 // FIXME: Header and footer height should be applied before layout, not afte r. 50 // FIXME: Header and footer height should be applied before layout, not afte r.
52 // FIXME: The printRect argument is only used to determine page aspect ratio , it would be better to pass a FloatSize with page dimensions instead. 51 // FIXME: The printRect argument is only used to determine page aspect ratio , it would be better to pass a FloatSize with page dimensions instead.
(...skipping 20 matching lines...) Expand all
73 static String pageProperty(LocalFrame*, const char* propertyName, int pageNu mber); 72 static String pageProperty(LocalFrame*, const char* propertyName, int pageNu mber);
74 static bool isPageBoxVisible(LocalFrame*, int pageNumber); 73 static bool isPageBoxVisible(LocalFrame*, int pageNumber);
75 static String pageSizeAndMarginsInPixels(LocalFrame*, int pageNumber, int wi dth, int height, int marginTop, int marginRight, int marginBottom, int marginLef t); 74 static String pageSizeAndMarginsInPixels(LocalFrame*, int pageNumber, int wi dth, int height, int marginTop, int marginRight, int marginBottom, int marginLef t);
76 static int numberOfPages(LocalFrame*, const FloatSize& pageSizeInPixels); 75 static int numberOfPages(LocalFrame*, const FloatSize& pageSizeInPixels);
77 76
78 DECLARE_VIRTUAL_TRACE(); 77 DECLARE_VIRTUAL_TRACE();
79 78
80 protected: 79 protected:
81 void outputLinkedDestinations(GraphicsContext&, const IntRect& pageRect); 80 void outputLinkedDestinations(GraphicsContext&, const IntRect& pageRect);
82 81
83 RawPtrWillBeMember<LocalFrame> m_frame; 82 Member<LocalFrame> m_frame;
84 Vector<IntRect> m_pageRects; 83 Vector<IntRect> m_pageRects;
85 84
86 private: 85 private:
87 void computePageRectsWithPageSizeInternal(const FloatSize& pageSizeInPixels) ; 86 void computePageRectsWithPageSizeInternal(const FloatSize& pageSizeInPixels) ;
88 void collectLinkedDestinations(Node*); 87 void collectLinkedDestinations(Node*);
89 88
90 // Used to prevent misuses of begin() and end() (e.g., call end without begi n). 89 // Used to prevent misuses of begin() and end() (e.g., call end without begi n).
91 bool m_isPrinting; 90 bool m_isPrinting;
92 91
93 WillBeHeapHashMap<String, RawPtrWillBeMember<Element>> m_linkedDestinations; 92 HeapHashMap<String, Member<Element>> m_linkedDestinations;
94 bool m_linkedDestinationsValid; 93 bool m_linkedDestinationsValid;
95 }; 94 };
96 95
97 } // namespace blink 96 } // namespace blink
98 97
99 #endif 98 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/PointerLockController.cpp ('k') | third_party/WebKit/Source/core/page/PrintContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698