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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js b/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js
index dfaea699a136058eb50f436daff79ec70f9bb68d..b3f40d42015177bbbe6e1656e481e50084bd295a 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js
@@ -584,21 +584,21 @@ UI.ViewportControl.Provider.prototype = {
* @param {number} index
* @return {number}
*/
- fastHeight: function(index) {
+ fastHeight(index) {
return 0;
},
/**
* @return {number}
*/
- itemCount: function() {
+ itemCount() {
return 0;
},
/**
* @return {number}
*/
- minimumRowHeight: function() {
+ minimumRowHeight() {
return 0;
},
@@ -606,7 +606,7 @@ UI.ViewportControl.Provider.prototype = {
* @param {number} index
* @return {?UI.ViewportElement}
*/
- itemElement: function(index) {
+ itemElement(index) {
return null;
}
};
@@ -616,14 +616,14 @@ UI.ViewportControl.Provider.prototype = {
*/
UI.ViewportElement = function() {};
UI.ViewportElement.prototype = {
- willHide: function() {},
+ willHide() {},
- wasShown: function() {},
+ wasShown() {},
/**
* @return {!Element}
*/
- element: function() {},
+ element() {},
};
/**

Powered by Google App Engine
This is Rietveld 408576698