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