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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/View.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/View.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/View.js b/third_party/WebKit/Source/devtools/front_end/ui/View.js
index 90a28a55014bee2241b6d61300f601921a0e084b..70e071fd4fcbc601aec04896ed575a180c6ca9d8 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/View.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/View.js
@@ -10,32 +10,32 @@ UI.View.prototype = {
/**
* @return {string}
*/
- viewId: function() {},
+ viewId() {},
/**
* @return {string}
*/
- title: function() {},
+ title() {},
/**
* @return {boolean}
*/
- isCloseable: function() {},
+ isCloseable() {},
/**
* @return {boolean}
*/
- isTransient: function() {},
+ isTransient() {},
/**
* @return {!Promise<!Array<!UI.ToolbarItem>>}
*/
- toolbarItems: function() {},
+ toolbarItems() {},
/**
* @return {!Promise<!UI.Widget>}
*/
- widget: function() {}
+ widget() {}
};
UI.View._symbol = Symbol('view');
@@ -216,30 +216,30 @@ UI.ViewLocation.prototype = {
/**
* @param {string} locationName
*/
- appendApplicableItems: function(locationName) {},
+ appendApplicableItems(locationName) {},
/**
* @param {!UI.View} view
* @param {?UI.View=} insertBefore
*/
- appendView: function(view, insertBefore) {},
+ appendView(view, insertBefore) {},
/**
* @param {!UI.View} view
* @param {?UI.View=} insertBefore
* @return {!Promise}
*/
- showView: function(view, insertBefore) {},
+ showView(view, insertBefore) {},
/**
* @param {!UI.View} view
*/
- removeView: function(view) {},
+ removeView(view) {},
/**
* @return {!UI.Widget}
*/
- widget: function() {}
+ widget() {}
};
/**
@@ -252,9 +252,9 @@ UI.TabbedViewLocation.prototype = {
/**
* @return {!UI.TabbedPane}
*/
- tabbedPane: function() {},
+ tabbedPane() {},
- enableMoreTabsButton: function() {}
+ enableMoreTabsButton() {}
};
/**
@@ -267,7 +267,7 @@ UI.ViewLocationResolver.prototype = {
* @param {string} location
* @return {?UI.ViewLocation}
*/
- resolveLocation: function(location) {}
+ resolveLocation(location) {}
};
/**

Powered by Google App Engine
This is Rietveld 408576698