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

Side by Side Diff: Source/bindings/dart/DartCustomElementWrapper.h

Issue 188083002: Dartium support for manual custom element upgrades. (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1750
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class HTMLElement; 40 class HTMLElement;
41 class SVGElement; 41 class SVGElement;
42 42
43 template<typename ElementType> 43 template<typename ElementType>
44 class DartCustomElementWrapper { 44 class DartCustomElementWrapper {
45 public: 45 public:
46 static Dart_Handle upgradeDartWrapper(ElementType*, Dart_Handle (*createSpec ificWrapper)(DartDOMData*, ElementType*)); 46 static Dart_Handle upgradeDartWrapper(ElementType*, Dart_Handle (*createSpec ificWrapper)(DartDOMData*, ElementType*));
47 47
48 static Dart_Handle changeElementWrapper(Dart_Handle element, Dart_Handle wra pperType);
49
48 static void initializeCustomElement(Dart_Handle wrapper, Dart_Handle& except ion); 50 static void initializeCustomElement(Dart_Handle wrapper, Dart_Handle& except ion);
49 51
52 static Dart_Handle swapElementWrapper(DartDOMData*, HTMLElement*, Dart_Handl e wrapperType, intptr_t nativeClassId);
vsm 2014/04/16 21:33:05 Can this be private?
blois 2014/04/16 22:18:51 Done.
53
50 private: 54 private:
51 DartCustomElementWrapper(); 55 DartCustomElementWrapper();
52 56
53 friend Dart_Handle createDartHTMLWrapper(DartDOMData*, HTMLElement*); 57 friend Dart_Handle createDartHTMLWrapper(DartDOMData*, HTMLElement*);
54 friend Dart_Handle createDartSVGWrapper(DartDOMData*, SVGElement*); 58 friend Dart_Handle createDartSVGWrapper(DartDOMData*, SVGElement*);
55 59
56 static Dart_Handle wrap(PassRefPtr<ElementType>, Dart_Handle (*createSpecifi cWrapper)(DartDOMData*, ElementType*)); 60 static Dart_Handle wrap(PassRefPtr<ElementType>, Dart_Handle (*createSpecifi cWrapper)(DartDOMData*, ElementType*));
57 }; 61 };
58 62
59 } // namespace WebCore 63 } // namespace WebCore
60 64
61 #endif // CustomElementWrapper_h 65 #endif // CustomElementWrapper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698