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

Side by Side Diff: Source/devtools/front_end/components/InspectorView.js

Issue 311193002: DevTools: Implement debugger pause-resume through an action (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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) 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 }, 238 },
239 239
240 /** 240 /**
241 * @param {!WebInspector.Panel} x 241 * @param {!WebInspector.Panel} x
242 */ 242 */
243 setCurrentPanel: function(x) 243 setCurrentPanel: function(x)
244 { 244 {
245 if (this._currentPanel === x) 245 if (this._currentPanel === x)
246 return; 246 return;
247 247
248 if (this._currentPanel)
249 WebInspector.context.setFlavor(this._currentPanel.constructor, null) ;
248 this._tabbedPane.changeTabView(x.name, x); 250 this._tabbedPane.changeTabView(x.name, x);
249 this._tabbedPane.selectTab(x.name); 251 this._tabbedPane.selectTab(x.name);
252 WebInspector.context.setFlavor(x.constructor, x);
250 }, 253 },
251 254
252 /** 255 /**
253 * @param {string} id 256 * @param {string} id
254 */ 257 */
255 closeViewInDrawer: function(id) 258 closeViewInDrawer: function(id)
256 { 259 {
257 this._drawer.closeView(id); 260 this._drawer.closeView(id);
258 }, 261 },
259 262
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 window.addEventListener("scroll", this._onScrollBound, false); 553 window.addEventListener("scroll", this._onScrollBound, false);
551 else 554 else
552 window.removeEventListener("scroll", this._onScrollBound, false); 555 window.removeEventListener("scroll", this._onScrollBound, false);
553 556
554 WebInspector.VBox.prototype.doResize.call(this); 557 WebInspector.VBox.prototype.doResize.call(this);
555 this._onScroll(); 558 this._onScroll();
556 }, 559 },
557 560
558 __proto__: WebInspector.VBox.prototype 561 __proto__: WebInspector.VBox.prototype
559 }; 562 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698