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

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

Issue 2234203002: Auto open and close the palette on an eject event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-note
Patch Set: Use weak ptr 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
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 12 matching lines...) Expand all
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 void SetStylusStateChangedCallback(
43 const OnStylusStateChangedCallback& on_stylus_state_changed) override;
44 bool ShouldAutoOpenPalette() override;
38 void TakeScreenshot() override; 45 void TakeScreenshot() override;
39 void TakePartialScreenshot() override; 46 void TakePartialScreenshot() override;
40 47
41 bool has_note_app_ = false;
42 int create_note_count_ = 0; 48 int create_note_count_ = 0;
43 int has_note_app_count_ = 0; 49 int has_note_app_count_ = 0;
44 bool partial_magnifier_state_ = false; 50 bool partial_magnifier_state_ = false;
45 int take_screenshot_count_ = 0; 51 int take_screenshot_count_ = 0;
46 int take_partial_screenshot_count_ = 0; 52 int take_partial_screenshot_count_ = 0;
53 bool has_note_app_ = false;
54 bool should_auto_open_palette_ = false;
47 55
48 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate); 56 DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate);
49 }; 57 };
50 58
51 } // namespace ash 59 } // namespace ash
52 60
53 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_ 61 #endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/palette/palette_tray.cc ('k') | ash/common/test/test_palette_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698