OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 ExecutionContext* (*toExecutionContextForModules)(v8::Local<v8::Context>)); | 977 ExecutionContext* (*toExecutionContextForModules)(v8::Local<v8::Context>)); |
978 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*); | 978 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*); |
979 | 979 |
980 // Returns a V8 context associated with a ExecutionContext and a | 980 // Returns a V8 context associated with a ExecutionContext and a |
981 // DOMWrapperWorld. This method returns an empty context if there is no frame | 981 // DOMWrapperWorld. This method returns an empty context if there is no frame |
982 // or the frame is already detached. | 982 // or the frame is already detached. |
983 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*, | 983 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*, |
984 DOMWrapperWorld&); | 984 DOMWrapperWorld&); |
985 // Returns a V8 context associated with a Frame and a DOMWrapperWorld. | 985 // Returns a V8 context associated with a Frame and a DOMWrapperWorld. |
986 // This method returns an empty context if the frame is already detached. | 986 // This method returns an empty context if the frame is already detached. |
987 CORE_EXPORT v8::Local<v8::Context> toV8Context(Frame*, DOMWrapperWorld&); | 987 CORE_EXPORT v8::Local<v8::Context> toV8Context(LocalFrame*, DOMWrapperWorld&); |
988 // Like toV8Context but also returns the context if the frame is already | 988 // Like toV8Context but also returns the context if the frame is already |
989 // detached. | 989 // detached. |
990 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(Frame*, | 990 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(LocalFrame*, |
991 DOMWrapperWorld&); | 991 DOMWrapperWorld&); |
992 | 992 |
993 // Returns the frame object of the window object associated with | 993 // Returns the frame object of the window object associated with |
994 // a context, if the window is currently being displayed in a Frame. | 994 // a context, if the window is currently being displayed in a Frame. |
995 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); | 995 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); |
996 | 996 |
997 // If 'storage' is non-null, it must be large enough to copy all bytes in the | 997 // If 'storage' is non-null, it must be large enough to copy all bytes in the |
998 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) | 998 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) |
999 // to allocate it using alloca() in the callers stack frame. | 999 // to allocate it using alloca() in the callers stack frame. |
1000 CORE_EXPORT void toFlexibleArrayBufferView(v8::Isolate*, | 1000 CORE_EXPORT void toFlexibleArrayBufferView(v8::Isolate*, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 // If the argument isn't an object, this will crash. | 1134 // If the argument isn't an object, this will crash. |
1135 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, | 1135 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, |
1136 v8::Isolate*); | 1136 v8::Isolate*); |
1137 | 1137 |
1138 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, | 1138 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, |
1139 const String& stringifiedJSON, | 1139 const String& stringifiedJSON, |
1140 ExceptionState&); | 1140 ExceptionState&); |
1141 } // namespace blink | 1141 } // namespace blink |
1142 | 1142 |
1143 #endif // V8Binding_h | 1143 #endif // V8Binding_h |
OLD | NEW |