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

Unified Diff: Source/core/timing/PerformanceObserverCallback.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 side-by-side diff with in-line comments
Download patch
Index: Source/core/timing/PerformanceObserverCallback.h
diff --git a/Source/core/dom/MutationCallback.h b/Source/core/timing/PerformanceObserverCallback.h
similarity index 77%
copy from Source/core/dom/MutationCallback.h
copy to Source/core/timing/PerformanceObserverCallback.h
index 5bdfbfdaad15fa91535f5829281146fadfc62d9c..71e7f727fa495e493d77ac79bed53fe63079decc 100644
--- a/Source/core/dom/MutationCallback.h
+++ b/Source/core/timing/PerformanceObserverCallback.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2015 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,23 +28,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MutationCallback_h
-#define MutationCallback_h
+#ifndef PerformanceObserverCallback_h
+#define PerformanceObserverCallback_h
#include "platform/heap/Handle.h"
#include "wtf/RefPtr.h"
-#include "wtf/Vector.h"
namespace blink {
-class MutationRecord;
-class MutationObserver;
+class ExecutionContext;
+class PerformanceObserverEntryList;
+class PerformanceObserver;
-class MutationCallback : public NoBaseWillBeGarbageCollectedFinalized<MutationCallback> {
+class PerformanceObserverCallback : public GarbageCollectedFinalized<PerformanceObserverCallback> {
public:
- virtual ~MutationCallback() { }
+ virtual ~PerformanceObserverCallback() { }
- virtual void call(const WillBeHeapVector<RefPtrWillBeMember<MutationRecord>>&, MutationObserver*) = 0;
+ virtual void handleEvent(PerformanceObserverEntryList*, PerformanceObserver*) = 0;
virtual ExecutionContext* executionContext() const = 0;
DEFINE_INLINE_VIRTUAL_TRACE() { }
@@ -52,4 +52,4 @@ public:
}
-#endif // MutationCallback_h
+#endif // PerformanceObserverCallback_h

Powered by Google App Engine
This is Rietveld 408576698