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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintTiming.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, 10 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 PaintTiming_h 5 #ifndef PaintTiming_h
6 #define PaintTiming_h 6 #define PaintTiming_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class LocalFrame; 14 class LocalFrame;
15 15
16 class PaintTiming final : public NoBaseWillBeGarbageCollectedFinalized<PaintTimi ng>, public WillBeHeapSupplement<Document> { 16 class PaintTiming final : public GarbageCollectedFinalized<PaintTiming>, public HeapSupplement<Document> {
17 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PaintTiming); 17 USING_GARBAGE_COLLECTED_MIXIN(PaintTiming);
18 public: 18 public:
19 virtual ~PaintTiming() { } 19 virtual ~PaintTiming() { }
20 20
21 static PaintTiming& from(Document&); 21 static PaintTiming& from(Document&);
22 22
23 void markFirstPaint(); 23 void markFirstPaint();
24 void markFirstTextPaint(); 24 void markFirstTextPaint();
25 void markFirstImagePaint(); 25 void markFirstImagePaint();
26 void markFirstContentfulPaint(); 26 void markFirstContentfulPaint();
27 27
28 // These return monotonically-increasing seconds. 28 // These return monotonically-increasing seconds.
29 double firstPaint() const { return m_firstPaint; } 29 double firstPaint() const { return m_firstPaint; }
30 double firstTextPaint() const { return m_firstTextPaint; } 30 double firstTextPaint() const { return m_firstTextPaint; }
31 double firstImagePaint() const { return m_firstImagePaint; } 31 double firstImagePaint() const { return m_firstImagePaint; }
32 double firstContentfulPaint() const { return m_firstContentfulPaint; } 32 double firstContentfulPaint() const { return m_firstContentfulPaint; }
33 33
34 DECLARE_VIRTUAL_TRACE(); 34 DECLARE_VIRTUAL_TRACE();
35 35
36 private: 36 private:
37 explicit PaintTiming(Document&); 37 explicit PaintTiming(Document&);
38 LocalFrame* frame() const; 38 LocalFrame* frame() const;
39 void notifyPaintTimingChanged(); 39 void notifyPaintTimingChanged();
40 40
41 double m_firstPaint = 0.0; 41 double m_firstPaint = 0.0;
42 double m_firstTextPaint = 0.0; 42 double m_firstTextPaint = 0.0;
43 double m_firstImagePaint = 0.0; 43 double m_firstImagePaint = 0.0;
44 double m_firstContentfulPaint = 0.0; 44 double m_firstContentfulPaint = 0.0;
45 45
46 RawPtrWillBeMember<Document> m_document; 46 Member<Document> m_document;
47 }; 47 };
48 48
49 } // namespace blink 49 } // namespace blink
50 50
51 #endif 51 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698