Add layer tree settings flag for pinch virtual viewport.
[chromium-blink-merge.git] / chromeos / dbus / volume_state.cc
blobda0ff13d0e3c1a6716bcbe22bad2980b3c68536b
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/stringprintf.h"
10 namespace chromeos {
12 VolumeState::VolumeState()
13 : output_volume(0),
14 output_mute(false),
15 input_gain(0),
16 input_mute(false) {
19 std::string VolumeState::ToString() const {
20 std::string result;
21 base::StringAppendF(&result,
22 "output_volume = %d ",
23 output_volume);
24 base::StringAppendF(&result,
25 "output_mute = %s ",
26 output_mute ? "true" : "false");
27 base::StringAppendF(&result,
28 "output_mute = %s ",
29 output_mute ? "true" : "false");
30 base::StringAppendF(&result,
31 "input_gain = %d ",
32 input_gain);
33 base::StringAppendF(&result,
34 "input_mute = %s ",
35 input_mute ? "true" : "false");
37 return result;
40 } // namespace chromeos