blob: 4460b2f653782d0dce895b8b444ca1bd20515d27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright 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.
#include "ash/test/test_volume_control_delegate.h"
namespace ash {
TestVolumeControlDelegate::TestVolumeControlDelegate()
: handle_volume_mute_count_(0),
handle_volume_down_count_(0),
handle_volume_up_count_(0) {
}
TestVolumeControlDelegate::~TestVolumeControlDelegate() {
}
void TestVolumeControlDelegate::HandleVolumeMute(
const ui::Accelerator& accelerator) {
++handle_volume_mute_count_;
last_accelerator_ = accelerator;
}
void TestVolumeControlDelegate::HandleVolumeDown(
const ui::Accelerator& accelerator) {
++handle_volume_down_count_;
last_accelerator_ = accelerator;
}
void TestVolumeControlDelegate::HandleVolumeUp(
const ui::Accelerator& accelerator) {
++handle_volume_up_count_;
last_accelerator_ = accelerator;
}
} // namespace ash
|