Chromium Code Reviews| Index: ash/test/dummy_volume_control_delegate.h |
| diff --git a/ash/test/dummy_volume_control_delegate.h b/ash/test/dummy_volume_control_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6ac6b92267526ea8971387525247acd507212095 |
| --- /dev/null |
| +++ b/ash/test/dummy_volume_control_delegate.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_TEST_DUMMY_VOLUME_CONTROL_DELEGATE_H_ |
| +#define ASH_TEST_DUMMY_VOLUME_CONTROL_DELEGATE_H_ |
| + |
| +#include "ash/volume_control_delegate.h" |
| +#include "ui/base/accelerators/accelerator.h" |
| + |
| +namespace ash { |
| + |
| +class DummyVolumeControlDelegate : public ash::VolumeControlDelegate { |
| + public: |
| + explicit DummyVolumeControlDelegate(bool consume); |
| + virtual ~DummyVolumeControlDelegate(); |
| + |
| + 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.
|
| + virtual bool HandleVolumeDown(const ui::Accelerator& accelerator) OVERRIDE; |
| + virtual bool HandleVolumeUp(const ui::Accelerator& accelerator) OVERRIDE; |
| + |
| + 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.
|
| + int handle_volume_down_count() const; |
| + int handle_volume_up_count() const; |
| + const ui::Accelerator& last_accelerator() const; |
| + |
| + private: |
| + 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.
|
| + int handle_volume_mute_count_; |
| + int handle_volume_down_count_; |
| + int handle_volume_up_count_; |
| + ui::Accelerator last_accelerator_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DummyVolumeControlDelegate); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_TEST_DUMMY_VOLUME_CONTROL_DELEGATE_H_ |