OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 * WallpaperManager constructor. | 6 * WallpaperManager constructor. |
7 * | 7 * |
8 * WallpaperManager objects encapsulate the functionality of the wallpaper | 8 * WallpaperManager objects encapsulate the functionality of the wallpaper |
9 * manager extension. | 9 * manager extension. |
10 * | 10 * |
(...skipping 17 matching lines...) Expand all Loading... |
28 } | 28 } |
29 | 29 |
30 // Anonymous 'namespace'. | 30 // Anonymous 'namespace'. |
31 // TODO(bshe): Get rid of anonymous namespace. | 31 // TODO(bshe): Get rid of anonymous namespace. |
32 (function() { | 32 (function() { |
33 | 33 |
34 /** | 34 /** |
35 * URL of the learn more page for wallpaper picker. | 35 * URL of the learn more page for wallpaper picker. |
36 */ | 36 */ |
37 /** @const */ var LearnMoreURL = | 37 /** @const */ var LearnMoreURL = |
38 'https://support.google.com/chromeos/?p=wallpaper_fileerror&hl=' + | 38 'https://support.google.com/chromebook/?p=wallpaper_fileerror&hl=' + |
39 navigator.language; | 39 navigator.language; |
40 | 40 |
41 /** | 41 /** |
42 * Index of the All category. It is the first category in wallpaper picker. | 42 * Index of the All category. It is the first category in wallpaper picker. |
43 */ | 43 */ |
44 /** @const */ var AllCategoryIndex = 0; | 44 /** @const */ var AllCategoryIndex = 0; |
45 | 45 |
46 /** | 46 /** |
47 * Index offset of categories parsed from manifest. The All category is added | 47 * Index offset of categories parsed from manifest. The All category is added |
48 * before them. So the offset is 1. | 48 * before them. So the offset is 1. |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 } | 1107 } |
1108 this.wallpaperGrid_.dataModel = wallpapersDataModel; | 1108 this.wallpaperGrid_.dataModel = wallpapersDataModel; |
1109 if (selectedItem) { | 1109 if (selectedItem) { |
1110 this.wallpaperGrid_.selectedItem = selectedItem; | 1110 this.wallpaperGrid_.selectedItem = selectedItem; |
1111 this.wallpaperGrid_.activeItem = selectedItem; | 1111 this.wallpaperGrid_.activeItem = selectedItem; |
1112 } | 1112 } |
1113 } | 1113 } |
1114 }; | 1114 }; |
1115 | 1115 |
1116 })(); | 1116 })(); |
OLD | NEW |