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

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: Sync with latest spec draft (DOMString -> PerformanceEntryType and new PerformanceObserver -> windo… Created 5 years, 5 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.
esprehn 2015/07/18 22:24:15 15
MikeB 2015/07/20 23:06:50 I updated the template for code_generator_v8.py
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/07/18 22:24:15 ??? I don't think this is supposed to be here.
MikeB 2015/07/20 23:06:50 I actually did generate this file. I had to add li
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, ScriptState* scriptState)
22 {
23 return new V8PerformanceObserverCallback(callback, 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>, ScriptSta te*);
34
35 ScopedPersistent<v8::Function> m_callback;
36 RefPtr<ScriptState> m_scriptState;
37 };
38
39 }
40 #endif // V8PerformanceObserverCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698