OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 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 #ifndef ASH_TEST_DUMMY_VOLUME_CONTROL_DELEGATE_H_ | |
6 #define ASH_TEST_DUMMY_VOLUME_CONTROL_DELEGATE_H_ | |
7 | |
8 #include "ash/volume_control_delegate.h" | |
9 #include "ui/base/accelerators/accelerator.h" | |
10 | |
11 namespace ash { | |
12 | |
13 class DummyVolumeControlDelegate : public ash::VolumeControlDelegate { | |
14 public: | |
15 explicit DummyVolumeControlDelegate(bool consume); | |
16 virtual ~DummyVolumeControlDelegate(); | |
17 | |
18 virtual bool HandleVolumeMute(const ui::Accelerator& accelerator) OVERRIDE; | |
jonross
2014/04/29 14:42:43
Above a block of overridden methods leave a commen
bruthig
2014/04/29 15:49:00
Done.
| |
19 virtual bool HandleVolumeDown(const ui::Accelerator& accelerator) OVERRIDE; | |
20 virtual bool HandleVolumeUp(const ui::Accelerator& accelerator) OVERRIDE; | |
21 | |
22 int handle_volume_mute_count() const; | |
jonross
2014/04/29 14:42:43
Overridden methods should come last. So these shou
bruthig
2014/04/29 15:49:00
Done.
| |
23 int handle_volume_down_count() const; | |
24 int handle_volume_up_count() const; | |
25 const ui::Accelerator& last_accelerator() const; | |
26 | |
27 private: | |
28 const bool consume_; | |
jonross
2014/04/29 14:42:43
We don't really use const on class member variable
bruthig
2014/04/29 15:49:00
Done.
| |
29 int handle_volume_mute_count_; | |
30 int handle_volume_down_count_; | |
31 int handle_volume_up_count_; | |
32 ui::Accelerator last_accelerator_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(DummyVolumeControlDelegate); | |
35 }; | |
36 | |
37 } // namespace ash | |
38 | |
39 #endif // ASH_TEST_DUMMY_VOLUME_CONTROL_DELEGATE_H_ | |
OLD | NEW |