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 * | 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 WebInspector.CookieItemsView.prototype = { | 60 WebInspector.CookieItemsView.prototype = { |
61 /** | 61 /** |
62 * @override | 62 * @override |
63 * @return {!Array.<!WebInspector.ToolbarItem>} | 63 * @return {!Array.<!WebInspector.ToolbarItem>} |
64 */ | 64 */ |
65 syncToolbarItems: function() | 65 syncToolbarItems: function() |
66 { | 66 { |
67 return [this._refreshButton, this._clearButton, this._deleteButton]; | 67 return [this._refreshButton, this._clearButton, this._deleteButton]; |
68 }, | 68 }, |
69 | 69 |
| 70 /** |
| 71 * @override |
| 72 */ |
70 wasShown: function() | 73 wasShown: function() |
71 { | 74 { |
72 this._update(); | 75 this._update(); |
73 }, | 76 }, |
74 | 77 |
| 78 /** |
| 79 * @override |
| 80 */ |
75 willHide: function() | 81 willHide: function() |
76 { | 82 { |
77 this._deleteButton.setVisible(false); | 83 this._deleteButton.setVisible(false); |
78 }, | 84 }, |
79 | 85 |
80 _update: function() | 86 _update: function() |
81 { | 87 { |
82 WebInspector.Cookies.getCookiesAsync(this._updateWithCookies.bind(this))
; | 88 WebInspector.Cookies.getCookiesAsync(this._updateWithCookies.bind(this))
; |
83 }, | 89 }, |
84 | 90 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 { | 188 { |
183 if (!this._cookies.length) { | 189 if (!this._cookies.length) { |
184 var contextMenu = new WebInspector.ContextMenu(event); | 190 var contextMenu = new WebInspector.ContextMenu(event); |
185 contextMenu.appendItem(WebInspector.UIString("Refresh"), this._updat
e.bind(this)); | 191 contextMenu.appendItem(WebInspector.UIString("Refresh"), this._updat
e.bind(this)); |
186 contextMenu.show(); | 192 contextMenu.show(); |
187 } | 193 } |
188 }, | 194 }, |
189 | 195 |
190 __proto__: WebInspector.SimpleView.prototype | 196 __proto__: WebInspector.SimpleView.prototype |
191 }; | 197 }; |
OLD | NEW |