Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: ash/common/test/test_palette_delegate.h

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Initial upload Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SetPartialMagnifierState(bool enabled) override; 51 void SetPartialMagnifierState(bool enabled) override;
52 void SetStylusStateChangedCallback(
53 const OnStylusStateChangedCallback& on_stylus_state_changed) override;
54 bool ShouldAutoOpenPalette() override; 52 bool ShouldAutoOpenPalette() override;
55 bool ShouldShowPalette() override; 53 bool ShouldShowPalette() override;
56 void TakeScreenshot() override; 54 void TakeScreenshot() override;
57 void TakePartialScreenshot(const base::Closure& done) override; 55 void TakePartialScreenshot(const base::Closure& done) override;
58 void CancelPartialScreenshot() override; 56 void CancelPartialScreenshot() override;
59 57
60 int create_note_count_ = 0; 58 int create_note_count_ = 0;
61 int has_note_app_count_ = 0; 59 int has_note_app_count_ = 0;
62 bool partial_magnifier_state_ = false; 60 bool partial_magnifier_state_ = false;
63 int take_screenshot_count_ = 0; 61 int take_screenshot_count_ = 0;
64 int take_partial_screenshot_count_ = 0; 62 int take_partial_screenshot_count_ = 0;
65 base::Closure partial_screenshot_done_; 63 base::Closure partial_screenshot_done_;
66 bool has_note_app_ = false; 64 bool has_note_app_ = false;
67 bool should_auto_open_palette_ = false; 65 bool should_auto_open_palette_ = false;
68 bool should_show_palette_ = false; 66 bool should_show_palette_ = false;
69 67
70 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); 68 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate);
71 }; 69 };
72 70
73 } // namespace ash 71 } // namespace ash
74 72
75 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ 73 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698