OLD | NEW |
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 Loading... |
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 |
50 private: | 52 private: |
51 DartCustomElementWrapper(); | 53 DartCustomElementWrapper(); |
52 | 54 |
53 friend Dart_Handle createDartHTMLWrapper(DartDOMData*, HTMLElement*); | 55 friend Dart_Handle createDartHTMLWrapper(DartDOMData*, HTMLElement*); |
54 friend Dart_Handle createDartSVGWrapper(DartDOMData*, SVGElement*); | 56 friend Dart_Handle createDartSVGWrapper(DartDOMData*, SVGElement*); |
55 | 57 |
| 58 static Dart_Handle swapElementWrapper(DartDOMData*, HTMLElement*, Dart_Handl
e wrapperType, intptr_t nativeClassId); |
| 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 |
OLD | NEW |