OLD | NEW |
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 #ifndef ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ | 5 #ifndef ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ |
6 #define ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ | 6 #define ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ |
7 | 7 |
8 #include "ash/common/palette_delegate.h" | 8 #include "ash/common/palette_delegate.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 | 12 |
13 // A simple test double for a PaletteDelegate. | 13 // A simple test double for a PaletteDelegate. |
14 class TestPaletteDelegate : public PaletteDelegate { | 14 class TestPaletteDelegate : public PaletteDelegate { |
15 public: | 15 public: |
16 TestPaletteDelegate(); | 16 TestPaletteDelegate(); |
17 ~TestPaletteDelegate() override; | 17 ~TestPaletteDelegate() override; |
18 | 18 |
19 int create_note_count() const { return create_note_count_; } | 19 int create_note_count() const { return create_note_count_; } |
20 | 20 |
21 int has_note_app_count() const { return has_note_app_count_; } | 21 int has_note_app_count() const { return has_note_app_count_; } |
22 | 22 |
23 void set_has_note_app(bool has_note_app) { has_note_app_ = has_note_app; } | 23 void set_has_note_app(bool has_note_app) { has_note_app_ = has_note_app; } |
24 | 24 |
25 private: | 25 private: |
26 // PaletteDelegate: | 26 // PaletteDelegate: |
27 void CreateNote() override; | 27 void CreateNote() override; |
28 bool HasNoteApp() override; | 28 bool HasNoteApp() override; |
| 29 void OnLaserPointerEnabled() override; |
| 30 void OnLaserPointerDisabled() override; |
29 | 31 |
30 bool has_note_app_ = false; | 32 bool has_note_app_ = false; |
31 int create_note_count_ = 0; | 33 int create_note_count_ = 0; |
32 int has_note_app_count_ = 0; | 34 int has_note_app_count_ = 0; |
33 | 35 |
34 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); | 36 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); |
35 }; | 37 }; |
36 | 38 |
37 } // namespace ash | 39 } // namespace ash |
38 | 40 |
39 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ | 41 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ |
OLD | NEW |