| OLD | NEW |
| 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 function PrivateScriptController() | 7 function PrivateScriptController() |
| 8 { | 8 { |
| 9 this._installedClasses = {}; | 9 this._installedClasses = {}; |
| 10 this._DOMException = {}; | 10 this._DOMException = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 "PathExistsError", | 56 "PathExistsError", |
| 57 | 57 |
| 58 // SQL | 58 // SQL |
| 59 "SQLDatabaseError", // Naming conflict with DatabaseError class. | 59 "SQLDatabaseError", // Naming conflict with DatabaseError class. |
| 60 | 60 |
| 61 // Web Crypto | 61 // Web Crypto |
| 62 "OperationError", | 62 "OperationError", |
| 63 | 63 |
| 64 // Push API | 64 // Push API |
| 65 "PermissionDeniedError", | 65 "PermissionDeniedError", |
| 66 |
| 67 // Pointer Events |
| 68 "InvalidPointerId", |
| 66 ]; | 69 ]; |
| 67 | 70 |
| 68 // This list must be in sync with the enum in ExceptionCode.h. The order mat
ters. | 71 // This list must be in sync with the enum in ExceptionCode.h. The order mat
ters. |
| 69 var jsErrors = [ | 72 var jsErrors = [ |
| 70 "Error", | 73 "Error", |
| 71 "TypeError", | 74 "TypeError", |
| 72 "RangeError", | 75 "RangeError", |
| 73 "SyntaxError", | 76 "SyntaxError", |
| 74 "ReferenceError", | 77 "ReferenceError", |
| 75 ]; | 78 ]; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 }, | 139 }, |
| 137 } | 140 } |
| 138 | 141 |
| 139 if (typeof window.privateScriptController === 'undefined') | 142 if (typeof window.privateScriptController === 'undefined') |
| 140 window.privateScriptController = new PrivateScriptController(); | 143 window.privateScriptController = new PrivateScriptController(); |
| 141 | 144 |
| 142 // This line must be the last statement of this JS file. | 145 // This line must be the last statement of this JS file. |
| 143 // A parenthesis is needed, because the caller of this script (PrivateScriptRunn
er.cpp) | 146 // A parenthesis is needed, because the caller of this script (PrivateScriptRunn
er.cpp) |
| 144 // is depending on the completion value of this script. | 147 // is depending on the completion value of this script. |
| 145 (privateScriptController.installedClasses); | 148 (privateScriptController.installedClasses); |
| OLD | NEW |