| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |