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 944 matching lines...) Loading... |
955 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*); | 955 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*); |
956 CORE_EXPORT ExecutionContext* enteredExecutionContext(v8::Isolate*); | 956 CORE_EXPORT ExecutionContext* enteredExecutionContext(v8::Isolate*); |
957 | 957 |
958 // Returns a V8 context associated with a ExecutionContext and a | 958 // Returns a V8 context associated with a ExecutionContext and a |
959 // DOMWrapperWorld. This method returns an empty context if there is no frame | 959 // DOMWrapperWorld. This method returns an empty context if there is no frame |
960 // or the frame is already detached. | 960 // or the frame is already detached. |
961 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*, | 961 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*, |
962 DOMWrapperWorld&); | 962 DOMWrapperWorld&); |
963 // Returns a V8 context associated with a Frame and a DOMWrapperWorld. | 963 // Returns a V8 context associated with a Frame and a DOMWrapperWorld. |
964 // This method returns an empty context if the frame is already detached. | 964 // This method returns an empty context if the frame is already detached. |
965 CORE_EXPORT v8::Local<v8::Context> toV8Context(Frame*, DOMWrapperWorld&); | 965 CORE_EXPORT v8::Local<v8::Context> toV8Context(LocalFrame*, DOMWrapperWorld&); |
966 // Like toV8Context but also returns the context if the frame is already | 966 // Like toV8Context but also returns the context if the frame is already |
967 // detached. | 967 // detached. |
968 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(Frame*, | 968 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(LocalFrame*, |
969 DOMWrapperWorld&); | 969 DOMWrapperWorld&); |
970 | 970 |
971 // Returns the frame object of the window object associated with | 971 // Returns the frame object of the window object associated with |
972 // a context, if the window is currently being displayed in a Frame. | 972 // a context, if the window is currently being displayed in a Frame. |
973 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); | 973 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); |
974 | 974 |
975 CORE_EXPORT EventTarget* toEventTarget(v8::Isolate*, v8::Local<v8::Value>); | 975 CORE_EXPORT EventTarget* toEventTarget(v8::Isolate*, v8::Local<v8::Value>); |
976 | 976 |
977 // If 'storage' is non-null, it must be large enough to copy all bytes in the | 977 // If 'storage' is non-null, it must be large enough to copy all bytes in the |
978 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) | 978 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) |
(...skipping 159 matching lines...) Loading... |
1138 // If the argument isn't an object, this will crash. | 1138 // If the argument isn't an object, this will crash. |
1139 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, | 1139 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, |
1140 v8::Isolate*); | 1140 v8::Isolate*); |
1141 | 1141 |
1142 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, | 1142 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, |
1143 const String& stringifiedJSON, | 1143 const String& stringifiedJSON, |
1144 ExceptionState&); | 1144 ExceptionState&); |
1145 } // namespace blink | 1145 } // namespace blink |
1146 | 1146 |
1147 #endif // V8Binding_h | 1147 #endif // V8Binding_h |
OLD | NEW |