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

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

Issue 1939803002: DevTools: mute the node highlight & hide devtools while taking screenshots. (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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 */ 540 */
541 _persistPanelOrder: function(event) 541 _persistPanelOrder: function(event)
542 { 542 {
543 var tabs = /** @type {!Array.<!WebInspector.TabbedPaneTab>} */(event.dat a); 543 var tabs = /** @type {!Array.<!WebInspector.TabbedPaneTab>} */(event.dat a);
544 var tabOrders = this._tabOrderSetting.get(); 544 var tabOrders = this._tabOrderSetting.get();
545 for (var i = 0; i < tabs.length; i++) 545 for (var i = 0; i < tabs.length; i++)
546 tabOrders[tabs[i].id] = (i + 1) * 10; 546 tabOrders[tabs[i].id] = (i + 1) * 10;
547 this._tabOrderSetting.set(tabOrders); 547 this._tabOrderSetting.set(tabOrders);
548 }, 548 },
549 549
550 /**
551 * @param {!WebInspector.SplitWidget} splitWidget
552 */
553 setOwnerSplit: function(splitWidget)
554 {
555 this._ownerSplitWidget = splitWidget;
556 },
557
558 minimize: function()
559 {
560 if (this._ownerSplitWidget)
561 this._ownerSplitWidget.setSidebarMinimized(true);
562 },
563
564 restore: function()
565 {
566 if (this._ownerSplitWidget)
567 this._ownerSplitWidget.setSidebarMinimized(false);
568 },
569
550 __proto__: WebInspector.VBox.prototype 570 __proto__: WebInspector.VBox.prototype
551 }; 571 };
552 572
553 /** 573 /**
554 * @type {!WebInspector.InspectorView} 574 * @type {!WebInspector.InspectorView}
555 */ 575 */
556 WebInspector.inspectorView; 576 WebInspector.inspectorView;
557 577
558 /** 578 /**
559 * @constructor 579 * @constructor
(...skipping 12 matching lines...) Expand all
572 */ 592 */
573 handleAction: function(context, actionId) 593 handleAction: function(context, actionId)
574 { 594 {
575 if (WebInspector.inspectorView.drawerVisible()) 595 if (WebInspector.inspectorView.drawerVisible())
576 WebInspector.inspectorView.closeDrawer(); 596 WebInspector.inspectorView.closeDrawer();
577 else 597 else
578 WebInspector.inspectorView.showDrawer(); 598 WebInspector.inspectorView.showDrawer();
579 return true; 599 return true;
580 } 600 }
581 } 601 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698