OLD | NEW |
1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 2 <link rel="import" href="chrome://resources/html/util.html"> |
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/image-icons.
html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/image-icons.
html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner.html"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
6 | 7 |
7 <dom-module id="settings-camera"> | 8 <dom-module id="settings-camera"> |
8 <link rel="import" type="css" href="chrome://md-settings/settings_shared.css"> | 9 <link rel="import" type="css" href="chrome://md-settings/settings_shared.css"> |
9 <link rel="import" type="css" href="camera.css"> | 10 <link rel="import" type="css" href="camera.css"> |
10 <template> | 11 <template> |
11 <div hidden="[[!cameraActive]]"> | 12 <div hidden="[[!cameraActive]]"> |
12 <div id="perspectiveBox"> | 13 <div id="perspectiveBox"> |
13 <div id="userImageStreamCrop"> | 14 <div id="userImageStreamCrop"> |
14 <video id="cameraVideo" autoplay hidden="[[!cameraOnline_]]"></video> | 15 <video id="cameraVideo" autoplay hidden="[[!cameraOnline_]]"></video> |
15 <paper-spinner active="[[!cameraOnline_]]"></paper-spinner> | 16 <paper-spinner active="[[!cameraOnline_]]"></paper-spinner> |
16 </div> | 17 </div> |
17 </div> | 18 </div> |
18 <div id="cameraControls"> | 19 <div id="cameraControls"> |
19 <paper-icon-button id="flipPhoto" tabindex="1" icon="image:flip" | 20 <paper-icon-button id="flipPhoto" tabindex="2" icon="image:flip" |
20 i18n-values="title:flipPhoto" on-tap="onTapFlipPhoto_" | 21 i18n-values="title:flipPhoto" on-tap="onTapFlipPhoto_" |
21 disabled="[[!cameraOnline_]]"> | 22 disabled="[[!cameraOnline_]]"> |
22 </paper-icon-button> | 23 </paper-icon-button> |
23 <paper-icon-button id="takePhoto" tabindex="2" icon="image:camera-alt" | 24 <paper-icon-button id="takePhoto" tabindex="1" icon="image:camera-alt" |
24 i18n-values="title:takePhoto" on-tap="onTapTakePhoto_" | 25 i18n-values="title:takePhoto" on-tap="onTapTakePhoto_" |
25 disabled="[[!cameraOnline_]]"> | 26 disabled="[[!cameraOnline_]]"> |
26 </paper-icon-button> | 27 </paper-icon-button> |
27 </div> | 28 </div> |
28 </div> | 29 </div> |
29 </template> | 30 </template> |
30 <script src="camera.js"></script> | 31 <script src="camera.js"></script> |
31 </dom-module> | 32 </dom-module> |
OLD | NEW |