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), | |
flackr
2014/04/29 21:43:54
indent ':' 4 spaces, everything, keep variables li
bruthig
2014/04/30 14:04:45
Done.
| |
11 handle_volume_mute_count_(0), | |
12 handle_volume_down_count_(0), | |
13 handle_volume_up_count_(0) { | |
14 } | |
15 | |
16 VolumeControlDelegateStub::~VolumeControlDelegateStub() {} | |
17 | |
18 bool VolumeControlDelegateStub::HandleVolumeMute( | |
19 const ui::Accelerator& accelerator) { | |
flackr
2014/04/29 21:43:54
Here and below, indent method parameters 4 spaces.
bruthig
2014/04/30 14:04:45
Done.
| |
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 | |
40 | |
flackr
2014/04/29 21:43:54
nit: no extra newline at end of file.
bruthig
2014/04/30 14:04:45
Done.
| |
OLD | NEW |