Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: ash/test/dummy_volume_control_delegate.h

Issue 251193005: Enabled volume buttons when TouchView is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698