1 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html">
3 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/iron-icons/device-icons.html">
4 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
5 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-input/paper-input.html">
6 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-toggle-button/paper-toggle-button.html">
7 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-slider/paper-slider.html">
8 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-radio-group/paper-radio-group.html">
10 <dom-module id=
"battery-settings">
11 <link rel=
"import" type=
"css" href=
"battery_settings.css">
13 <div class=
"layout vertical">
14 <div class=
"element-label">
15 <paper-icon-button icon=
"device:battery-charging-full">
17 <span>{{title}}
</span>
19 <form id=
"power-settings-form">
23 <span class=
"form-label">Battery Percentage
</span>
24 <paper-input value=
"{{batteryPercent}}"
25 id=
"battery-percent-text" type=
"number">
34 <span class=
"form-label">Battery State
</span>
35 <paper-radio-group selected=
"{{batteryState}}"
36 id=
"battery-state-radio-group">
37 <template is=
"dom-repeat" items=
"{{batteryStateOptions}}">
39 name=
"{{item}}">{{item}}
</paper-radio-button>
49 <span class=
"form-label">External Power
</span>
50 <paper-radio-group selected=
"{{externalPower}}"
51 id=
"external-power-radio-group">
52 <template is=
"dom-repeat" items=
"{{externalPowerOptions}}">
54 name=
"{{item}}">{{item}}
</paper-radio-button>
64 <span class=
"form-label">Time Until Battery Empty
</span>
65 <paper-input value=
"{{timeUntilEmpty}}"
66 id=
"time-until-empty-text">
73 <span class=
"form-label">Time Until Battery Full
</span>
74 <paper-input value=
"{{timeUntilFull}}" id=
"time-until-full-text">
83 <script src=
"battery_settings.js"></script>