Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1087)

Side by Side Diff: chrome/browser/resources/settings/people_page/change_picture.html

Issue 1720533002: Settings People Revamp: Change Picture: Add accessibility-key usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0095-settings-change-picture-announce-messags-old-image-alt-text
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 11
11 <dom-module id="settings-change-picture"> 12 <dom-module id="settings-change-picture">
12 <link rel="import" type="css" 13 <link rel="import" type="css"
13 href="chrome://md-settings/settings_shared.css"> 14 href="chrome://md-settings/settings_shared.css">
14 <link rel="import" type="css" href="change_picture.css"> 15 <link rel="import" type="css" href="change_picture.css">
15 <template> 16 <template>
16 <div id="container" class="settings-box"> 17 <div id="container" class="settings-box">
17 <div id="availableIcons" class="start"> 18 <iron-a11y-keys keys="up down left right space enter"
19 on-keys-pressed="onKeysPress_">
20 </iron-a11y-keys>
21 <div id="availableIcons" class="start" tabindex="0">
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"
27 src="[[profileImageUrl_]]" i18n-values="alt:profilePhotoLoading"> 31 src="[[profileImageUrl_]]" i18n-values="alt:profilePhotoLoading">
(...skipping 16 matching lines...) Expand all
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698