| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 var cookiesList = $('cookies-list'); | 37 var cookiesList = $('cookies-list'); |
| 38 options.CookiesList.decorate(cookiesList); | 38 options.CookiesList.decorate(cookiesList); |
| 39 | 39 |
| 40 this.addEventListener('visibleChange', this.handleVisibleChange_); | 40 this.addEventListener('visibleChange', this.handleVisibleChange_); |
| 41 }, | 41 }, |
| 42 | 42 |
| 43 lastQuery_ : null, | 43 lastQuery_ : null, |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * Search cookie using text in cookiesSearchBox. | 46 * Search cookie using text in |cookies-search-box|. |
| 47 */ | 47 */ |
| 48 searchCookie: function() { | 48 searchCookie: function() { |
| 49 this.queryDelayTimerId_ = 0; | 49 this.queryDelayTimerId_ = 0; |
| 50 var filter = $('cookies-search-box').value; | 50 var filter = $('cookies-search-box').value; |
| 51 if (this.lastQuery_ != filter) { | 51 if (this.lastQuery_ != filter) { |
| 52 this.lastQuery_ = filter; | 52 this.lastQuery_ = filter; |
| 53 chrome.send('updateCookieSearchResults', [filter]); | 53 chrome.send('updateCookieSearchResults', [filter]); |
| 54 } | 54 } |
| 55 }, | 55 }, |
| 56 | 56 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 CookiesView.loadChildren = function(args) { | 100 CookiesView.loadChildren = function(args) { |
| 101 $('cookies-list').loadChildren(args[0], args[1]); | 101 $('cookies-list').loadChildren(args[0], args[1]); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 // Export | 104 // Export |
| 105 return { | 105 return { |
| 106 CookiesView: CookiesView | 106 CookiesView: CookiesView |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 }); | 109 }); |
| OLD | NEW |