Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.h

Issue 2626183003: Switch RemoteWindowProxy to use v8::Context::NewRemoteContext. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 CORE_EXPORT EventTarget* toEventTarget(v8::Isolate*, v8::Local<v8::Value>); 998 CORE_EXPORT EventTarget* toEventTarget(v8::Isolate*, v8::Local<v8::Value>);
999 999
1000 // If 'storage' is non-null, it must be large enough to copy all bytes in the 1000 // If 'storage' is non-null, it must be large enough to copy all bytes in the
1001 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) 1001 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value)
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 // If the argument isn't an object, this will crash. 1156 // If the argument isn't an object, this will crash.
1157 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, 1157 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>,
1158 v8::Isolate*); 1158 v8::Isolate*);
1159 1159
1160 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, 1160 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*,
1161 const String& stringifiedJSON, 1161 const String& stringifiedJSON,
1162 ExceptionState&); 1162 ExceptionState&);
1163 } // namespace blink 1163 } // namespace blink
1164 1164
1165 #endif // V8Binding_h 1165 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698