Index: chrome/browser/resources/settings/people_page/camera.js |
diff --git a/chrome/browser/resources/settings/people_page/camera.js b/chrome/browser/resources/settings/people_page/camera.js |
index 97c8cf4e865c2880d3cda4667a8bfd69ac783a41..b403884d4a638a823c3cefbffbf9fcf1b4e0ae86 100644 |
--- a/chrome/browser/resources/settings/people_page/camera.js |
+++ b/chrome/browser/resources/settings/people_page/camera.js |
@@ -134,7 +134,9 @@ Polymer({ |
this.isFlipped_ = !this.isFlipped_; |
this.$.userImageStreamCrop.classList.toggle('flip-x', this.isFlipped_); |
- // TODO(tommycli): Add announce of accessible message for photo flipping. |
+ var flipMessageId = this.isFlipped_ ? |
+ 'photoFlippedAccessibleText' : 'photoFlippedBackAccessibleText'; |
+ announceAccessibleMessage(loadTimeData.getString(flipMessageId)); |
}, |
/** |
@@ -157,6 +159,9 @@ Polymer({ |
var photoDataUrl = this.isFlipped_ ? this.flipFrame_(canvas) : |
canvas.toDataURL('image/png'); |
this.fire('phototaken', {photoDataUrl: photoDataUrl}); |
+ |
+ announceAccessibleMessage( |
+ loadTimeData.getString('photoCaptureAccessibleText')); |
}, |
/** |