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 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*); | 978 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*); |
979 CORE_EXPORT ExecutionContext* enteredExecutionContext(v8::Isolate*); | 979 CORE_EXPORT ExecutionContext* enteredExecutionContext(v8::Isolate*); |
980 | 980 |
981 // Returns a V8 context associated with a ExecutionContext and a | 981 // Returns a V8 context associated with a ExecutionContext and a |
982 // DOMWrapperWorld. This method returns an empty context if there is no frame | 982 // DOMWrapperWorld. This method returns an empty context if there is no frame |
983 // or the frame is already detached. | 983 // or the frame is already detached. |
984 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*, | 984 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*, |
985 DOMWrapperWorld&); | 985 DOMWrapperWorld&); |
986 // Returns a V8 context associated with a Frame and a DOMWrapperWorld. | 986 // Returns a V8 context associated with a Frame and a DOMWrapperWorld. |
987 // This method returns an empty context if the frame is already detached. | 987 // This method returns an empty context if the frame is already detached. |
988 CORE_EXPORT v8::Local<v8::Context> toV8Context(Frame*, DOMWrapperWorld&); | 988 CORE_EXPORT v8::Local<v8::Context> toV8Context(LocalFrame*, DOMWrapperWorld&); |
989 // Like toV8Context but also returns the context if the frame is already | 989 // Like toV8Context but also returns the context if the frame is already |
990 // detached. | 990 // detached. |
991 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(Frame*, | 991 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(LocalFrame*, |
992 DOMWrapperWorld&); | 992 DOMWrapperWorld&); |
993 | 993 |
994 // Returns the frame object of the window object associated with | 994 // Returns the frame object of the window object associated with |
995 // a context, if the window is currently being displayed in a Frame. | 995 // a context, if the window is currently being displayed in a Frame. |
996 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); | 996 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); |
997 | 997 |
998 // If 'storage' is non-null, it must be large enough to copy all bytes in the | 998 // If 'storage' is non-null, it must be large enough to copy all bytes in the |
999 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) | 999 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) |
1000 // to allocate it using alloca() in the callers stack frame. | 1000 // to allocate it using alloca() in the callers stack frame. |
1001 CORE_EXPORT void toFlexibleArrayBufferView(v8::Isolate*, | 1001 CORE_EXPORT void toFlexibleArrayBufferView(v8::Isolate*, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 // If the argument isn't an object, this will crash. | 1136 // If the argument isn't an object, this will crash. |
1137 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, | 1137 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, |
1138 v8::Isolate*); | 1138 v8::Isolate*); |
1139 | 1139 |
1140 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, | 1140 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, |
1141 const String& stringifiedJSON, | 1141 const String& stringifiedJSON, |
1142 ExceptionState&); | 1142 ExceptionState&); |
1143 } // namespace blink | 1143 } // namespace blink |
1144 | 1144 |
1145 #endif // V8Binding_h | 1145 #endif // V8Binding_h |
OLD | NEW |