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-a11y-keys/iron-a11
y-keys.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/iron-icons/image-icons.
html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-sele
ctor.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-sele
ctor.html"> |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
7 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
8 <link rel="import" href="chrome://md-settings/people_page/camera.html"> | 9 <link rel="import" href="chrome://md-settings/people_page/camera.html"> |
9 <link rel="import" href="chrome://md-settings/people_page/change_picture_private
_api.html"> | 10 <link rel="import" href="chrome://md-settings/people_page/change_picture_private
_api.html"> |
10 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> | 11 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> |
11 | 12 |
12 <dom-module id="settings-change-picture"> | 13 <dom-module id="settings-change-picture"> |
13 <link rel="import" type="css" href="change_picture.css"> | 14 <link rel="import" type="css" href="change_picture.css"> |
14 <template> | 15 <template> |
15 <style include="settings-shared"></style> | 16 <style include="settings-shared"></style> |
16 <div id="container" class="settings-box"> | 17 <div id="container" class="settings-box" tabindex="0"> |
| 18 <iron-a11y-keys keys="up down left right space enter" |
| 19 on-keys-pressed="onKeysPress_"> |
| 20 </iron-a11y-keys> |
17 <div id="availableIcons" class="start"> | 21 <div id="availableIcons" class="start"> |
18 <iron-selector id="selector" on-iron-activate="onImageActivate_" | 22 <iron-selector id="selector" on-iron-activate="onImageActivate_" |
19 selected-item="{{selectedItem_}}"> | 23 selected-item="{{selectedItem_}}"> |
20 <iron-icon id="cameraImage" data-type="camera" icon="image:camera-alt" | 24 <iron-icon id="cameraImage" data-type="camera" icon="image:camera-alt" |
21 i18n-values="alt:takePhoto" hidden="[[!cameraPresent_]]"> | 25 i18n-values="alt:takePhoto" hidden="[[!cameraPresent_]]"> |
22 </iron-icon> | 26 </iron-icon> |
23 <iron-icon data-type="file" icon="folder" | 27 <iron-icon data-type="file" icon="folder" |
24 i18n-values="alt:chooseFile"> | 28 i18n-values="alt:chooseFile"> |
25 </iron-icon> | 29 </iron-icon> |
26 <img id="profileImage" data-type="profile" | 30 <img id="profileImage" data-type="profile" |
(...skipping 17 matching lines...) Expand all Loading... |
44 </template> | 48 </template> |
45 </div> | 49 </div> |
46 <div id="previewPane"> | 50 <div id="previewPane"> |
47 <img i18n-values="alt:previewAltText" src="[[selectedItem_.src]]" | 51 <img i18n-values="alt:previewAltText" src="[[selectedItem_.src]]" |
48 hidden="[[isPreviewImageHidden_(selectedItem_)]]"> | 52 hidden="[[isPreviewImageHidden_(selectedItem_)]]"> |
49 <div id="discardControlBar" hidden="[[isDiscardHidden_(selectedItem_)]]"
> | 53 <div id="discardControlBar" hidden="[[isDiscardHidden_(selectedItem_)]]"
> |
50 <paper-icon-button id="discardOldImage" tabindex="0" icon="delete" | 54 <paper-icon-button id="discardOldImage" tabindex="0" icon="delete" |
51 i18n-values="title:discardPhoto" on-tap="onTapDiscardOldImage_"> | 55 i18n-values="title:discardPhoto" on-tap="onTapDiscardOldImage_"> |
52 </paper-icon-button> | 56 </paper-icon-button> |
53 </div> | 57 </div> |
54 <settings-camera | 58 <settings-camera id="camera" |
55 camera-active="[[isCameraActive_(cameraPresent_, selectedItem_)]]" | 59 camera-active="[[isCameraActive_(cameraPresent_, selectedItem_)]]" |
56 on-phototaken="onPhotoTaken_"> | 60 on-phototaken="onPhotoTaken_"> |
57 </div> | 61 </div> |
58 </div> | 62 </div> |
59 </template> | 63 </template> |
60 <script src="change_picture.js"></script> | 64 <script src="change_picture.js"></script> |
61 </dom-module> | 65 </dom-module> |
OLD | NEW |