| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 | 8 |
| 9 ///////////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////////// |
| 10 // CookiesView class: | 10 // CookiesView class: |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 /** | 95 /** |
| 96 * Handler for OptionsPage's visible property change event. | 96 * Handler for OptionsPage's visible property change event. |
| 97 * @param {Event} e Property change event. | 97 * @param {Event} e Property change event. |
| 98 * @private | 98 * @private |
| 99 */ | 99 */ |
| 100 handleVisibleChange_: function(e) { | 100 handleVisibleChange_: function(e) { |
| 101 if (!this.visible) | 101 if (!this.visible) |
| 102 return; | 102 return; |
| 103 | 103 |
| 104 // Inform the CookiesViewHandler that this is in the context of regular |
| 105 // cookies dialog. |
| 106 chrome.send('setViewContext', [false]); |
| 107 |
| 104 if (!this.initialized_) { | 108 if (!this.initialized_) { |
| 105 this.initialized_ = true; | 109 this.initialized_ = true; |
| 106 this.searchCookie(); | 110 this.searchCookie(); |
| 107 } else { | 111 } else { |
| 108 $('cookies-list').redraw(); | 112 $('cookies-list').redraw(); |
| 109 } | 113 } |
| 110 | 114 |
| 111 $('cookies-search-box').focus(); | 115 $('cookies-search-box').focus(); |
| 112 }, | 116 }, |
| 113 }; | 117 }; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 124 CookiesView.loadChildren = function(args) { | 128 CookiesView.loadChildren = function(args) { |
| 125 $('cookies-list').loadChildren(args[0], args[1]); | 129 $('cookies-list').loadChildren(args[0], args[1]); |
| 126 }; | 130 }; |
| 127 | 131 |
| 128 // Export | 132 // Export |
| 129 return { | 133 return { |
| 130 CookiesView: CookiesView | 134 CookiesView: CookiesView |
| 131 }; | 135 }; |
| 132 | 136 |
| 133 }); | 137 }); |
| OLD | NEW |