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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/DatabaseModel.js

Issue 1761243002: [DevTools] Fix compile errors before closure compiler roll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prepare-bindings-module
Patch Set: Created 4 years, 9 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 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 this._agent.enable(); 158 this._agent.enable();
159 this._enabled = true; 159 this._enabled = true;
160 }, 160 },
161 161
162 /** 162 /**
163 * @return {!Array.<!WebInspector.Database>} 163 * @return {!Array.<!WebInspector.Database>}
164 */ 164 */
165 databases: function() 165 databases: function()
166 { 166 {
167 var result = []; 167 var result = [];
168 for (var databaseId in this._databases) 168 for (var database of this._databases)
169 result.push(this._databases[databaseId]); 169 result.push(database);
170 return result; 170 return result;
171 }, 171 },
172 172
173 /** 173 /**
174 * @param {!WebInspector.Database} database 174 * @param {!WebInspector.Database} database
175 */ 175 */
176 _addDatabase: function(database) 176 _addDatabase: function(database)
177 { 177 {
178 this._databases.push(database); 178 this._databases.push(database);
179 this.dispatchEventToListeners(WebInspector.DatabaseModel.Events.Database Added, database); 179 this.dispatchEventToListeners(WebInspector.DatabaseModel.Events.Database Added, database);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 /** 212 /**
213 * @param {!WebInspector.Target} target 213 * @param {!WebInspector.Target} target
214 * @return {!WebInspector.DatabaseModel} 214 * @return {!WebInspector.DatabaseModel}
215 */ 215 */
216 WebInspector.DatabaseModel.fromTarget = function(target) 216 WebInspector.DatabaseModel.fromTarget = function(target)
217 { 217 {
218 if (!target[WebInspector.DatabaseModel._symbol]) 218 if (!target[WebInspector.DatabaseModel._symbol])
219 target[WebInspector.DatabaseModel._symbol] = new WebInspector.DatabaseMo del(target); 219 target[WebInspector.DatabaseModel._symbol] = new WebInspector.DatabaseMo del(target);
220 220
221 return target[WebInspector.DatabaseModel._symbol]; 221 return target[WebInspector.DatabaseModel._symbol];
222 } 222 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698