OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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. | |
4 | |
5 #include "ash/test/volume_control_delegate_stub.h" | |
6 | |
7 namespace ash { | |
8 | |
9 VolumeControlDelegateStub::VolumeControlDelegateStub(bool consume) | |
10 : consume_(consume), | |
11 handle_volume_mute_count_(0), | |
12 handle_volume_down_count_(0), | |
13 handle_volume_up_count_(0) { | |
14 } | |
15 | |
16 VolumeControlDelegateStub::~VolumeControlDelegateStub() {} | |
flackr
2014/04/30 14:27:44
nit: We tend to only use {} for empty inlined func
bruthig
2014/04/30 15:36:16
Done.
| |
17 | |
18 bool VolumeControlDelegateStub::HandleVolumeMute( | |
19 const ui::Accelerator& accelerator) { | |
20 ++handle_volume_mute_count_; | |
21 last_accelerator_ = accelerator; | |
22 return consume_; | |
23 } | |
24 | |
25 bool VolumeControlDelegateStub::HandleVolumeDown( | |
26 const ui::Accelerator& accelerator) { | |
27 ++handle_volume_down_count_; | |
28 last_accelerator_ = accelerator; | |
29 return consume_; | |
30 } | |
31 | |
32 bool VolumeControlDelegateStub::HandleVolumeUp( | |
33 const ui::Accelerator& accelerator) { | |
34 ++handle_volume_up_count_; | |
35 last_accelerator_ = accelerator; | |
36 return consume_; | |
37 } | |
38 | |
39 } // namespace ash | |
OLD | NEW |