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

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

Issue 27769002: Fixing custom element type extensions to have correct native type (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | Source/bindings/dart/DartCustomElementBinding.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/dart/DartCustomElementBinding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698