| OLD | NEW | 
|    1 // Copyright (c) 2011 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: | 
|   11  |   11  | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
|   29      * @type {number} |   29      * @type {number} | 
|   30      * @private |   30      * @private | 
|   31      */ |   31      */ | 
|   32     queryDelayTimerId_: 0, |   32     queryDelayTimerId_: 0, | 
|   33  |   33  | 
|   34     /** |   34     /** | 
|   35      * The most recent search query, or null if the query is empty. |   35      * The most recent search query, or null if the query is empty. | 
|   36      * @type {?string} |   36      * @type {?string} | 
|   37      * @private |   37      * @private | 
|   38      */ |   38      */ | 
|   39     lastQuery_ : null, |   39     lastQuery_: null, | 
|   40  |   40  | 
|   41     initializePage: function() { |   41     initializePage: function() { | 
|   42       OptionsPage.prototype.initializePage.call(this); |   42       OptionsPage.prototype.initializePage.call(this); | 
|   43  |   43  | 
|   44       $('cookies-search-box').addEventListener('search', |   44       $('cookies-search-box').addEventListener('search', | 
|   45           this.handleSearchQueryChange_.bind(this)); |   45           this.handleSearchQueryChange_.bind(this)); | 
|   46  |   46  | 
|   47       $('remove-all-cookies-button').onclick = function(e) { |   47       $('remove-all-cookies-button').onclick = function(e) { | 
|   48         chrome.send('removeAllCookies', []); |   48         chrome.send('removeAllCookies', []); | 
|   49       }; |   49       }; | 
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  131   CookiesView.loadChildren = function(args) { |  131   CookiesView.loadChildren = function(args) { | 
|  132     $('cookies-list').loadChildren(args[0], args[1]); |  132     $('cookies-list').loadChildren(args[0], args[1]); | 
|  133   }; |  133   }; | 
|  134  |  134  | 
|  135   // Export |  135   // Export | 
|  136   return { |  136   return { | 
|  137     CookiesView: CookiesView |  137     CookiesView: CookiesView | 
|  138   }; |  138   }; | 
|  139  |  139  | 
|  140 }); |  140 }); | 
| OLD | NEW |