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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_palette_delegate.h
diff --git a/ash/common/test/test_palette_delegate.h b/ash/common/test/test_palette_delegate.h
index 76fa80e8411f2859199cc0b43dd085499b11a0bd..926865439e6f7d76041cf8482652a3432d02a8be 100644
--- a/ash/common/test/test_palette_delegate.h
+++ b/ash/common/test/test_palette_delegate.h
@@ -30,20 +30,28 @@ class TestPaletteDelegate : public PaletteDelegate {
void set_has_note_app(bool has_note_app) { has_note_app_ = has_note_app; }
+ void set_should_auto_open_palette(bool should_auto_open_palette) {
+ should_auto_open_palette_ = should_auto_open_palette;
+ }
+
private:
// PaletteDelegate:
void CreateNote() override;
bool HasNoteApp() override;
void SetPartialMagnifierState(bool enabled) override;
+ void SetStylusStateChangedCallback(
+ const OnStylusStateChangedCallback& on_stylus_state_changed) override;
+ bool ShouldAutoOpenPalette() override;
void TakeScreenshot() override;
void TakePartialScreenshot() override;
- bool has_note_app_ = false;
int create_note_count_ = 0;
int has_note_app_count_ = 0;
bool partial_magnifier_state_ = false;
int take_screenshot_count_ = 0;
int take_partial_screenshot_count_ = 0;
+ bool has_note_app_ = false;
+ bool should_auto_open_palette_ = false;
DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate);
};
« 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