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

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

Issue 1635863006: Pointerevent capture APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 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
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 ];
76 79
77 var code = 1; 80 var code = 1;
78 domExceptions.forEach(function (exception) { 81 domExceptions.forEach(function (exception) {
79 this._DOMException[exception] = code; 82 this._DOMException[exception] = code;
80 ++code; 83 ++code;
mustaq 2016/02/06 04:36:31 Curious: any clue why DomException.cpp |code| does
Navid Zolghadr 2016/02/08 15:58:42 Which part of it doesn't match with these? I can't
81 }.bind(this)); 84 }.bind(this));
82 85
83 var code = 1000; 86 var code = 1000;
84 jsErrors.forEach(function (exception) { 87 jsErrors.forEach(function (exception) {
85 this._JSError[exception] = code; 88 this._JSError[exception] = code;
86 ++code; 89 ++code;
87 }.bind(this)); 90 }.bind(this));
88 } 91 }
89 92
90 PrivateScriptController.prototype = { 93 PrivateScriptController.prototype = {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698