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 // http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute | 5 // https://w3c.github.io/hr-time/#the-performance-interface |
6 | 6 |
7 // TODO(philipj): Window.performance should be in High Resolution Time: | 7 // TODO(philipj): This should be a GlobalPerformance interface implemented by |
8 // https://github.com/w3c/hr-time/issues/9 | 8 // Window and WorkerGlobalScope. |
9 | |
10 [ | 9 [ |
11 ImplementedAs=DOMWindowPerformance, | 10 ImplementedAs=DOMWindowPerformance, |
12 ] partial interface Window { | 11 ] partial interface Window { |
13 [Replaceable] readonly attribute Performance performance; | 12 [Replaceable] readonly attribute Performance performance; |
14 }; | 13 }; |
OLD | NEW |