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

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

Issue 1678953003: Devtools: Don't clear custom user agent on double click (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | 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 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.NetworkConfigView = function() 9 WebInspector.NetworkConfigView = function()
10 { 10 {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 150 }
151 151
152 function textKeyDown(event) 152 function textKeyDown(event)
153 { 153 {
154 if (isEnterKey(event)) 154 if (isEnterKey(event))
155 textChanged(); 155 textChanged();
156 } 156 }
157 157
158 function textDoubleClicked() 158 function textDoubleClicked()
159 { 159 {
160 if (userAgentSelectElement.selectedIndex === userAgents.length - 1)
161 return;
160 userAgentSelectElement.selectedIndex = userAgents.length - 1; 162 userAgentSelectElement.selectedIndex = userAgents.length - 1;
161 userAgentSelected(); 163 userAgentSelected();
162 } 164 }
163 165
164 function textChanged() 166 function textChanged()
165 { 167 {
166 if (userAgentSetting.get() !== otherUserAgentElement.value) { 168 if (userAgentSetting.get() !== otherUserAgentElement.value) {
167 userAgentSetting.set(otherUserAgentElement.value); 169 userAgentSetting.set(otherUserAgentElement.value);
168 settingChanged(); 170 settingChanged();
169 } 171 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 * @param {!WebInspector.Context} context 224 * @param {!WebInspector.Context} context
223 * @param {string} actionId 225 * @param {string} actionId
224 * @return {boolean} 226 * @return {boolean}
225 */ 227 */
226 handleAction: function(context, actionId) 228 handleAction: function(context, actionId)
227 { 229 {
228 WebInspector.inspectorView.showViewInDrawer("network.config"); 230 WebInspector.inspectorView.showViewInDrawer("network.config");
229 return true; 231 return true;
230 } 232 }
231 } 233 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698