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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 { 49 {
50 return this._id; 50 return this._id;
51 }, 51 },
52 52
53 /** @return {string} */ 53 /** @return {string} */
54 get name() 54 get name()
55 { 55 {
56 return this._name; 56 return this._name;
57 }, 57 },
58 58
59 /** @param {string} x */
59 set name(x) 60 set name(x)
60 { 61 {
61 this._name = x; 62 this._name = x;
62 }, 63 },
63 64
64 /** @return {string} */ 65 /** @return {string} */
65 get version() 66 get version()
66 { 67 {
67 return this._version; 68 return this._version;
68 }, 69 },
69 70
71 /** @param {string} x */
70 set version(x) 72 set version(x)
71 { 73 {
72 this._version = x; 74 this._version = x;
73 }, 75 },
74 76
75 /** @return {string} */ 77 /** @return {string} */
76 get domain() 78 get domain()
77 { 79 {
78 return this._domain; 80 return this._domain;
79 }, 81 },
80 82
83 /** @param {string} x */
81 set domain(x) 84 set domain(x)
82 { 85 {
83 this._domain = x; 86 this._domain = x;
84 }, 87 },
85 88
86 /** 89 /**
87 * @param {function(!Array.<string>)} callback 90 * @param {function(!Array.<string>)} callback
88 */ 91 */
89 getTableNames: function(callback) 92 getTableNames: function(callback)
90 { 93 {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 * @param {!WebInspector.Target} target 228 * @param {!WebInspector.Target} target
226 * @return {!WebInspector.DatabaseModel} 229 * @return {!WebInspector.DatabaseModel}
227 */ 230 */
228 WebInspector.DatabaseModel.fromTarget = function(target) 231 WebInspector.DatabaseModel.fromTarget = function(target)
229 { 232 {
230 if (!target[WebInspector.DatabaseModel._symbol]) 233 if (!target[WebInspector.DatabaseModel._symbol])
231 target[WebInspector.DatabaseModel._symbol] = new WebInspector.DatabaseMo del(target); 234 target[WebInspector.DatabaseModel._symbol] = new WebInspector.DatabaseMo del(target);
232 235
233 return target[WebInspector.DatabaseModel._symbol]; 236 return target[WebInspector.DatabaseModel._symbol];
234 }; 237 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698