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 |
(...skipping 28 matching lines...) Expand all Loading... |
39 void set_should_show_palette(bool should_show_palette) { | 39 void set_should_show_palette(bool should_show_palette) { |
40 should_show_palette_ = should_show_palette; | 40 should_show_palette_ = should_show_palette; |
41 } | 41 } |
42 | 42 |
43 private: | 43 private: |
44 // PaletteDelegate: | 44 // PaletteDelegate: |
45 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( | 45 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( |
46 const EnableListener& on_state_changed) override; | 46 const EnableListener& on_state_changed) override; |
47 void CreateNote() override; | 47 void CreateNote() override; |
48 bool HasNoteApp() override; | 48 bool HasNoteApp() override; |
49 void SetStylusStateChangedCallback( | |
50 const OnStylusStateChangedCallback& on_stylus_state_changed) override; | |
51 bool ShouldAutoOpenPalette() override; | 49 bool ShouldAutoOpenPalette() override; |
52 bool ShouldShowPalette() override; | 50 bool ShouldShowPalette() override; |
53 void TakeScreenshot() override; | 51 void TakeScreenshot() override; |
54 void TakePartialScreenshot(const base::Closure& done) override; | 52 void TakePartialScreenshot(const base::Closure& done) override; |
55 void CancelPartialScreenshot() override; | 53 void CancelPartialScreenshot() override; |
56 | 54 |
57 int create_note_count_ = 0; | 55 int create_note_count_ = 0; |
58 int has_note_app_count_ = 0; | 56 int has_note_app_count_ = 0; |
59 int take_screenshot_count_ = 0; | 57 int take_screenshot_count_ = 0; |
60 int take_partial_screenshot_count_ = 0; | 58 int take_partial_screenshot_count_ = 0; |
61 base::Closure partial_screenshot_done_; | 59 base::Closure partial_screenshot_done_; |
62 bool has_note_app_ = false; | 60 bool has_note_app_ = false; |
63 bool should_auto_open_palette_ = false; | 61 bool should_auto_open_palette_ = false; |
64 bool should_show_palette_ = false; | 62 bool should_show_palette_ = false; |
65 | 63 |
66 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); | 64 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); |
67 }; | 65 }; |
68 | 66 |
69 } // namespace ash | 67 } // namespace ash |
70 | 68 |
71 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ | 69 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ |
OLD | NEW |