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

Side by Side Diff: ash/test/dummy_volume_control_delegate.cc

Issue 251193005: Enabled volume buttons when TouchView is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style fixes as per Jons comments from Patch Set 1 Created 6 years, 7 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 unified diff | Download patch
OLDNEW
(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/dummy_volume_control_delegate.h"
6
7 namespace ash {
8
9 DummyVolumeControlDelegate::DummyVolumeControlDelegate(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 DummyVolumeControlDelegate::~DummyVolumeControlDelegate() {}
17
18 bool DummyVolumeControlDelegate::DummyVolumeControlDelegate::HandleVolumeMute(
19 const ui::Accelerator& accelerator) {
20 ++handle_volume_mute_count_;
21 last_accelerator_ = accelerator;
22 return consume_;
23 }
24
25 bool DummyVolumeControlDelegate::HandleVolumeDown(
26 const ui::Accelerator& accelerator) {
27 ++handle_volume_down_count_;
28 last_accelerator_ = accelerator;
29 return consume_;
30 }
31
32 bool DummyVolumeControlDelegate::HandleVolumeUp(
33 const ui::Accelerator& accelerator) {
34 ++handle_volume_up_count_;
35 last_accelerator_ = accelerator;
36 return consume_;
37 }
38
39 } // namespace ash
40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698