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

Side by Side Diff: chrome/browser/android/vr_shell/ui_elements/audio_capture_indicator.cc

Issue 2876403003: VR: text for audio/video input capture notifications (Closed)
Patch Set: removing unnecessary comments Created 3 years, 7 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 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/vr_shell/ui_elements/audio_capture_indicator.h" 5 #include "chrome/browser/android/vr_shell/ui_elements/audio_capture_indicator.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "chrome/browser/android/vr_shell/textures/system_indicator_texture.h" 8 #include "chrome/browser/android/vr_shell/textures/system_indicator_texture.h"
9 #include "components/strings/grit/components_strings.h" 9 #include "chrome/grit/generated_resources.h"
10 #include "ui/vector_icons/vector_icons.h" 10 #include "ui/vector_icons/vector_icons.h"
11 11
12 namespace vr_shell { 12 namespace vr_shell {
13 13
14 // TODO(acondor): Set a proper string.
15 AudioCaptureIndicator::AudioCaptureIndicator(int preferred_width) 14 AudioCaptureIndicator::AudioCaptureIndicator(int preferred_width)
16 : TexturedElement(preferred_width), 15 : TexturedElement(preferred_width),
17 texture_( 16 texture_(base::MakeUnique<SystemIndicatorTexture>(
18 base::MakeUnique<SystemIndicatorTexture>(ui::kMicrophoneIcon, 0)) {} 17 ui::kMicrophoneIcon,
18 IDS_AUDIO_CALL_NOTIFICATION_TEXT_2)) {}
19 19
20 AudioCaptureIndicator::~AudioCaptureIndicator() = default; 20 AudioCaptureIndicator::~AudioCaptureIndicator() = default;
21 21
22 UiTexture* AudioCaptureIndicator::GetTexture() const { 22 UiTexture* AudioCaptureIndicator::GetTexture() const {
23 return texture_.get(); 23 return texture_.get();
24 } 24 }
25 25
26 } // namespace vr_shell 26 } // namespace vr_shell
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698