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

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

Issue 717703002: 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/V8DOMWrapper.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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 #include "wtf/text/AtomicString.h" 38 #include "wtf/text/AtomicString.h"
39 #include <v8.h> 39 #include <v8.h>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class Node; 43 class Node;
44 struct WrapperTypeInfo; 44 struct WrapperTypeInfo;
45 45
46 class V8DOMWrapper { 46 class V8DOMWrapper {
47 public: 47 public:
48 static v8::Local<v8::Object> createWrapper(v8::Handle<v8::Object> creationCo ntext, const WrapperTypeInfo*, ScriptWrappableBase*, v8::Isolate*); 48 static v8::Local<v8::Object> createWrapper(v8::Isolate*, v8::Handle<v8::Obje ct> creationContext, const WrapperTypeInfo*, ScriptWrappableBase*);
49 49
50 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Scrip tWrappableBase*, const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper); 50 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Scrip tWrappableBase*, const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper);
51 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Scrip tWrappable*, const WrapperTypeInfo*, v8::Handle<v8::Object>); 51 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Scrip tWrappable*, const WrapperTypeInfo*, v8::Handle<v8::Object>);
52 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Node* , const WrapperTypeInfo*, v8::Handle<v8::Object>); 52 static v8::Handle<v8::Object> associateObjectWithWrapper(v8::Isolate*, Node* , const WrapperTypeInfo*, v8::Handle<v8::Object>);
53 static void setNativeInfo(v8::Handle<v8::Object>, const WrapperTypeInfo*, Sc riptWrappableBase*); 53 static void setNativeInfo(v8::Handle<v8::Object>, const WrapperTypeInfo*, Sc riptWrappableBase*);
54 static void clearNativeInfo(v8::Handle<v8::Object>, const WrapperTypeInfo*); 54 static void clearNativeInfo(v8::Handle<v8::Object>, const WrapperTypeInfo*);
55 55
56 static bool isDOMWrapper(v8::Handle<v8::Value>); 56 static bool isDOMWrapper(v8::Handle<v8::Value>);
57 }; 57 };
58 58
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 v8::Handle<v8::Context> context() const { return m_context; } 132 v8::Handle<v8::Context> context() const { return m_context; }
133 133
134 private: 134 private:
135 bool m_didEnterContext; 135 bool m_didEnterContext;
136 v8::Handle<v8::Context> m_context; 136 v8::Handle<v8::Context> m_context;
137 }; 137 };
138 138
139 } // namespace blink 139 } // namespace blink
140 140
141 #endif // V8DOMWrapper_h 141 #endif // V8DOMWrapper_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptWrappable.cpp ('k') | Source/bindings/core/v8/V8DOMWrapper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698