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

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

Issue 477153005: DevTools: adopt existing Timeline tests for tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 this._historyIterator = -1; 74 this._historyIterator = -1;
75 document.addEventListener("keydown", this._keyDown.bind(this), false); 75 document.addEventListener("keydown", this._keyDown.bind(this), false);
76 document.addEventListener("keypress", this._keyPress.bind(this), false); 76 document.addEventListener("keypress", this._keyPress.bind(this), false);
77 this._panelDescriptors = {}; 77 this._panelDescriptors = {};
78 78
79 // Windows and Mac have two different definitions of '[' and ']', so accept both of each. 79 // Windows and Mac have two different definitions of '[' and ']', so accept both of each.
80 this._openBracketIdentifiers = ["U+005B", "U+00DB"].keySet(); 80 this._openBracketIdentifiers = ["U+005B", "U+00DB"].keySet();
81 this._closeBracketIdentifiers = ["U+005D", "U+00DD"].keySet(); 81 this._closeBracketIdentifiers = ["U+005D", "U+00DD"].keySet();
82 this._lastActivePanelSetting = WebInspector.settings.createSetting("lastActi vePanel", "elements"); 82 this._lastActivePanelSetting = WebInspector.settings.createSetting("lastActi vePanel", "elements");
83 83
84 // FIXME(399531): enable timelineOnTraceEvents experiment when running layou t tests under inspector/tracing/. This code
85 // should be removed along with the old Timeline implementation once we move tracing based Timeline out of experimental.
86 if ("tracing" === this._lastActivePanelSetting.get()) {
87 WebInspector.experimentsSettings.timelineOnTraceEvents.setEnabled(true);
88 this._lastActivePanelSetting.set("timeline");
89 }
90
84 this._loadPanelDesciptors(); 91 this._loadPanelDesciptors();
85 92
86 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event s.ShowConsole, this.showPanel.bind(this, "console")); 93 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event s.ShowConsole, this.showPanel.bind(this, "console"));
87 }; 94 };
88 95
89 WebInspector.InspectorView.prototype = { 96 WebInspector.InspectorView.prototype = {
90 _loadPanelDesciptors: function() 97 _loadPanelDesciptors: function()
91 { 98 {
92 WebInspector.startBatchUpdate(); 99 WebInspector.startBatchUpdate();
93 self.runtime.extensions(WebInspector.Panel).forEach(processPanelExtensio ns.bind(this)); 100 self.runtime.extensions(WebInspector.Panel).forEach(processPanelExtensio ns.bind(this));
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 463
457 WebInspector.InspectorView.ToggleDrawerButtonProvider.prototype = { 464 WebInspector.InspectorView.ToggleDrawerButtonProvider.prototype = {
458 /** 465 /**
459 * @return {?WebInspector.StatusBarItem} 466 * @return {?WebInspector.StatusBarItem}
460 */ 467 */
461 item: function() 468 item: function()
462 { 469 {
463 return WebInspector.inspectorView._drawer.toggleButton(); 470 return WebInspector.inspectorView._drawer.toggleButton();
464 } 471 }
465 } 472 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698