| 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 #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::SetPartialMagnifierState(bool enabled) { | |
| 29 partial_magnifier_state_ = enabled; | |
| 30 } | |
| 31 | |
| 32 void TestPaletteDelegate::SetStylusStateChangedCallback( | 28 void TestPaletteDelegate::SetStylusStateChangedCallback( |
| 33 const PaletteDelegate::OnStylusStateChangedCallback& | 29 const PaletteDelegate::OnStylusStateChangedCallback& |
| 34 on_stylus_state_changed) {} | 30 on_stylus_state_changed) {} |
| 35 | 31 |
| 36 bool TestPaletteDelegate::ShouldAutoOpenPalette() { | 32 bool TestPaletteDelegate::ShouldAutoOpenPalette() { |
| 37 return should_auto_open_palette_; | 33 return should_auto_open_palette_; |
| 38 } | 34 } |
| 39 | 35 |
| 40 bool TestPaletteDelegate::ShouldShowPalette() { | 36 bool TestPaletteDelegate::ShouldShowPalette() { |
| 41 return should_show_palette_; | 37 return should_show_palette_; |
| 42 } | 38 } |
| 43 | 39 |
| 44 void TestPaletteDelegate::TakeScreenshot() { | 40 void TestPaletteDelegate::TakeScreenshot() { |
| 45 ++take_screenshot_count_; | 41 ++take_screenshot_count_; |
| 46 } | 42 } |
| 47 | 43 |
| 48 void TestPaletteDelegate::TakePartialScreenshot(const base::Closure& done) { | 44 void TestPaletteDelegate::TakePartialScreenshot(const base::Closure& done) { |
| 49 ++take_partial_screenshot_count_; | 45 ++take_partial_screenshot_count_; |
| 50 partial_screenshot_done_ = done; | 46 partial_screenshot_done_ = done; |
| 51 } | 47 } |
| 52 | 48 |
| 53 void TestPaletteDelegate::CancelPartialScreenshot() {} | 49 void TestPaletteDelegate::CancelPartialScreenshot() {} |
| 54 | 50 |
| 55 } // namespace ash | 51 } // namespace ash |
| OLD | NEW |