OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 'user-manager-pages' is the element that controls paging in the | 6 * @fileoverview 'user-manager-pages' is the element that controls paging in the |
7 * user manager screen. | 7 * user manager screen. |
8 * | |
9 * @element user-manager-pages | |
10 */ | 8 */ |
11 Polymer({ | 9 Polymer({ |
12 is: 'user-manager-pages', | 10 is: 'user-manager-pages', |
13 | 11 |
14 properties: { | 12 properties: { |
15 /** | 13 /** |
16 * ID of the currently selected page. | 14 * ID of the currently selected page. |
17 * @private {string} | 15 * @private {string} |
18 */ | 16 */ |
19 selectedPage_: { | 17 selectedPage_: { |
(...skipping 18 matching lines...) Expand all Loading... |
38 /** | 36 /** |
39 * Returns True if the given page should be visible. | 37 * Returns True if the given page should be visible. |
40 * @param {string} selectedPage ID of the currently selected page. | 38 * @param {string} selectedPage ID of the currently selected page. |
41 * @param {string} page ID of the given page. | 39 * @param {string} page ID of the given page. |
42 * @return {boolean} | 40 * @return {boolean} |
43 */ | 41 */ |
44 isPageVisible_: function(selectedPage, page) { | 42 isPageVisible_: function(selectedPage, page) { |
45 return this.selectedPage_ == page; | 43 return this.selectedPage_ == page; |
46 } | 44 } |
47 }); | 45 }); |
OLD | NEW |