Commit 87aa4f84 authored by David Reveman's avatar David Reveman Committed by Commit Bot

Change Picture: Add property to disable motion stills.

This adds a property to cr_camera that allows video mode to be
disabled by hiding camera mode button. It is also making
video mode disabled by default.

Bug: 769140
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I232e95dae75502b4242a807dcfe4e6d668120312
Reviewed-on: https://chromium-review.googlesource.com/745121Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: David Reveman <reveman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512862}
parent 5489dfd2
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<div> <div>
<button is="paper-icon-button-light" id="switchMode" tabindex="2" <button is="paper-icon-button-light" id="switchMode" tabindex="2"
title="[[switchModeLabel]]" on-tap="onTapSwitchMode_" title="[[switchModeLabel]]" on-tap="onTapSwitchMode_"
disabled="[[!cameraOnline_]]"> disabled="[[!cameraOnline_]]" hidden="[[!videomodeEnabled]]">
</button> </button>
</div> </div>
</div> </div>
......
...@@ -37,6 +37,12 @@ Polymer({ ...@@ -37,6 +37,12 @@ Polymer({
takePhotoLabel: String, takePhotoLabel: String,
switchModeLabel: String, switchModeLabel: String,
/** True if video mode is enabled. */
videomodeEnabled: {
type: Boolean,
value: false,
},
/** /**
* True if currently in video mode. * True if currently in video mode.
* @private {boolean} * @private {boolean}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment