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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 this._removeDrawerView(); 143 this._removeDrawerView();
144 144
145 // Once drawer is closed console should be shown if it was shown bef ore current view replaced it in drawer. 145 // Once drawer is closed console should be shown if it was shown bef ore current view replaced it in drawer.
146 if (this._consoleWasShown) 146 if (this._consoleWasShown)
147 this.showConsole(); 147 this.showConsole();
148 else 148 else
149 this.drawer.hide(WebInspector.Drawer.AnimationType.Immediately); 149 this.drawer.hide(WebInspector.Drawer.AnimationType.Immediately);
150 } 150 }
151 }, 151 },
152 152
153 /**
154 * @param {WebInspector.Drawer.AnimationType=} animationType
155 */
156 closeDrawer : function(animationType)
157 {
158 if (WebInspector.drawer.visible) {
159 if (this._drawerStatusBarHeader) {
160 this._removeDrawerView();
161 delete this._consoleWasShown;
162 this.drawer.hide(animationType);
163 } else if (this.consoleView.isShowing()) {
164 this.closeConsole(animationType);
165 }
166 }
167 },
168
153 _removeDrawerView: function() 169 _removeDrawerView: function()
154 { 170 {
155 if (this._drawerStatusBarHeader) { 171 if (this._drawerStatusBarHeader) {
156 this._drawerStatusBarHeader.removeSelf(); 172 this._drawerStatusBarHeader.removeSelf();
157 if (this._drawerStatusBarHeader.onclose) 173 if (this._drawerStatusBarHeader.onclose)
158 this._drawerStatusBarHeader.onclose(); 174 this._drawerStatusBarHeader.onclose();
159 delete this._drawerStatusBarHeader; 175 delete this._drawerStatusBarHeader;
160 } 176 }
161 }, 177 },
162 178
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 1112
1097 /** 1113 /**
1098 * @return {string} 1114 * @return {string}
1099 */ 1115 */
1100 WebInspector.getSelectionForegroundColor = function() 1116 WebInspector.getSelectionForegroundColor = function()
1101 { 1117 {
1102 return InspectorFrontendHost.getSelectionForegroundColor(); 1118 return InspectorFrontendHost.getSelectionForegroundColor();
1103 } 1119 }
1104 1120
1105 window.DEBUG = true; 1121 window.DEBUG = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698