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

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

Issue 698023005: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Source/bindings/core/v8/ScriptWrappable.cpp ('k') | Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 struct NativeValueTraits<Vector<T> > { 1088 struct NativeValueTraits<Vector<T> > {
1089 static inline Vector<T> nativeValue(const v8::Handle<v8::Value>& value, v8:: Isolate* isolate, ExceptionState& exceptionState) 1089 static inline Vector<T> nativeValue(const v8::Handle<v8::Value>& value, v8:: Isolate* isolate, ExceptionState& exceptionState)
1090 { 1090 {
1091 return toImplArray<T>(value, 0, isolate, exceptionState); 1091 return toImplArray<T>(value, 0, isolate, exceptionState);
1092 } 1092 }
1093 }; 1093 };
1094 1094
1095 v8::Isolate* toIsolate(ExecutionContext*); 1095 v8::Isolate* toIsolate(ExecutionContext*);
1096 v8::Isolate* toIsolate(LocalFrame*); 1096 v8::Isolate* toIsolate(LocalFrame*);
1097 1097
1098 DOMWindow* toDOMWindow(v8::Handle<v8::Value>, v8::Isolate*); 1098 DOMWindow* toDOMWindow(v8::Isolate*, v8::Handle<v8::Value>);
1099 DOMWindow* toDOMWindow(v8::Handle<v8::Context>); 1099 DOMWindow* toDOMWindow(v8::Handle<v8::Context>);
1100 LocalDOMWindow* enteredDOMWindow(v8::Isolate*); 1100 LocalDOMWindow* enteredDOMWindow(v8::Isolate*);
1101 LocalDOMWindow* currentDOMWindow(v8::Isolate*); 1101 LocalDOMWindow* currentDOMWindow(v8::Isolate*);
1102 LocalDOMWindow* callingDOMWindow(v8::Isolate*); 1102 LocalDOMWindow* callingDOMWindow(v8::Isolate*);
1103 ExecutionContext* toExecutionContext(v8::Handle<v8::Context>); 1103 ExecutionContext* toExecutionContext(v8::Handle<v8::Context>);
1104 ExecutionContext* currentExecutionContext(v8::Isolate*); 1104 ExecutionContext* currentExecutionContext(v8::Isolate*);
1105 ExecutionContext* callingExecutionContext(v8::Isolate*); 1105 ExecutionContext* callingExecutionContext(v8::Isolate*);
1106 1106
1107 // Returns a V8 context associated with a ExecutionContext and a DOMWrapperWorld . 1107 // Returns a V8 context associated with a ExecutionContext and a DOMWrapperWorld .
1108 // This method returns an empty context if there is no frame or the frame is alr eady detached. 1108 // This method returns an empty context if there is no frame or the frame is alr eady detached.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1222 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value) 1222 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value)
1223 { 1223 {
1224 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value( value, scriptState->context()->Global(), scriptState->isolate())); 1224 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value( value, scriptState->context()->Global(), scriptState->isolate()));
1225 } 1225 }
1226 1226
1227 typedef void (*InstallTemplateFunction)(v8::Handle<v8::FunctionTemplate>, v8::Is olate*); 1227 typedef void (*InstallTemplateFunction)(v8::Handle<v8::FunctionTemplate>, v8::Is olate*);
1228 1228
1229 } // namespace blink 1229 } // namespace blink
1230 1230
1231 #endif // V8Binding_h 1231 #endif // V8Binding_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptWrappable.cpp ('k') | Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698