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

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

Issue 2276233002: ash/chromeos: Add shift-alt-p shortcut to open palette. (Closed)
Patch Set: Address comments Created 4 years, 3 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
« no previous file with comments | « ash/common/system/status_area_widget.h ('k') | ash/common/test/test_palette_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
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) { 33 void set_should_auto_open_palette(bool should_auto_open_palette) {
34 should_auto_open_palette_ = should_auto_open_palette; 34 should_auto_open_palette_ = should_auto_open_palette;
35 } 35 }
36 36
37 void set_should_show_palette(bool should_show_palette) {
38 should_show_palette_ = should_show_palette;
39 }
40
37 private: 41 private:
38 // PaletteDelegate: 42 // PaletteDelegate:
39 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( 43 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener(
40 const EnableListener& on_state_changed) override; 44 const EnableListener& on_state_changed) override;
41 void CreateNote() override; 45 void CreateNote() override;
42 bool HasNoteApp() override; 46 bool HasNoteApp() override;
43 void SetPartialMagnifierState(bool enabled) override; 47 void SetPartialMagnifierState(bool enabled) override;
44 void SetStylusStateChangedCallback( 48 void SetStylusStateChangedCallback(
45 const OnStylusStateChangedCallback& on_stylus_state_changed) override; 49 const OnStylusStateChangedCallback& on_stylus_state_changed) override;
46 bool ShouldAutoOpenPalette() override; 50 bool ShouldAutoOpenPalette() override;
51 bool ShouldShowPalette() override;
47 void TakeScreenshot() override; 52 void TakeScreenshot() override;
48 void TakePartialScreenshot() override; 53 void TakePartialScreenshot() override;
49 54
50 int create_note_count_ = 0; 55 int create_note_count_ = 0;
51 int has_note_app_count_ = 0; 56 int has_note_app_count_ = 0;
52 bool partial_magnifier_state_ = false; 57 bool partial_magnifier_state_ = false;
53 int take_screenshot_count_ = 0; 58 int take_screenshot_count_ = 0;
54 int take_partial_screenshot_count_ = 0; 59 int take_partial_screenshot_count_ = 0;
55 bool has_note_app_ = false; 60 bool has_note_app_ = false;
56 bool should_auto_open_palette_ = false; 61 bool should_auto_open_palette_ = false;
62 bool should_show_palette_ = false;
57 63
58 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); 64 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate);
59 }; 65 };
60 66
61 } // namespace ash 67 } // namespace ash
62 68
63 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ 69 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/system/status_area_widget.h ('k') | ash/common/test/test_palette_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698