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

Unified Diff: third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js

Issue 2142303002: Revert of DevTools: automatically populate 'More tools' submenu with the drawer views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
diff --git a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
index 6db738a7cc093b0fba9436b158030d3b0871b9f8..16653bc5deb123d06bd1c90e317d1f74103c7749 100644
--- a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
+++ b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
@@ -758,3 +758,29 @@
return new WebInspector.AnimationTimeline.StepTimingFunction(parseInt(match[1], 10), match[2]);
return null;
}
+
+/**
+ * @constructor
+ * @implements {WebInspector.ToolbarItem.Provider}
+ */
+WebInspector.AnimationTimeline.ButtonProvider = function()
+{
+ this._button = new WebInspector.ToolbarButton(WebInspector.UIString("Animations"), "animation-toolbar-item");
+ this._button.addEventListener("click", this._clicked, this);
+}
+
+WebInspector.AnimationTimeline.ButtonProvider.prototype = {
+ _clicked: function()
+ {
+ WebInspector.inspectorView.showViewInDrawer("animations");
+ },
+
+ /**
+ * @override
+ * @return {!WebInspector.ToolbarItem}
+ */
+ item: function()
+ {
+ return this._button;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698