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

Unified Diff: Source/devtools/front_end/ui/StatusBarButton.js

Issue 658403002: DevTools: Support regex search and case sensitive search in sources panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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: Source/devtools/front_end/ui/StatusBarButton.js
diff --git a/Source/devtools/front_end/ui/StatusBarButton.js b/Source/devtools/front_end/ui/StatusBarButton.js
index 95fee0cf3291cec8d6f8496bdb62da66849e831e..a3ea2c7408bb84dd61e7a0f2b091e6aa71ffc9a4 100644
--- a/Source/devtools/front_end/ui/StatusBarButton.js
+++ b/Source/devtools/front_end/ui/StatusBarButton.js
@@ -236,7 +236,7 @@ WebInspector.StatusBarInput.prototype = {
* @param {string} className
* @param {number=} states
*/
-WebInspector.StatusBarButton = function(title, className, states)
+WebInspector.StatusBarButtonBase = function(title, className, states)
{
WebInspector.StatusBarItem.call(this, "button");
this.element.className = className + " status-bar-item";
@@ -245,9 +245,6 @@ WebInspector.StatusBarButton = function(title, className, states)
this._longClickController.addEventListener(WebInspector.LongClickController.Events.LongClick, this._onLongClick.bind(this));
this._longClickController.addEventListener(WebInspector.LongClickController.Events.LongPress, this._onLongPress.bind(this));
- this.glyph = this.element.createChild("div", "glyph");
- this.glyphShadow = this.element.createChild("div", "glyph shadow");
-
this.states = states;
if (!states)
this.states = 2;
@@ -261,7 +258,7 @@ WebInspector.StatusBarButton = function(title, className, states)
this.className = className;
}
-WebInspector.StatusBarButton.prototype = {
+WebInspector.StatusBarButtonBase.prototype = {
/**
* @param {!WebInspector.Event} event
*/
@@ -466,6 +463,44 @@ WebInspector.StatusBarButton.prototype = {
}
/**
+ * @constructor
+ * @extends {WebInspector.StatusBarButtonBase}
+ * @param {string} title
+ * @param {string} className
+ * @param {number=} states
+ */
+WebInspector.StatusBarButton = function(title, className, states)
+{
+ WebInspector.StatusBarButtonBase.call(this, title, className, states);
+
+ this.element.createChild("div", "glyph");
aandrey 2014/10/18 13:12:36 did you really mean to nuke "glyph shadow" ?
+}
+
+WebInspector.StatusBarButton.prototype = {
+ __proto__: WebInspector.StatusBarButtonBase.prototype
+}
+
+/**
+ * @constructor
+ * @extends {WebInspector.StatusBarButtonBase}
+ * @param {string} title
+ * @param {string} className
+ * @param {string} text
+ * @param {number=} states
+ */
+WebInspector.StatusBarTextButton = function(title, className, text, states)
+{
+ WebInspector.StatusBarButtonBase.call(this, title, className, states);
+
+ this._textElement = this.element.createChild("div", "status-bar-button-text");
+ this._textElement.textContent = text;
+}
+
+WebInspector.StatusBarTextButton.prototype = {
+ __proto__: WebInspector.StatusBarButtonBase.prototype
+}
+
+/**
* @interface
*/
WebInspector.StatusBarItem.Provider = function()

Powered by Google App Engine
This is Rietveld 408576698