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

Side by Side Diff: Source/bindings/core/v8/PrivateScriptRunner.js

Issue 394773003: Implement HTMLMarqueeElement's animation in private scripts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | « no previous file | Source/core/core.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 "use strict"; 5 "use strict";
6 6
7 // This list must be in sync with the enum in ExceptionCode.h. The order matter s. 7 // This list must be in sync with the enum in ExceptionCode.h. The order matter s.
8 var domExceptions = [ 8 var domExceptions = [
9 "IndexSizeError", 9 "IndexSizeError",
10 "HierarchyRequestError", 10 "HierarchyRequestError",
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 { 73 {
74 this.code = domExceptionCode[code] || 0; 74 this.code = domExceptionCode[code] || 0;
75 this.message = message; 75 this.message = message;
76 this.name = "DOMExceptionInPrivateScript"; 76 this.name = "DOMExceptionInPrivateScript";
77 } 77 }
78 78
79 function privateScriptClass() 79 function privateScriptClass()
80 { 80 {
81 } 81 }
82 82
83 function privateScriptClass()
84 {
85 }
hajimehoshi 2014/08/25 04:32:59 Why are these duplicated definition needed?
haraken 2014/08/25 04:36:43 No needed... I'll remove it shortly.
haraken 2014/08/25 04:38:05 I noticed that the duplication is already removed
86
83 function installClass(className, implementation) 87 function installClass(className, implementation)
84 { 88 {
85 installedClasses[className] = new privateScriptClass(); 89 installedClasses[className] = new privateScriptClass();
86 implementation(window, installedClasses[className]); 90 implementation(window, installedClasses[className]);
87 } 91 }
88 92
89 init(); 93 init();
90 94
91 // This line must be the last statement of this JS file. 95 // This line must be the last statement of this JS file.
92 // A parenthesis is needed, because the caller of this script (PrivateScriptRunn er.cpp) 96 // A parenthesis is needed, because the caller of this script (PrivateScriptRunn er.cpp)
93 // is depending on the completion value of this script. 97 // is depending on the completion value of this script.
94 (installedClasses); 98 (installedClasses);
OLDNEW
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698