| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 /** | 5 /** |
| 6 * @fileoverview Utility functions for the Bookmarks page. | 6 * @fileoverview Utility functions for the Bookmarks page. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 cr.define('bookmarks.util', function() { | 9 cr.define('bookmarks.util', function() { |
| 10 /** | 10 /** |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 function createEmptyState() { | 53 function createEmptyState() { |
| 54 return { | 54 return { |
| 55 nodes: {}, | 55 nodes: {}, |
| 56 selectedFolder: '0', | 56 selectedFolder: '0', |
| 57 closedFolders: {}, | 57 closedFolders: {}, |
| 58 search: { | 58 search: { |
| 59 term: '', | 59 term: '', |
| 60 inProgress: false, | 60 inProgress: false, |
| 61 results: [], | 61 results: [], |
| 62 }, | 62 }, |
| 63 selection: { |
| 64 items: {}, |
| 65 anchor: null, |
| 66 }, |
| 63 }; | 67 }; |
| 64 } | 68 } |
| 65 | 69 |
| 66 return { | 70 return { |
| 67 createEmptyState: createEmptyState, | 71 createEmptyState: createEmptyState, |
| 68 getDisplayedList: getDisplayedList, | 72 getDisplayedList: getDisplayedList, |
| 69 normalizeNodes: normalizeNodes, | 73 normalizeNodes: normalizeNodes, |
| 70 }; | 74 }; |
| 71 }); | 75 }); |
| OLD | NEW |