| OLD | NEW |
| 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 "core/paint/FirstMeaningfulPaintDetector.h" | 9 #include "core/paint/FirstMeaningfulPaintDetector.h" |
| 10 #include "platform/Supplementable.h" | 10 #include "platform/Supplementable.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "wtf/Noncopyable.h" | 12 #include "platform/wtf/Noncopyable.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class LocalFrame; | 16 class LocalFrame; |
| 17 | 17 |
| 18 // PaintTiming is responsible for tracking paint-related timings for a given | 18 // PaintTiming is responsible for tracking paint-related timings for a given |
| 19 // document. | 19 // document. |
| 20 class CORE_EXPORT PaintTiming final | 20 class CORE_EXPORT PaintTiming final |
| 21 : public GarbageCollectedFinalized<PaintTiming>, | 21 : public GarbageCollectedFinalized<PaintTiming>, |
| 22 public Supplement<Document> { | 22 public Supplement<Document> { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 double first_contentful_paint_ = 0.0; | 107 double first_contentful_paint_ = 0.0; |
| 108 double first_meaningful_paint_ = 0.0; | 108 double first_meaningful_paint_ = 0.0; |
| 109 double first_meaningful_paint_candidate_ = 0.0; | 109 double first_meaningful_paint_candidate_ = 0.0; |
| 110 | 110 |
| 111 Member<FirstMeaningfulPaintDetector> fmp_detector_; | 111 Member<FirstMeaningfulPaintDetector> fmp_detector_; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace blink | 114 } // namespace blink |
| 115 | 115 |
| 116 #endif | 116 #endif |
| OLD | NEW |