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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js

Issue 1983323002: [DevTools] Properly update resizer in SourcesPanel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 /** 389 /**
390 * @param {boolean} minimized 390 * @param {boolean} minimized
391 */ 391 */
392 setDrawerMinimized: function(minimized) 392 setDrawerMinimized: function(minimized)
393 { 393 {
394 this._drawerSplitWidget.setSidebarMinimized(minimized); 394 this._drawerSplitWidget.setSidebarMinimized(minimized);
395 this._drawerSplitWidget.setResizable(!minimized); 395 this._drawerSplitWidget.setResizable(!minimized);
396 }, 396 },
397 397
398 /** 398 /**
399 * @return {boolean}
400 */
401 isDrawerMinimized: function()
402 {
403 return this._drawerSplitWidget.isSidebarMinimized();
404 },
405
406 /**
399 * @override 407 * @override
400 * @return {!Element} 408 * @return {!Element}
401 */ 409 */
402 defaultFocusedElement: function() 410 defaultFocusedElement: function()
403 { 411 {
404 return this._currentPanel ? this._currentPanel.defaultFocusedElement() : null; 412 return this._currentPanel ? this._currentPanel.defaultFocusedElement() : null;
405 }, 413 },
406 414
407 _keyPress: function(event) 415 _keyPress: function(event)
408 { 416 {
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 */ 600 */
593 handleAction: function(context, actionId) 601 handleAction: function(context, actionId)
594 { 602 {
595 if (WebInspector.inspectorView.drawerVisible()) 603 if (WebInspector.inspectorView.drawerVisible())
596 WebInspector.inspectorView.closeDrawer(); 604 WebInspector.inspectorView.closeDrawer();
597 else 605 else
598 WebInspector.inspectorView.showDrawer(); 606 WebInspector.inspectorView.showDrawer();
599 return true; 607 return true;
600 } 608 }
601 } 609 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698