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

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

Issue 214523004: Persist filter bar state. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | Source/devtools/front_end/FilterBar.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 this._filterBar = new WebInspector.FilterBar(); 63 this._filterBar = new WebInspector.FilterBar();
64 64
65 var statusBarElement = this._contentsElement.createChild("div", "console-sta tus-bar"); 65 var statusBarElement = this._contentsElement.createChild("div", "console-sta tus-bar");
66 statusBarElement.appendChild(this._clearConsoleButton.element); 66 statusBarElement.appendChild(this._clearConsoleButton.element);
67 statusBarElement.appendChild(this._filterBar.filterButton().element); 67 statusBarElement.appendChild(this._filterBar.filterButton().element);
68 statusBarElement.appendChild(this._executionContextSelector.element); 68 statusBarElement.appendChild(this._executionContextSelector.element);
69 69
70 this._filtersContainer = this._contentsElement.createChild("div", "console-f ilters-header hidden"); 70 this._filtersContainer = this._contentsElement.createChild("div", "console-f ilters-header hidden");
71 this._filtersContainer.appendChild(this._filterBar.filtersElement()); 71 this._filtersContainer.appendChild(this._filterBar.filtersElement());
72 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersToggle d, this._onFiltersToggled, this); 72 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersToggle d, this._onFiltersToggled, this);
73 this._filterBar.setName("consoleView");
73 this._filter.addFilters(this._filterBar); 74 this._filter.addFilters(this._filterBar);
74 75
75 this.messagesElement = document.createElement("div"); 76 this.messagesElement = document.createElement("div");
76 this.messagesElement.id = "console-messages"; 77 this.messagesElement.id = "console-messages";
77 this.messagesElement.className = "monospace"; 78 this.messagesElement.className = "monospace";
78 this.messagesElement.addEventListener("click", this._messagesClicked.bind(th is), true); 79 this.messagesElement.addEventListener("click", this._messagesClicked.bind(th is), true);
79 this._contentsElement.appendChild(this.messagesElement); 80 this._contentsElement.appendChild(this.messagesElement);
80 this._scrolledToBottom = true; 81 this._scrolledToBottom = true;
81 82
82 this.promptElement = document.createElement("div"); 83 this.promptElement = document.createElement("div");
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = { 1193 WebInspector.ConsoleView.ShowConsoleActionDelegate.prototype = {
1193 /** 1194 /**
1194 * @return {boolean} 1195 * @return {boolean}
1195 */ 1196 */
1196 handleAction: function() 1197 handleAction: function()
1197 { 1198 {
1198 WebInspector.console.show(); 1199 WebInspector.console.show();
1199 return true; 1200 return true;
1200 } 1201 }
1201 } 1202 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/FilterBar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698