| 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 24 matching lines...) Expand all Loading... |
| 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); |
| 44 | 44 |
| 45 Dart_Handle customType() { return Dart_HandleFromPersistent(m_customType); } | 45 Dart_PersistentHandle customType() { return m_customType; } |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 DartCustomElementBinding(Dart_Handle customType); | 48 DartCustomElementBinding(Dart_Handle customType); |
| 49 Dart_PersistentHandle m_customType; | 49 Dart_PersistentHandle m_customType; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } | 52 } |
| 53 | 53 |
| 54 #endif // CustomElementBinding_h | 54 #endif // CustomElementBinding_h |
| OLD | NEW |