OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "wtf/PassOwnPtr.h" | 34 #include "wtf/PassOwnPtr.h" |
35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
36 | 36 |
37 #include <dart_api.h> | 37 #include <dart_api.h> |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 class DartCustomElementBinding { | 41 class DartCustomElementBinding { |
42 public: | 42 public: |
43 static PassOwnPtr<DartCustomElementBinding> create(Dart_Handle customType); | 43 static PassOwnPtr<DartCustomElementBinding> create(Dart_Handle customType, i
ntptr_t nativeClassId); |
44 | 44 |
45 Dart_PersistentHandle customType() { return m_customType; } | 45 Dart_PersistentHandle customType() { return m_customType; } |
| 46 intptr_t nativeClassId() { return m_nativeClassId; } |
46 | 47 |
47 private: | 48 private: |
48 DartCustomElementBinding(Dart_Handle customType); | 49 DartCustomElementBinding(Dart_Handle customType, intptr_t nativeClassId); |
49 Dart_PersistentHandle m_customType; | 50 Dart_PersistentHandle m_customType; |
| 51 intptr_t m_nativeClassId; |
50 }; | 52 }; |
51 | 53 |
52 } | 54 } |
53 | 55 |
54 #endif // CustomElementBinding_h | 56 #endif // CustomElementBinding_h |
OLD | NEW |