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

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

Issue 1433953002: Implement a ShowSecurityPanel() call in the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-implement showConsole using showPanel. Created 5 years, 1 month 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 (function(window) { 5 (function(window) {
6 6
7 // DevToolsAPI ---------------------------------------------------------------- 7 // DevToolsAPI ----------------------------------------------------------------
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 }, 267 },
268 268
269 /** 269 /**
270 * @param {boolean} useSoftMenu 270 * @param {boolean} useSoftMenu
271 */ 271 */
272 setUseSoftMenu: function(useSoftMenu) 272 setUseSoftMenu: function(useSoftMenu)
273 { 273 {
274 this._dispatchOnInspectorFrontendAPI("setUseSoftMenu", [useSoftMenu]); 274 this._dispatchOnInspectorFrontendAPI("setUseSoftMenu", [useSoftMenu]);
275 }, 275 },
276 276
277 showConsole: function() 277 /**
278 * @param {string} panelName
279 */
280 showPanel: function(panelName)
278 { 281 {
279 this._dispatchOnInspectorFrontendAPI("showConsole", []); 282 this._dispatchOnInspectorFrontendAPI("showPanel", [panelName]);
280 }, 283 },
281 284
282 /** 285 /**
283 * @param {number} id 286 * @param {number} id
284 * @param {string} chunk 287 * @param {string} chunk
285 */ 288 */
286 streamWrite: function(id, chunk) 289 streamWrite: function(id, chunk)
287 { 290 {
288 this._dispatchOnInspectorFrontendAPI("streamWrite", [id, chunk]); 291 this._dispatchOnInspectorFrontendAPI("streamWrite", [id, chunk]);
289 }, 292 },
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 uiTests.testSuiteReady = function(testSuiteConstructor) 930 uiTests.testSuiteReady = function(testSuiteConstructor)
928 { 931 {
929 uiTests._testSuite = testSuiteConstructor(window.domAutomationController ); 932 uiTests._testSuite = testSuiteConstructor(window.domAutomationController );
930 uiTests._dispatchIfReady(); 933 uiTests._dispatchIfReady();
931 }; 934 };
932 935
933 window.uiTests = uiTests; 936 window.uiTests = uiTests;
934 } 937 }
935 938
936 })(window); 939 })(window);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698