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

Unified Diff: Source/bindings/dart/DartCustomElementWrapper.h

Issue 24677002: Revert "Revert "Dartium changes for custom element lifecycle events."" (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/dart/DartCustomElementWrapper.h
diff --git a/Source/modules/filesystem/DataTransferItemFileSystem.h b/Source/bindings/dart/DartCustomElementWrapper.h
similarity index 75%
copy from Source/modules/filesystem/DataTransferItemFileSystem.h
copy to Source/bindings/dart/DartCustomElementWrapper.h
index f4a93122936541f05a749bd29e62c1d330d2524a..1ac0566743440682a5864ae2374a6d45378645e1 100644
--- a/Source/modules/filesystem/DataTransferItemFileSystem.h
+++ b/Source/bindings/dart/DartCustomElementWrapper.h
@@ -28,26 +28,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DataTransferItemFileSystem_h
-#define DataTransferItemFileSystem_h
+#ifndef DartCustomElementWrapper_h
+#define DartCustomElementWrapper_h
#include "wtf/PassRefPtr.h"
+#include <dart_api.h>
+
namespace WebCore {
-class DataTransferItem;
-class Entry;
-class ScriptExecutionContext;
+class HTMLElement;
+class SVGElement;
-class DataTransferItemFileSystem {
+template<typename ElementType>
+class DartCustomElementWrapper {
public:
- static PassRefPtr<Entry> webkitGetAsEntry(ScriptExecutionContext*, DataTransferItem*);
-
+ static Dart_Handle upgradeDartWrapper(ElementType*);
private:
- DataTransferItemFileSystem();
- ~DataTransferItemFileSystem();
+ DartCustomElementWrapper();
+
+ friend Dart_Handle createDartHTMLWrapper(HTMLElement*);
+ friend Dart_Handle createDartSVGWrapper(SVGElement*);
+
+ static Dart_Handle wrap(PassRefPtr<ElementType>, Dart_Handle (*createSpecificWrapper)(ElementType* element));
};
} // namespace WebCore
-#endif // DataTransferItemFileSystem_h
+#endif // CustomElementWrapper_h

Powered by Google App Engine
This is Rietveld 408576698