| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 selectedCookie() { | 128 selectedCookie() { |
| 129 var node = this._dataGrid.selectedNode; | 129 var node = this._dataGrid.selectedNode; |
| 130 return node ? node.cookie : null; | 130 return node ? node.cookie : null; |
| 131 } | 131 } |
| 132 | 132 |
| 133 /** | 133 /** |
| 134 * @return {{current: ?SDK.Cookie, neighbor: ?SDK.Cookie}} | 134 * @return {{current: ?SDK.Cookie, neighbor: ?SDK.Cookie}} |
| 135 */ | 135 */ |
| 136 _getSelectionCookies() { | 136 _getSelectionCookies() { |
| 137 var node = this._dataGrid.selectedNode; | 137 var node = this._dataGrid.selectedNode; |
| 138 var neighbor = node && (node.traverseNextNode(true) || node.traversePrevious
Node(true)); | 138 var nextNeighbor = node && node.traverseNextNode(true); |
| 139 var previousNeighbor = node && node.traversePreviousNode(true); |
| 139 | 140 |
| 140 return {current: node && node.cookie, neighbor: neighbor && neighbor.cookie}
; | 141 return { |
| 142 current: node && node.cookie, |
| 143 neighbor: (nextNeighbor && nextNeighbor.cookie) || (previousNeighbor && pr
eviousNeighbor.cookie) |
| 144 }; |
| 141 } | 145 } |
| 142 | 146 |
| 143 /** | 147 /** |
| 144 * @override | 148 * @override |
| 145 */ | 149 */ |
| 146 willHide() { | 150 willHide() { |
| 147 this._lastEditedColumnId = null; | 151 this._lastEditedColumnId = null; |
| 148 } | 152 } |
| 149 | 153 |
| 150 /** | 154 /** |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 } | 468 } |
| 465 | 469 |
| 466 _refresh() { | 470 _refresh() { |
| 467 if (this._refreshCallback) | 471 if (this._refreshCallback) |
| 468 this._refreshCallback(); | 472 this._refreshCallback(); |
| 469 } | 473 } |
| 470 }; | 474 }; |
| 471 | 475 |
| 472 /** @const */ | 476 /** @const */ |
| 473 CookieTable.CookiesTable._expiresSessionValue = Common.UIString('Session'); | 477 CookieTable.CookiesTable._expiresSessionValue = Common.UIString('Session'); |
| OLD | NEW |