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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentTiming.h

Issue 1456883002: Move paint-related timings out of DocumentTiming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 26 matching lines...) Expand all
37 DISALLOW_NEW(); 37 DISALLOW_NEW();
38 public: 38 public:
39 explicit DocumentTiming(Document&); 39 explicit DocumentTiming(Document&);
40 40
41 void markDomLoading(); 41 void markDomLoading();
42 void markDomInteractive(); 42 void markDomInteractive();
43 void markDomContentLoadedEventStart(); 43 void markDomContentLoadedEventStart();
44 void markDomContentLoadedEventEnd(); 44 void markDomContentLoadedEventEnd();
45 void markDomComplete(); 45 void markDomComplete();
46 void markFirstLayout(); 46 void markFirstLayout();
47 void markFirstPaint();
48 void markFirstTextPaint();
49 void markFirstImagePaint();
50 47
51 // These return monotonically-increasing seconds. 48 // These return monotonically-increasing seconds.
52 double domLoading() const { return m_domLoading; } 49 double domLoading() const { return m_domLoading; }
53 double domInteractive() const { return m_domInteractive; } 50 double domInteractive() const { return m_domInteractive; }
54 double domContentLoadedEventStart() const { return m_domContentLoadedEventSt art; } 51 double domContentLoadedEventStart() const { return m_domContentLoadedEventSt art; }
55 double domContentLoadedEventEnd() const { return m_domContentLoadedEventEnd; } 52 double domContentLoadedEventEnd() const { return m_domContentLoadedEventEnd; }
56 double domComplete() const { return m_domComplete; } 53 double domComplete() const { return m_domComplete; }
57 double firstLayout() const { return m_firstLayout; } 54 double firstLayout() const { return m_firstLayout; }
58 double firstPaint() const { return m_firstPaint; }
59 double firstTextPaint() const { return m_firstTextPaint; }
60 double firstImagePaint() const { return m_firstImagePaint; }
61 55
62 DECLARE_TRACE(); 56 DECLARE_TRACE();
63 57
64 private: 58 private:
65 LocalFrame* frame() const; 59 LocalFrame* frame() const;
66 void notifyDocumentTimingChanged(); 60 void notifyDocumentTimingChanged();
67 61
68 double m_domLoading = 0.0; 62 double m_domLoading = 0.0;
69 double m_domInteractive = 0.0; 63 double m_domInteractive = 0.0;
70 double m_domContentLoadedEventStart = 0.0; 64 double m_domContentLoadedEventStart = 0.0;
71 double m_domContentLoadedEventEnd = 0.0; 65 double m_domContentLoadedEventEnd = 0.0;
72 double m_domComplete = 0.0; 66 double m_domComplete = 0.0;
73 double m_firstLayout = 0.0; 67 double m_firstLayout = 0.0;
74 double m_firstPaint = 0.0;
75 double m_firstTextPaint = 0.0;
76 double m_firstImagePaint = 0.0;
77 68
78 RawPtrWillBeMember<Document> m_document; 69 RawPtrWillBeMember<Document> m_document;
79 }; 70 };
80 71
81 } 72 }
82 73
83 #endif 74 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698