1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chromeos/dbus/volume_state.h"
7 #include "base/format_macros.h"
8 #include "base/strings/stringprintf.h"
12 VolumeState::VolumeState()
14 output_system_mute(false),
17 output_user_mute(false) {
20 std::string
VolumeState::ToString() const {
22 base::StringAppendF(&result
,
23 "output_volume = %d ",
25 base::StringAppendF(&result
,
26 "output_system_mute = %s ",
27 output_system_mute
? "true" : "false");
28 base::StringAppendF(&result
,
31 base::StringAppendF(&result
,
33 input_mute
? "true" : "false");
34 base::StringAppendF(&result
,
35 "output_user_mute = %s ",
36 output_user_mute
? "true" : "false");
40 } // namespace chromeos