| 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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*); | 904 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*); |
| 905 CORE_EXPORT ExecutionContext* enteredExecutionContext(v8::Isolate*); | 905 CORE_EXPORT ExecutionContext* enteredExecutionContext(v8::Isolate*); |
| 906 | 906 |
| 907 // Returns a V8 context associated with a ExecutionContext and a | 907 // Returns a V8 context associated with a ExecutionContext and a |
| 908 // DOMWrapperWorld. This method returns an empty context if there is no frame | 908 // DOMWrapperWorld. This method returns an empty context if there is no frame |
| 909 // or the frame is already detached. | 909 // or the frame is already detached. |
| 910 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*, | 910 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*, |
| 911 DOMWrapperWorld&); | 911 DOMWrapperWorld&); |
| 912 // Returns a V8 context associated with a Frame and a DOMWrapperWorld. | 912 // Returns a V8 context associated with a Frame and a DOMWrapperWorld. |
| 913 // This method returns an empty context if the frame is already detached. | 913 // This method returns an empty context if the frame is already detached. |
| 914 CORE_EXPORT v8::Local<v8::Context> toV8Context(Frame*, DOMWrapperWorld&); | 914 CORE_EXPORT v8::Local<v8::Context> toV8Context(LocalFrame*, DOMWrapperWorld&); |
| 915 // Like toV8Context but also returns the context if the frame is already | 915 // Like toV8Context but also returns the context if the frame is already |
| 916 // detached. | 916 // detached. |
| 917 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(Frame*, | 917 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(LocalFrame*, |
| 918 DOMWrapperWorld&); | 918 DOMWrapperWorld&); |
| 919 | 919 |
| 920 // Returns the frame object of the window object associated with | 920 // Returns the frame object of the window object associated with |
| 921 // a context, if the window is currently being displayed in a Frame. | 921 // a context, if the window is currently being displayed in a Frame. |
| 922 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); | 922 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); |
| 923 | 923 |
| 924 CORE_EXPORT EventTarget* toEventTarget(v8::Isolate*, v8::Local<v8::Value>); | 924 CORE_EXPORT EventTarget* toEventTarget(v8::Isolate*, v8::Local<v8::Value>); |
| 925 | 925 |
| 926 // If 'storage' is non-null, it must be large enough to copy all bytes in the | 926 // If 'storage' is non-null, it must be large enough to copy all bytes in the |
| 927 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) | 927 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 // If the argument isn't an object, this will crash. | 1087 // If the argument isn't an object, this will crash. |
| 1088 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, | 1088 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, |
| 1089 v8::Isolate*); | 1089 v8::Isolate*); |
| 1090 | 1090 |
| 1091 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, | 1091 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, |
| 1092 const String& stringifiedJSON, | 1092 const String& stringifiedJSON, |
| 1093 ExceptionState&); | 1093 ExceptionState&); |
| 1094 } // namespace blink | 1094 } // namespace blink |
| 1095 | 1095 |
| 1096 #endif // V8Binding_h | 1096 #endif // V8Binding_h |
| OLD | NEW |