| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 this._treeElement = treeElement; | 51 this._treeElement = treeElement; |
| 52 this._cookieDomain = cookieDomain; | 52 this._cookieDomain = cookieDomain; |
| 53 | 53 |
| 54 this._emptyView = new WebInspector.EmptyView(WebInspector.UIString("This sit
e has no cookies.")); | 54 this._emptyView = new WebInspector.EmptyView(WebInspector.UIString("This sit
e has no cookies.")); |
| 55 this._emptyView.show(this.element); | 55 this._emptyView.show(this.element); |
| 56 | 56 |
| 57 this.element.addEventListener("contextmenu", this._contextMenu.bind(this), t
rue); | 57 this.element.addEventListener("contextmenu", this._contextMenu.bind(this), t
rue); |
| 58 } | 58 } |
| 59 | 59 |
| 60 WebInspector.CookieItemsView.prototype = { | 60 WebInspector.CookieItemsView.prototype = { |
| 61 get statusBarItems() | 61 /** |
| 62 * @return {!Array.<!WebInspector.StatusBarItem>} |
| 63 */ |
| 64 statusBarItems: function() |
| 62 { | 65 { |
| 63 return [this._refreshButton.element, this._clearButton.element, this._de
leteButton.element]; | 66 return [this._refreshButton, this._clearButton, this._deleteButton]; |
| 64 }, | 67 }, |
| 65 | 68 |
| 66 wasShown: function() | 69 wasShown: function() |
| 67 { | 70 { |
| 68 this._update(); | 71 this._update(); |
| 69 }, | 72 }, |
| 70 | 73 |
| 71 willHide: function() | 74 willHide: function() |
| 72 { | 75 { |
| 73 this._deleteButton.setVisible(false); | 76 this._deleteButton.setVisible(false); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 { | 181 { |
| 179 if (!this._cookies.length) { | 182 if (!this._cookies.length) { |
| 180 var contextMenu = new WebInspector.ContextMenu(event); | 183 var contextMenu = new WebInspector.ContextMenu(event); |
| 181 contextMenu.appendItem(WebInspector.UIString("Refresh"), this._updat
e.bind(this)); | 184 contextMenu.appendItem(WebInspector.UIString("Refresh"), this._updat
e.bind(this)); |
| 182 contextMenu.show(); | 185 contextMenu.show(); |
| 183 } | 186 } |
| 184 }, | 187 }, |
| 185 | 188 |
| 186 __proto__: WebInspector.VBox.prototype | 189 __proto__: WebInspector.VBox.prototype |
| 187 } | 190 } |
| OLD | NEW |