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

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: Close drawer only in overlay mode. 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 08a0c89b439f3d0404d8881a48202aa36c984a00..1a082d94ab77c252fe9de39a92bf92a693e7031d 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) {
« Source/devtools/front_end/ScriptsPanel.js ('K') | « Source/devtools/front_end/inspector.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698