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

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

Issue 2738533003: Use "entered or microtask context" instead of "entered or current context" (Closed)
Patch Set: Created 3 years, 9 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 return toImplArray<Vector<T>>(value, 0, isolate, exceptionState); 994 return toImplArray<Vector<T>>(value, 0, isolate, exceptionState);
995 } 995 }
996 }; 996 };
997 997
998 CORE_EXPORT v8::Isolate* toIsolate(ExecutionContext*); 998 CORE_EXPORT v8::Isolate* toIsolate(ExecutionContext*);
999 CORE_EXPORT v8::Isolate* toIsolate(LocalFrame*); 999 CORE_EXPORT v8::Isolate* toIsolate(LocalFrame*);
1000 1000
1001 CORE_EXPORT DOMWindow* toDOMWindow(v8::Isolate*, v8::Local<v8::Value>); 1001 CORE_EXPORT DOMWindow* toDOMWindow(v8::Isolate*, v8::Local<v8::Value>);
1002 DOMWindow* toDOMWindow(v8::Local<v8::Context>); 1002 DOMWindow* toDOMWindow(v8::Local<v8::Context>);
1003 LocalDOMWindow* enteredDOMWindow(v8::Isolate*); 1003 LocalDOMWindow* enteredDOMWindow(v8::Isolate*);
1004 // Returns the last entered context, or the context of the currently running
1005 // microtask if no entered context is higher up on the stack.
1006 LocalDOMWindow* enteredOrMicrotaskDOMWindow(v8::Isolate*);
1007 CORE_EXPORT LocalDOMWindow* currentDOMWindow(v8::Isolate*); 1004 CORE_EXPORT LocalDOMWindow* currentDOMWindow(v8::Isolate*);
1008 CORE_EXPORT ExecutionContext* toExecutionContext(v8::Local<v8::Context>); 1005 CORE_EXPORT ExecutionContext* toExecutionContext(v8::Local<v8::Context>);
1009 CORE_EXPORT void registerToExecutionContextForModules( 1006 CORE_EXPORT void registerToExecutionContextForModules(
1010 ExecutionContext* (*toExecutionContextForModules)(v8::Local<v8::Context>)); 1007 ExecutionContext* (*toExecutionContextForModules)(v8::Local<v8::Context>));
1011 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*); 1008 CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*);
1012 1009
1013 // Returns a V8 context associated with a ExecutionContext and a 1010 // Returns a V8 context associated with a ExecutionContext and a
1014 // DOMWrapperWorld. This method returns an empty context if there is no frame 1011 // DOMWrapperWorld. This method returns an empty context if there is no frame
1015 // or the frame is already detached. 1012 // or the frame is already detached.
1016 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*, 1013 CORE_EXPORT v8::Local<v8::Context> toV8Context(ExecutionContext*,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 // If the argument isn't an object, this will crash. 1164 // If the argument isn't an object, this will crash.
1168 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, 1165 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>,
1169 v8::Isolate*); 1166 v8::Isolate*);
1170 1167
1171 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, 1168 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*,
1172 const String& stringifiedJSON, 1169 const String& stringifiedJSON,
1173 ExceptionState&); 1170 ExceptionState&);
1174 } // namespace blink 1171 } // namespace blink
1175 1172
1176 #endif // V8Binding_h 1173 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698