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

Unified Diff: Source/core/xml/XMLTreeViewer.h

Issue 479753003: Transform XML tree viewer to blink-in-js implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/xml/XMLTreeViewer.h
diff --git a/Source/core/xml/XMLTreeViewer.h b/Source/core/xml/XMLTreeViewer.h
index b843475cb08063c2092fa65e07eaac959d50f45f..0ea3013cf819da60f8464edeb7245647bab4758c 100644
--- a/Source/core/xml/XMLTreeViewer.h
+++ b/Source/core/xml/XMLTreeViewer.h
@@ -29,21 +29,18 @@
#ifndef XMLTreeViewer_h
#define XMLTreeViewer_h
+#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/heap/Handle.h"
namespace blink {
class Document;
-class XMLTreeViewer FINAL {
+class XMLTreeViewer FINAL : public GarbageCollectedFinalized<XMLTreeViewer>, public ScriptWrappable {
vivekg 2014/08/26 05:41:48 Can't we generate this class automatically? As can
haraken 2014/08/26 05:57:48 This class shouldn't be necessary at all. We need
STACK_ALLOCATED();
public:
- explicit XMLTreeViewer(Document*);
-
- void transformDocumentToTreeView();
-
-private:
- RawPtrWillBeMember<Document> m_document;
+ explicit XMLTreeViewer() { ScriptWrappable::init(this); }
+ void trace(Visitor*) { }
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698