OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 Polymer element for displaying a bluetooth device in a list. | 6 * @fileoverview Polymer element for displaying a bluetooth device in a list. |
7 */ | 7 */ |
8 | 8 |
9 Polymer({ | 9 Polymer({ |
10 is: 'bluetooth-device-list-item', | 10 is: 'bluetooth-device-list-item', |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 case 'gamepad': | 124 case 'gamepad': |
125 return 'settings:gamepad'; | 125 return 'settings:gamepad'; |
126 case 'keyboard': | 126 case 'keyboard': |
127 case 'keyboardMouseCombo': | 127 case 'keyboardMouseCombo': |
128 return 'settings:keyboard'; | 128 return 'settings:keyboard'; |
129 case 'tablet': | 129 case 'tablet': |
130 return 'settings:tablet'; | 130 return 'settings:tablet'; |
131 case 'mouse': | 131 case 'mouse': |
132 return 'settings:mouse'; | 132 return 'settings:mouse'; |
133 default: | 133 default: |
134 return device.connected ? | 134 return device.connected ? 'settings:bluetooth-connected' : |
135 'settings:bluetooth-connected' : 'settings:bluetooth'; | 135 'settings:bluetooth'; |
136 } | 136 } |
137 }, | 137 }, |
138 }); | 138 }); |
OLD | NEW |