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

Side by Side Diff: Source/bindings/core/v8/V8PerformanceObserverCallback.h

Issue 1198863006: First version of PerformanceObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove Inspector calls and update LayoutTest. Created 5 years, 3 months 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
esprehn 2015/09/09 22:41:40 ?? We don't usually check in generated code. Pleas
MikeB 2015/09/10 19:53:01 Done.
6
7 #ifndef V8PerformanceObserverCallback_h
8 #define V8PerformanceObserverCallback_h
9
10 #include "bindings/core/v8/ActiveDOMCallback.h"
11 #include "bindings/core/v8/DOMWrapperWorld.h"
12 #include "bindings/core/v8/ScopedPersistent.h"
13 #include "core/CoreExport.h"
14 #include "core/timing/PerformanceObserverCallback.h"
15
16 namespace blink {
17
18 class V8PerformanceObserverCallback final : public PerformanceObserverCallback, public ActiveDOMCallback {
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8PerformanceObserverCallback);
20 public:
21 static V8PerformanceObserverCallback* create(v8::Local<v8::Function> callbac k, v8::Local<v8::Object> owner, ScriptState* scriptState)
22 {
23 return new V8PerformanceObserverCallback(callback, owner, scriptState);
24 }
25
26 ~V8PerformanceObserverCallback() override;
27
28 DECLARE_VIRTUAL_TRACE();
29
30 void handleEvent(PerformanceObserverEntryList*, PerformanceObserver*) overri de;
31 ExecutionContext* executionContext() const override { return ContextLifecycl eObserver::executionContext(); }
32 private:
33 CORE_EXPORT V8PerformanceObserverCallback(v8::Local<v8::Function>, v8::Local <v8::Object>, ScriptState*);
34
35 static void setWeakCallback(const v8::WeakCallbackInfo<V8PerformanceObserver Callback>&);
36
37 ScopedPersistent<v8::Function> m_callback;
38 RefPtr<ScriptState> m_scriptState;
39 };
40
41 }
42 #endif // V8PerformanceObserverCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698