Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/GlobalJsObject.cpp

Issue 10008015: Move global JS object creation to a separate namespace (Closed)
Patch Set: Created April 3, 2013, 12:33 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/GlobalJsObject.h ('k') | src/JsEngine.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "GlobalJsObject.h"
2
3 using namespace AdblockPlus;
4
5 v8::Handle<v8::ObjectTemplate> GlobalJsObject::Create(
6 ErrorCallback& errorCallback)
7 {
8 v8::HandleScope handleScope;
9 const v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New();
10 const v8::Handle<v8::ObjectTemplate> console =
11 AdblockPlus::ConsoleJsObject::Create(errorCallback);
12 global->Set(v8::String::New("console"), console);
13 return handleScope.Close(global);
14 }
OLDNEW
« no previous file with comments | « src/GlobalJsObject.h ('k') | src/JsEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld