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