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

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

Issue 2632553002: [DevTools] Clear local storage (Closed)
Patch Set: [DevTools] Clear local storage Created 3 years, 11 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 119 }
120 120
121 if (!this._cookiesTable) { 121 if (!this._cookiesTable) {
122 this._cookiesTable = 122 this._cookiesTable =
123 new CookieTable.CookiesTable(false, this._update.bind(this), this._ena bleDeleteButton.bind(this)); 123 new CookieTable.CookiesTable(false, this._update.bind(this), this._ena bleDeleteButton.bind(this));
124 } 124 }
125 125
126 var shownCookies = this._filterCookiesForFilters(this._cookies); 126 var shownCookies = this._filterCookiesForFilters(this._cookies);
127 this._cookiesTable.setCookies(shownCookies); 127 this._cookiesTable.setCookies(shownCookies);
128 this._emptyWidget.detach(); 128 this._emptyWidget.detach();
129 this._filterBar.show(this.element);
129 this._cookiesTable.show(this.element); 130 this._cookiesTable.show(this.element);
130 this._filterBar.show(this.element);
131 this._treeElement.subtitle = 131 this._treeElement.subtitle =
132 String.sprintf(Common.UIString('%d cookies (%s)'), this._cookies.length, Number.bytesToString(this._totalSize)); 132 String.sprintf(Common.UIString('%d cookies (%s)'), this._cookies.length, Number.bytesToString(this._totalSize));
133 this._filterButton.setEnabled(true); 133 this._filterButton.setEnabled(true);
134 this._clearButton.setEnabled(true); 134 this._clearButton.setEnabled(true);
135 this._deleteButton.setEnabled(!!this._cookiesTable.selectedCookie()); 135 this._deleteButton.setEnabled(!!this._cookiesTable.selectedCookie());
136 } 136 }
137 137
138 /** 138 /**
139 * @param {!Array.<!SDK.Cookie>} cookies 139 * @param {!Array.<!SDK.Cookie>} cookies
140 */ 140 */
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 } 218 }
219 219
220 _contextMenu(event) { 220 _contextMenu(event) {
221 if (!this._cookies.length) { 221 if (!this._cookies.length) {
222 var contextMenu = new UI.ContextMenu(event); 222 var contextMenu = new UI.ContextMenu(event);
223 contextMenu.appendItem(Common.UIString('Refresh'), this._update.bind(this) ); 223 contextMenu.appendItem(Common.UIString('Refresh'), this._update.bind(this) );
224 contextMenu.show(); 224 contextMenu.show();
225 } 225 }
226 } 226 }
227 }; 227 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698