Index: webkit/extensions/v8/playback_extension.cc |
=================================================================== |
--- webkit/extensions/v8/playback_extension.cc (revision 0) |
+++ webkit/extensions/v8/playback_extension.cc (working copy) |
@@ -2,30 +2,29 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "config.h" |
-#include "Playback.h" |
+#include "webkit/extensions/v8/playback_extension.h" |
-namespace WebCore { |
+namespace extensions_v8 { |
const char* kPlaybackExtensionName = "v8/PlaybackMode"; |
v8::Extension* PlaybackExtension::Get() { |
- v8::Extension* extension = new v8::Extension( |
- kPlaybackExtensionName, |
- "(function () {" |
- " var orig_date = Date;" |
- " Math.random = function() {" |
- " return 0.5;" |
- " };" |
- " Date.__proto__.now = function() {" |
- " return new orig_date(1204251968254);" |
- " };" |
- " Date = function() {" |
- " return Date.now();" |
- " };" |
- "})()"); |
+ v8::Extension* extension = new v8::Extension( |
+ kPlaybackExtensionName, |
+ "(function () {" |
+ " var orig_date = Date;" |
+ " Math.random = function() {" |
+ " return 0.5;" |
+ " };" |
+ " Date.__proto__.now = function() {" |
+ " return new orig_date(1204251968254);" |
+ " };" |
+ " Date = function() {" |
+ " return Date.now();" |
+ " };" |
+ "})()"); |
return extension; |
} |
-} |
+} // namespace extensions_v8 |
Property changes on: webkit\extensions\v8\playback_extension.cc |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |