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

Unified Diff: Source/devtools/front_end/inspector.js

Issue 14329024: [DevTools] Close drawer on blur after short timeout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed comments. Created 7 years, 8 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/inspector.js
diff --git a/Source/devtools/front_end/inspector.js b/Source/devtools/front_end/inspector.js
index dc3db8becf1550f4c62b86880c28f91b64d0de8d..f740e4a2e8e890b37387b00b4383aaa478493256 100644
--- a/Source/devtools/front_end/inspector.js
+++ b/Source/devtools/front_end/inspector.js
@@ -150,6 +150,22 @@ var WebInspector = {
}
},
+ /**
+ * @param {WebInspector.Drawer.AnimationType=} animationType
+ */
+ closeDrawer : function(animationType)
+ {
+ if (WebInspector.drawer.visible) {
+ if (this._drawerStatusBarHeader) {
+ this._removeDrawerView();
+ delete this._consoleWasShown;
+ this.drawer.hide(animationType);
+ } else if (this.consoleView.isShowing()) {
+ this.closeConsole(animationType);
+ }
+ }
+ },
+
_removeDrawerView: function()
{
if (this._drawerStatusBarHeader) {

Powered by Google App Engine
This is Rietveld 408576698