OLD | NEW |
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 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 this._dataGrid.setName("cookiesTable"); | 62 this._dataGrid.setName("cookiesTable"); |
63 this._dataGrid.addEventListener(WebInspector.DataGrid.Events.SortingChanged,
this._rebuildTable, this); | 63 this._dataGrid.addEventListener(WebInspector.DataGrid.Events.SortingChanged,
this._rebuildTable, this); |
64 | 64 |
65 if (selectedCallback) | 65 if (selectedCallback) |
66 this._dataGrid.addEventListener(WebInspector.DataGrid.Events.SelectedNod
e, selectedCallback, this); | 66 this._dataGrid.addEventListener(WebInspector.DataGrid.Events.SelectedNod
e, selectedCallback, this); |
67 | 67 |
68 this._nextSelectedCookie = /** @type {?WebInspector.Cookie} */ (null); | 68 this._nextSelectedCookie = /** @type {?WebInspector.Cookie} */ (null); |
69 | 69 |
70 this._dataGrid.asWidget().show(this.element); | 70 this._dataGrid.asWidget().show(this.element); |
71 this._data = []; | 71 this._data = []; |
72 } | 72 }; |
73 | 73 |
74 WebInspector.CookiesTable.prototype = { | 74 WebInspector.CookiesTable.prototype = { |
75 /** | 75 /** |
76 * @param {?string} domain | 76 * @param {?string} domain |
77 */ | 77 */ |
78 _clearAndRefresh: function(domain) | 78 _clearAndRefresh: function(domain) |
79 { | 79 { |
80 this.clear(domain); | 80 this.clear(domain); |
81 this._refresh(); | 81 this._refresh(); |
82 }, | 82 }, |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 this._refresh(); | 279 this._refresh(); |
280 }, | 280 }, |
281 | 281 |
282 _refresh: function() | 282 _refresh: function() |
283 { | 283 { |
284 if (this._refreshCallback) | 284 if (this._refreshCallback) |
285 this._refreshCallback(); | 285 this._refreshCallback(); |
286 }, | 286 }, |
287 | 287 |
288 __proto__: WebInspector.VBox.prototype | 288 __proto__: WebInspector.VBox.prototype |
289 } | 289 }; |
OLD | NEW |