OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 #include "wtf/text/AtomicString.h" | 38 #include "wtf/text/AtomicString.h" |
39 #include <v8.h> | 39 #include <v8.h> |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class Node; | 43 class Node; |
44 struct WrapperTypeInfo; | 44 struct WrapperTypeInfo; |
45 | 45 |
46 class V8DOMWrapper { | 46 class V8DOMWrapper { |
47 public: | 47 public: |
48 static v8::Local<v8::Object> createWrapper(v8::Handle<v8::Object> creationCo
ntext, const WrapperTypeInfo*, ScriptWrappableBase*, v8::Isolate*); | 48 static v8::Local<v8::Object> createWrapper(v8::Isolate*, v8::Handle<v8::Obje
ct> creationContext, const WrapperTypeInfo*, ScriptWrappableBase*); |
49 | 49 |
50 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Scrip
tWrappableBase*, const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper); | 50 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Scrip
tWrappableBase*, const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper); |
51 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Scrip
tWrappable*, const WrapperTypeInfo*, v8::Handle<v8::Object>); | 51 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Scrip
tWrappable*, const WrapperTypeInfo*, v8::Handle<v8::Object>); |
52 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Node*
, const WrapperTypeInfo*, v8::Handle<v8::Object>); | 52 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Node*
, const WrapperTypeInfo*, v8::Handle<v8::Object>); |
53 static void setNativeInfo(v8::Handle<v8::Object>, const WrapperTypeInfo*, Sc
riptWrappableBase*); | 53 static void setNativeInfo(v8::Handle<v8::Object>, const WrapperTypeInfo*, Sc
riptWrappableBase*); |
54 static void clearNativeInfo(v8::Handle<v8::Object>, const WrapperTypeInfo*); | 54 static void clearNativeInfo(v8::Handle<v8::Object>, const WrapperTypeInfo*); |
55 | 55 |
56 static bool isDOMWrapper(v8::Handle<v8::Value>); | 56 static bool isDOMWrapper(v8::Handle<v8::Value>); |
57 }; | 57 }; |
58 | 58 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 v8::Handle<v8::Context> context() const { return m_context; } | 132 v8::Handle<v8::Context> context() const { return m_context; } |
133 | 133 |
134 private: | 134 private: |
135 bool m_didEnterContext; | 135 bool m_didEnterContext; |
136 v8::Handle<v8::Context> m_context; | 136 v8::Handle<v8::Context> m_context; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace blink | 139 } // namespace blink |
140 | 140 |
141 #endif // V8DOMWrapper_h | 141 #endif // V8DOMWrapper_h |
OLD | NEW |