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

Side by Side Diff: Source/devtools/front_end/console/ConsoleView.js

Issue 1088093002: Revert of DevTools: allow storing devtools preferences on the browser side. [blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 /** @type {!Array.<!WebInspector.ConsoleViewMessage>} */ 137 /** @type {!Array.<!WebInspector.ConsoleViewMessage>} */
138 this._consoleMessages = []; 138 this._consoleMessages = [];
139 139
140 this._prompt = new WebInspector.TextPromptWithHistory(WebInspector.Execution ContextSelector.completionsForTextPromptInCurrentContext); 140 this._prompt = new WebInspector.TextPromptWithHistory(WebInspector.Execution ContextSelector.completionsForTextPromptInCurrentContext);
141 this._prompt.setSuggestBoxEnabled(true); 141 this._prompt.setSuggestBoxEnabled(true);
142 this._prompt.setAutocompletionTimeout(0); 142 this._prompt.setAutocompletionTimeout(0);
143 this._prompt.renderAsBlock(); 143 this._prompt.renderAsBlock();
144 var proxyElement = this._prompt.attach(this._promptElement); 144 var proxyElement = this._prompt.attach(this._promptElement);
145 proxyElement.addEventListener("keydown", this._promptKeyDown.bind(this), fal se); 145 proxyElement.addEventListener("keydown", this._promptKeyDown.bind(this), fal se);
146 146
147 this._consoleHistorySetting = WebInspector.settings.createLocalSetting("cons oleHistory", []); 147 this._consoleHistorySetting = WebInspector.settings.createSetting("consoleHi story", []);
148 var historyData = this._consoleHistorySetting.get(); 148 var historyData = this._consoleHistorySetting.get();
149 this._prompt.setHistoryData(historyData); 149 this._prompt.setHistoryData(historyData);
150 150
151 this._updateFilterStatus(); 151 this._updateFilterStatus();
152 WebInspector.moduleSetting("consoleTimestampsEnabled").addChangeListener(thi s._consoleTimestampsSettingChanged, this); 152 WebInspector.moduleSetting("consoleTimestampsEnabled").addChangeListener(thi s._consoleTimestampsSettingChanged, this);
153 153
154 this._registerWithMessageSink(); 154 this._registerWithMessageSink();
155 WebInspector.targetManager.observeTargets(this); 155 WebInspector.targetManager.observeTargets(this);
156 WebInspector.targetManager.addModelListener(WebInspector.RuntimeModel, WebIn spector.RuntimeModel.Events.ExecutionContextCreated, this._onExecutionContextCre ated, this); 156 WebInspector.targetManager.addModelListener(WebInspector.RuntimeModel, WebIn spector.RuntimeModel.Events.ExecutionContextCreated, this._onExecutionContextCre ated, this);
157 WebInspector.targetManager.addModelListener(WebInspector.RuntimeModel, WebIn spector.RuntimeModel.Events.ExecutionContextDestroyed, this._onExecutionContextD estroyed, this); 157 WebInspector.targetManager.addModelListener(WebInspector.RuntimeModel, WebIn spector.RuntimeModel.Events.ExecutionContextDestroyed, this._onExecutionContextD estroyed, this);
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 handleAction: function(context, actionId) 1415 handleAction: function(context, actionId)
1416 { 1416 {
1417 WebInspector.console.show(); 1417 WebInspector.console.show();
1418 } 1418 }
1419 } 1419 }
1420 1420
1421 /** 1421 /**
1422 * @typedef {{messageIndex: number, matchIndex: number}} 1422 * @typedef {{messageIndex: number, matchIndex: number}}
1423 */ 1423 */
1424 WebInspector.ConsoleView.RegexMatchRange; 1424 WebInspector.ConsoleView.RegexMatchRange;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698