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

Unified Diff: Source/devtools/front_end/emulation/ResponsiveDesignView.js

Issue 1271193002: Devtools UI: Behavior and UI update to tooltips (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/SplitWidget.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/emulation/ResponsiveDesignView.js
diff --git a/Source/devtools/front_end/emulation/ResponsiveDesignView.js b/Source/devtools/front_end/emulation/ResponsiveDesignView.js
index 8cde44ed5d909bae1065dfd03f449d4bdf2a54f8..29b10378f89c88a1845d42b02a69a1dc084977b1 100644
--- a/Source/devtools/front_end/emulation/ResponsiveDesignView.js
+++ b/Source/devtools/front_end/emulation/ResponsiveDesignView.js
@@ -95,7 +95,7 @@ WebInspector.ResponsiveDesignView.prototype = {
this._decreasePageScaleButton.addEventListener("click", this._pageScaleButtonClicked.bind(this, false), false);
this._pageScaleLabel = this._pageScaleContainer.createChild("label", "responsive-design-page-scale-label");
- WebInspector.Tooltip.install(this._pageScaleLabel, WebInspector.UIString("Shift + drag to change page scale"), WebInspector.Tooltip.AlignmentOverride.Right);
+ WebInspector.Tooltip.install(this._pageScaleLabel, WebInspector.UIString("Shift + drag to change page scale"));
this._pageScaleLabel.addEventListener("dblclick", this._resetPageScale.bind(this), false);
this._increasePageScaleButton = this._pageScaleContainer.createChild("button", "responsive-design-page-scale-button responsive-design-page-scale-increase");
@@ -539,9 +539,9 @@ WebInspector.ResponsiveDesignView.prototype = {
if (viewportChanged) {
this._pageScaleLabel.textContent = WebInspector.UIString("%.1f", this._viewport.pageScaleFactor);
- WebInspector.Tooltip.install(this._decreasePageScaleButton, WebInspector.UIString("Scale down (minimum %.1f)", this._viewport.minimumPageScaleFactor), WebInspector.Tooltip.AlignmentOverride.Right);
+ WebInspector.Tooltip.install(this._decreasePageScaleButton, WebInspector.UIString("Scale down (minimum %.1f)", this._viewport.minimumPageScaleFactor));
this._decreasePageScaleButton.disabled = this._viewport.pageScaleFactor <= this._viewport.minimumPageScaleFactor;
- WebInspector.Tooltip.install(this._increasePageScaleButton, WebInspector.UIString("Scale up (maximum %.1f)", this._viewport.maximumPageScaleFactor), WebInspector.Tooltip.AlignmentOverride.Right);
+ WebInspector.Tooltip.install(this._increasePageScaleButton, WebInspector.UIString("Scale up (maximum %.1f)", this._viewport.maximumPageScaleFactor));
this._increasePageScaleButton.disabled = this._viewport.pageScaleFactor >= this._viewport.maximumPageScaleFactor;
}
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/SplitWidget.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698