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

Side by Side Diff: media/audio/linux/audio_manager_linux.cc

Issue 10826174: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/linux/audio_manager_linux.h ('k') | media/audio/linux/cras_output_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "media/audio/linux/audio_manager_linux.h" 5 #include "media/audio/linux/audio_manager_linux.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/nix/xdg_util.h" 10 #include "base/nix/xdg_util.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 AudioManagerLinux::~AudioManagerLinux() { 56 AudioManagerLinux::~AudioManagerLinux() {
57 Shutdown(); 57 Shutdown();
58 } 58 }
59 59
60 void AudioManagerLinux::Init() { 60 void AudioManagerLinux::Init() {
61 AudioManagerBase::Init(); 61 AudioManagerBase::Init();
62 wrapper_.reset(new AlsaWrapper()); 62 wrapper_.reset(new AlsaWrapper());
63 } 63 }
64 64
65 void AudioManagerLinux::MuteAll() {
66 NOTIMPLEMENTED();
67 }
68
69 void AudioManagerLinux::UnMuteAll() {
70 NOTIMPLEMENTED();
71 }
72
73 bool AudioManagerLinux::CanShowAudioInputSettings() { 65 bool AudioManagerLinux::CanShowAudioInputSettings() {
74 scoped_ptr<base::Environment> env(base::Environment::Create()); 66 scoped_ptr<base::Environment> env(base::Environment::Create());
75 67
76 switch (base::nix::GetDesktopEnvironment(env.get())) { 68 switch (base::nix::GetDesktopEnvironment(env.get())) {
77 case base::nix::DESKTOP_ENVIRONMENT_GNOME: 69 case base::nix::DESKTOP_ENVIRONMENT_GNOME:
78 case base::nix::DESKTOP_ENVIRONMENT_KDE3: 70 case base::nix::DESKTOP_ENVIRONMENT_KDE3:
79 case base::nix::DESKTOP_ENVIRONMENT_KDE4: 71 case base::nix::DESKTOP_ENVIRONMENT_KDE4:
80 return true; 72 return true;
81 case base::nix::DESKTOP_ENVIRONMENT_OTHER: 73 case base::nix::DESKTOP_ENVIRONMENT_OTHER:
82 case base::nix::DESKTOP_ENVIRONMENT_UNITY: 74 case base::nix::DESKTOP_ENVIRONMENT_UNITY:
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 306 }
315 307
316 return new AlsaPcmInputStream(this, device_name, params, wrapper_.get()); 308 return new AlsaPcmInputStream(this, device_name, params, wrapper_.get());
317 } 309 }
318 310
319 AudioManager* CreateAudioManager() { 311 AudioManager* CreateAudioManager() {
320 return new AudioManagerLinux(); 312 return new AudioManagerLinux();
321 } 313 }
322 314
323 } // namespace media 315 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/linux/audio_manager_linux.h ('k') | media/audio/linux/cras_output_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698