blob: c16e1a2e8cf7869a53e5c365e0cc815ad230b72d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/performance-timeline/#dom-performanceobservercallback
callback PerformanceObserverCallback = void (PerformanceObserverEntryList entries, PerformanceObserver observer);
// https://w3c.github.io/performance-timeline/#the-performanceobserver-interface
[
ActiveScriptWrappable,
Constructor(PerformanceObserverCallback callback),
ConstructorCallWith=ScriptState,
Exposed=(Window,Worker)
] interface PerformanceObserver {
[RaisesException] void observe(PerformanceObserverInit options);
void disconnect();
PerformanceEntryList takeRecords();
};
|