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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SimpleHistoryManager.js

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 /** 30 /**
31 * @interface 31 * @interface
32 */ 32 */
33 Sources.HistoryEntry = function() {}; 33 Sources.HistoryEntry = function() {};
34 34
35 Sources.HistoryEntry.prototype = { 35 Sources.HistoryEntry.prototype = {
36 /** 36 /**
37 * @return {boolean} 37 * @return {boolean}
38 */ 38 */
39 valid: function() {}, 39 valid() {},
40 40
41 reveal: function() {} 41 reveal() {}
42 }; 42 };
43 43
44 /** 44 /**
45 * @unrestricted 45 * @unrestricted
46 */ 46 */
47 Sources.SimpleHistoryManager = class { 47 Sources.SimpleHistoryManager = class {
48 /** 48 /**
49 * @param {number} historyDepth 49 * @param {number} historyDepth
50 */ 50 */
51 constructor(historyDepth) { 51 constructor(historyDepth) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return false; 149 return false;
150 150
151 this.readOnlyLock(); 151 this.readOnlyLock();
152 this._entries[revealIndex].reveal(); 152 this._entries[revealIndex].reveal();
153 this.releaseReadOnlyLock(); 153 this.releaseReadOnlyLock();
154 154
155 this._activeEntryIndex = revealIndex; 155 this._activeEntryIndex = revealIndex;
156 return true; 156 return true;
157 } 157 }
158 }; 158 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698