Chromium Code Reviews| 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 12 matching lines...) Expand all Loading... | |
| 23 bool partial_magnifier_state() const { return partial_magnifier_state_; } | 23 bool partial_magnifier_state() const { return partial_magnifier_state_; } |
| 24 | 24 |
| 25 int take_screenshot_count() const { return take_screenshot_count_; } | 25 int take_screenshot_count() const { return take_screenshot_count_; } |
| 26 | 26 |
| 27 int take_partial_screenshot_count() const { | 27 int take_partial_screenshot_count() const { |
| 28 return take_partial_screenshot_count_; | 28 return take_partial_screenshot_count_; |
| 29 } | 29 } |
| 30 | 30 |
| 31 void set_has_note_app(bool has_note_app) { has_note_app_ = has_note_app; } | 31 void set_has_note_app(bool has_note_app) { has_note_app_ = has_note_app; } |
| 32 | 32 |
| 33 void set_should_auto_open_palette(bool should_auto_open_palette) { | |
| 34 should_auto_open_palette_ = should_auto_open_palette; | |
| 35 } | |
| 36 | |
| 33 private: | 37 private: |
| 34 // PaletteDelegate: | 38 // PaletteDelegate: |
| 35 void CreateNote() override; | 39 void CreateNote() override; |
| 36 bool HasNoteApp() override; | 40 bool HasNoteApp() override; |
| 37 void SetPartialMagnifierState(bool enabled) override; | 41 void SetPartialMagnifierState(bool enabled) override; |
| 42 bool ShouldAutoOpenPalette() override; | |
|
oshima
2016/08/24 23:38:50
optional: can this be const method?
jdufault
2016/08/24 23:54:07
Leaving as non-const for the time being to stay pa
| |
| 38 void TakeScreenshot() override; | 43 void TakeScreenshot() override; |
| 39 void TakePartialScreenshot() override; | 44 void TakePartialScreenshot() override; |
| 40 | 45 |
| 41 bool has_note_app_ = false; | |
| 42 int create_note_count_ = 0; | 46 int create_note_count_ = 0; |
| 43 int has_note_app_count_ = 0; | 47 int has_note_app_count_ = 0; |
| 44 bool partial_magnifier_state_ = false; | 48 bool partial_magnifier_state_ = false; |
| 45 int take_screenshot_count_ = 0; | 49 int take_screenshot_count_ = 0; |
| 46 int take_partial_screenshot_count_ = 0; | 50 int take_partial_screenshot_count_ = 0; |
| 51 bool has_note_app_ = false; | |
| 52 bool should_auto_open_palette_ = false; | |
| 47 | 53 |
| 48 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); | 54 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); |
| 49 }; | 55 }; |
| 50 | 56 |
| 51 } // namespace ash | 57 } // namespace ash |
| 52 | 58 |
| 53 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ | 59 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ |
| OLD | NEW |