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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js

Issue 2678623002: DevTools: pass title when creating settings (Closed)
Patch Set: ac Created 3 years, 10 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 Common.UIString('Hide overview')); 163 Common.UIString('Hide overview'));
164 this._panelToolbar.appendToolbarItem(showOverviewButton); 164 this._panelToolbar.appendToolbarItem(showOverviewButton);
165 this._panelToolbar.appendSeparator(); 165 this._panelToolbar.appendSeparator();
166 166
167 this._preserveLogCheckbox = new UI.ToolbarCheckbox( 167 this._preserveLogCheckbox = new UI.ToolbarCheckbox(
168 Common.UIString('Preserve log'), Common.UIString('Do not clear log on pa ge reload / navigation')); 168 Common.UIString('Preserve log'), Common.UIString('Do not clear log on pa ge reload / navigation'));
169 this._preserveLogCheckbox.inputElement.addEventListener( 169 this._preserveLogCheckbox.inputElement.addEventListener(
170 'change', this._onPreserveLogCheckboxChanged.bind(this), false); 170 'change', this._onPreserveLogCheckboxChanged.bind(this), false);
171 this._panelToolbar.appendToolbarItem(this._preserveLogCheckbox); 171 this._panelToolbar.appendToolbarItem(this._preserveLogCheckbox);
172 172
173 this._disableCacheCheckbox = new UI.ToolbarCheckbox( 173 this._disableCacheCheckbox = new UI.ToolbarSettingCheckbox(
174 Common.UIString('Disable cache'), Common.UIString('Disable cache (while DevTools is open)'), 174 Common.moduleSetting('cacheDisabled'), Common.UIString('Disable cache (w hile DevTools is open)'),
175 Common.moduleSetting('cacheDisabled')); 175 Common.UIString('Disable cache'));
176 this._panelToolbar.appendToolbarItem(this._disableCacheCheckbox); 176 this._panelToolbar.appendToolbarItem(this._disableCacheCheckbox);
177 177
178 this._panelToolbar.appendSeparator(); 178 this._panelToolbar.appendSeparator();
179 this._panelToolbar.appendToolbarItem(this._createBlockedURLsButton()); 179 this._panelToolbar.appendToolbarItem(this._createBlockedURLsButton());
180 this._panelToolbar.appendToolbarItem(NetworkConditions.NetworkConditionsSele ctor.createOfflineToolbarCheckbox()); 180 this._panelToolbar.appendToolbarItem(NetworkConditions.NetworkConditionsSele ctor.createOfflineToolbarCheckbox());
181 this._panelToolbar.appendToolbarItem(this._createNetworkConditionsSelect()); 181 this._panelToolbar.appendToolbarItem(this._createNetworkConditionsSelect());
182 this._panelToolbar.appendToolbarItem(new UI.ToolbarItem(this._progressBarCon tainer)); 182 this._panelToolbar.appendToolbarItem(new UI.ToolbarItem(this._progressBarCon tainer));
183 } 183 }
184 184
185 /** 185 /**
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 * @param {string} actionId 726 * @param {string} actionId
727 * @return {boolean} 727 * @return {boolean}
728 */ 728 */
729 handleAction(context, actionId) { 729 handleAction(context, actionId) {
730 var panel = UI.context.flavor(Network.NetworkPanel); 730 var panel = UI.context.flavor(Network.NetworkPanel);
731 console.assert(panel && panel instanceof Network.NetworkPanel); 731 console.assert(panel && panel instanceof Network.NetworkPanel);
732 panel._toggleRecording(); 732 panel._toggleRecording();
733 return true; 733 return true;
734 } 734 }
735 }; 735 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698