Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 #include <vector> | 1 #include <vector> |
2 #include <stdexcept> | 2 #include <stdexcept> |
3 | 3 |
4 #include "ConsoleJsObject.h" | 4 #include "ConsoleJsObject.h" |
5 #include "FileSystemJsObject.h" | 5 #include "FileSystemJsObject.h" |
6 #include "GlobalJsObject.h" | 6 #include "GlobalJsObject.h" |
7 #include "ConsoleJsObject.h" | 7 #include "ConsoleJsObject.h" |
8 #include "WebRequestJsObject.h" | 8 #include "WebRequestJsObject.h" |
9 #include "Thread.h" | 9 #include "Thread.h" |
10 | 10 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 const v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(); | 97 const v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(); |
98 const v8::Handle<v8::FunctionTemplate> setTimeoutFunction = | 98 const v8::Handle<v8::FunctionTemplate> setTimeoutFunction = |
99 v8::FunctionTemplate::New(SetTimeoutCallback); | 99 v8::FunctionTemplate::New(SetTimeoutCallback); |
100 global->Set(v8::String::New("setTimeout"), setTimeoutFunction); | 100 global->Set(v8::String::New("setTimeout"), setTimeoutFunction); |
101 const v8::Handle<v8::ObjectTemplate> fileSystemObject = | 101 const v8::Handle<v8::ObjectTemplate> fileSystemObject = |
102 FileSystemJsObject::Create(fileSystem); | 102 FileSystemJsObject::Create(fileSystem); |
103 global->Set(v8::String::New("_fileSystem"), fileSystemObject); | 103 global->Set(v8::String::New("_fileSystem"), fileSystemObject); |
104 const v8::Handle<v8::ObjectTemplate> webRequestObject = | 104 const v8::Handle<v8::ObjectTemplate> webRequestObject = |
105 WebRequestJsObject::Create(webRequest); | 105 WebRequestJsObject::Create(webRequest); |
106 global->Set(v8::String::New("_webRequest"), webRequestObject); | 106 global->Set(v8::String::New("_webRequest"), webRequestObject); |
107 const v8::Handle<v8::ObjectTemplate> console = | 107 const v8::Handle<v8::ObjectTemplate> consoleObject = |
Wladimir Palant
2013/04/12 16:10:35
console => consoleObject for consistency?
Felix Dahlke
2013/04/15 03:43:34
Agreed.
| |
108 ConsoleJsObject::Create(errorCallback); | 108 ConsoleJsObject::Create(errorCallback); |
109 global->Set(v8::String::New("console"), console); | 109 global->Set(v8::String::New("console"), consoleObject); |
110 return handleScope.Close(global); | 110 return handleScope.Close(global); |
111 } | 111 } |
LEFT | RIGHT |