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

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

Issue 251193005: Enabled volume buttons when TouchView is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Jon's comments from Patch Set 2 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/volume_control_delegate_stub.h"
6
7 namespace ash {
8
9 VolumeControlDelegateStub::VolumeControlDelegateStub(bool consume)
10 : consume_(consume),
flackr 2014/04/29 21:43:54 indent ':' 4 spaces, everything, keep variables li
bruthig 2014/04/30 14:04:45 Done.
11 handle_volume_mute_count_(0),
12 handle_volume_down_count_(0),
13 handle_volume_up_count_(0) {
14 }
15
16 VolumeControlDelegateStub::~VolumeControlDelegateStub() {}
17
18 bool VolumeControlDelegateStub::HandleVolumeMute(
19 const ui::Accelerator& accelerator) {
flackr 2014/04/29 21:43:54 Here and below, indent method parameters 4 spaces.
bruthig 2014/04/30 14:04:45 Done.
20 ++handle_volume_mute_count_;
21 last_accelerator_ = accelerator;
22 return consume_;
23 }
24
25 bool VolumeControlDelegateStub::HandleVolumeDown(
26 const ui::Accelerator& accelerator) {
27 ++handle_volume_down_count_;
28 last_accelerator_ = accelerator;
29 return consume_;
30 }
31
32 bool VolumeControlDelegateStub::HandleVolumeUp(
33 const ui::Accelerator& accelerator) {
34 ++handle_volume_up_count_;
35 last_accelerator_ = accelerator;
36 return consume_;
37 }
38
39 } // namespace ash
40
flackr 2014/04/29 21:43:54 nit: no extra newline at end of file.
bruthig 2014/04/30 14:04:45 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698