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

Side by Side Diff: third_party/WebKit/Source/web/WebPerformance.cpp

Issue 1511583002: Client Side Speed Index Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 double WebPerformance::firstTextPaint() const 179 double WebPerformance::firstTextPaint() const
180 { 180 {
181 return millisecondsToSeconds(m_private->timing()->firstTextPaint()); 181 return millisecondsToSeconds(m_private->timing()->firstTextPaint());
182 } 182 }
183 183
184 double WebPerformance::firstImagePaint() const 184 double WebPerformance::firstImagePaint() const
185 { 185 {
186 return millisecondsToSeconds(m_private->timing()->firstImagePaint()); 186 return millisecondsToSeconds(m_private->timing()->firstImagePaint());
187 } 187 }
188 188
189 double WebPerformance::speedIndex() const
190 {
191 double speedIndex = m_private->timing()->speedIndex();
192 return speedIndex;
193 }
194
189 WebPerformance::WebPerformance(const PassRefPtrWillBeRawPtr<Performance>& perfor mance) 195 WebPerformance::WebPerformance(const PassRefPtrWillBeRawPtr<Performance>& perfor mance)
190 : m_private(performance) 196 : m_private(performance)
191 { 197 {
192 } 198 }
193 199
194 WebPerformance& WebPerformance::operator=(const PassRefPtrWillBeRawPtr<Performan ce>& performance) 200 WebPerformance& WebPerformance::operator=(const PassRefPtrWillBeRawPtr<Performan ce>& performance)
195 { 201 {
196 m_private = performance; 202 m_private = performance;
197 return *this; 203 return *this;
198 } 204 }
199 205
200 } // namespace blink 206 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h ('k') | third_party/WebKit/public/web/WebPerformance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698