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

Side by Side Diff: ash/common/test/test_palette_delegate.cc

Issue 2311393004: Laser tool blocks events from propagating. (Closed)
Patch Set: Fixed patch set 1 errors. Created 4 years, 3 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/test/test_palette_delegate.h" 5 #include "ash/common/test/test_palette_delegate.h"
6 6
7 namespace ash { 7 namespace ash {
8 8
9 TestPaletteDelegate::TestPaletteDelegate() {} 9 TestPaletteDelegate::TestPaletteDelegate() {}
10 10
11 TestPaletteDelegate::~TestPaletteDelegate() {} 11 TestPaletteDelegate::~TestPaletteDelegate() {}
12 12
13 std::unique_ptr<PaletteDelegate::EnableListenerSubscription> 13 std::unique_ptr<PaletteDelegate::EnableListenerSubscription>
14 TestPaletteDelegate::AddPaletteEnableListener( 14 TestPaletteDelegate::AddPaletteEnableListener(
15 const EnableListener& on_state_changed) { 15 const EnableListener& on_state_changed) {
16 return nullptr; 16 return nullptr;
17 } 17 }
18 18
19 void TestPaletteDelegate::CreateNote() { 19 void TestPaletteDelegate::CreateNote() {
20 ++create_note_count_; 20 ++create_note_count_;
21 } 21 }
22 22
23 bool TestPaletteDelegate::HasNoteApp() { 23 bool TestPaletteDelegate::HasNoteApp() {
24 ++has_note_app_count_; 24 ++has_note_app_count_;
25 return has_note_app_; 25 return has_note_app_;
26 } 26 }
27 27
28 void TestPaletteDelegate::OnLaserPointerEnabled() {} 28 void TestPaletteDelegate::SetLaserPointerState(bool enabled) {}
29
30 void TestPaletteDelegate::OnLaserPointerDisabled() {}
31 29
32 void TestPaletteDelegate::SetPartialMagnifierState(bool enabled) { 30 void TestPaletteDelegate::SetPartialMagnifierState(bool enabled) {
33 partial_magnifier_state_ = enabled; 31 partial_magnifier_state_ = enabled;
34 } 32 }
35 33
36 void TestPaletteDelegate::SetStylusStateChangedCallback( 34 void TestPaletteDelegate::SetStylusStateChangedCallback(
37 const PaletteDelegate::OnStylusStateChangedCallback& 35 const PaletteDelegate::OnStylusStateChangedCallback&
38 on_stylus_state_changed) {} 36 on_stylus_state_changed) {}
39 37
40 bool TestPaletteDelegate::ShouldAutoOpenPalette() { 38 bool TestPaletteDelegate::ShouldAutoOpenPalette() {
41 return should_auto_open_palette_; 39 return should_auto_open_palette_;
42 } 40 }
43 41
44 bool TestPaletteDelegate::ShouldShowPalette() { 42 bool TestPaletteDelegate::ShouldShowPalette() {
45 return should_show_palette_; 43 return should_show_palette_;
46 } 44 }
47 45
48 void TestPaletteDelegate::TakeScreenshot() { 46 void TestPaletteDelegate::TakeScreenshot() {
49 ++take_screenshot_count_; 47 ++take_screenshot_count_;
50 } 48 }
51 49
52 void TestPaletteDelegate::TakePartialScreenshot(const base::Closure& done) { 50 void TestPaletteDelegate::TakePartialScreenshot(const base::Closure& done) {
53 ++take_partial_screenshot_count_; 51 ++take_partial_screenshot_count_;
54 partial_screenshot_done_ = done; 52 partial_screenshot_done_ = done;
55 } 53 }
56 54
57 void TestPaletteDelegate::CancelPartialScreenshot() {} 55 void TestPaletteDelegate::CancelPartialScreenshot() {}
58 56
59 } // namespace ash 57 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698