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