| Index: chrome/browser/android/vr_shell/ui_elements/video_input_indicator.cc
|
| diff --git a/chrome/browser/android/vr_shell/ui_elements/video_input_indicator.cc b/chrome/browser/android/vr_shell/ui_elements/video_input_indicator.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..62b147e4ccdf4cadd2cb7f24f82240800e70db1e
|
| --- /dev/null
|
| +++ b/chrome/browser/android/vr_shell/ui_elements/video_input_indicator.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/android/vr_shell/ui_elements/video_input_indicator.h"
|
| +
|
| +#include "base/memory/ptr_util.h"
|
| +#include "chrome/browser/android/vr_shell/textures/system_indicator_texture.h"
|
| +#include "components/strings/grit/components_strings.h"
|
| +#include "ui/vector_icons/vector_icons.h"
|
| +
|
| +namespace vr_shell {
|
| +
|
| +// TODO(acondor): Set a proper string.
|
| +VideoInputIndicator::VideoInputIndicator(int preferred_width)
|
| + : TexturedElement(preferred_width),
|
| + texture_(base::MakeUnique<SystemIndicatorTexture>(ui::kVideocamIcon, 0)) {
|
| +}
|
| +
|
| +VideoInputIndicator::~VideoInputIndicator() = default;
|
| +
|
| +UiTexture* VideoInputIndicator::GetTexture() const {
|
| + return texture_.get();
|
| +}
|
| +
|
| +} // namespace vr_shell
|
|
|