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

Side by Side Diff: Source/bindings/v8/ScriptController.h

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/ScheduledAction.cpp ('k') | Source/bindings/v8/ScriptController.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) 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2008, 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // If an isolated world with the specified ID already exists, it is reused. 92 // If an isolated world with the specified ID already exists, it is reused.
93 // Otherwise, a new world is created. 93 // Otherwise, a new world is created.
94 // 94 //
95 // FIXME: Get rid of extensionGroup here. 95 // FIXME: Get rid of extensionGroup here.
96 void executeScriptInIsolatedWorld(int worldID, const Vector<ScriptSourceCode >& sources, int extensionGroup, Vector<ScriptValue>* results); 96 void executeScriptInIsolatedWorld(int worldID, const Vector<ScriptSourceCode >& sources, int extensionGroup, Vector<ScriptValue>* results);
97 97
98 // Returns true if argument is a JavaScript URL. 98 // Returns true if argument is a JavaScript URL.
99 bool executeScriptIfJavaScriptURL(const KURL&); 99 bool executeScriptIfJavaScriptURL(const KURL&);
100 100
101 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::O bject>, int argc, v8::Handle<v8::Value> argv[]); 101 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::O bject>, int argc, v8::Handle<v8::Value> argv[]);
102 static v8::Local<v8::Value> callFunction(ExecutionContext*, v8::Handle<v8::F unction>, v8::Handle<v8::Object> receiver, int argc, v8::Handle<v8::Value> args[ ], v8::Isolate*); 102 static v8::Local<v8::Value> callFunction(ExecutionContext*, v8::Handle<v8::F unction>, v8::Handle<v8::Object> receiver, int argc, v8::Handle<v8::Value> info[ ], v8::Isolate*);
103 103
104 // Returns true if the current world is isolated, and has its own Content 104 // Returns true if the current world is isolated, and has its own Content
105 // Security Policy. In this case, the policy of the main world should be 105 // Security Policy. In this case, the policy of the main world should be
106 // ignored when evaluating resources injected into the DOM. 106 // ignored when evaluating resources injected into the DOM.
107 bool shouldBypassMainWorldContentSecurityPolicy(); 107 bool shouldBypassMainWorldContentSecurityPolicy();
108 108
109 // Creates a property of the global object of a frame. 109 // Creates a property of the global object of a frame.
110 void bindToWindowObject(Frame*, const String& key, NPObject*); 110 void bindToWindowObject(Frame*, const String& key, NPObject*);
111 111
112 PassRefPtr<SharedPersistent<v8::Object> > createPluginWrapper(Widget*); 112 PassRefPtr<SharedPersistent<v8::Object> > createPluginWrapper(Widget*);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // invalidate all sub-objects which are associated with that plugin. 177 // invalidate all sub-objects which are associated with that plugin.
178 // The frame keeps a NPObject reference for each item on the list. 178 // The frame keeps a NPObject reference for each item on the list.
179 PluginObjectMap m_pluginObjects; 179 PluginObjectMap m_pluginObjects;
180 180
181 NPObject* m_windowScriptNPObject; 181 NPObject* m_windowScriptNPObject;
182 }; 182 };
183 183
184 } // namespace WebCore 184 } // namespace WebCore
185 185
186 #endif // ScriptController_h 186 #endif // ScriptController_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/ScheduledAction.cpp ('k') | Source/bindings/v8/ScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698