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

Unified 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, 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/status_area_widget.h ('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 efbd3f97c59533977fd479d03867886b7f4f394c..c96ff4209a38cbf9988f01b0356e8ca9453a622e 100644
--- a/ash/common/test/test_palette_delegate.h
+++ b/ash/common/test/test_palette_delegate.h
@@ -34,6 +34,10 @@ class TestPaletteDelegate : public PaletteDelegate {
should_auto_open_palette_ = should_auto_open_palette;
}
+ void set_should_show_palette(bool should_show_palette) {
+ should_show_palette_ = should_show_palette;
+ }
+
private:
// PaletteDelegate:
std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener(
@@ -44,6 +48,7 @@ class TestPaletteDelegate : public PaletteDelegate {
void SetStylusStateChangedCallback(
const OnStylusStateChangedCallback& on_stylus_state_changed) override;
bool ShouldAutoOpenPalette() override;
+ bool ShouldShowPalette() override;
void TakeScreenshot() override;
void TakePartialScreenshot() override;
@@ -54,6 +59,7 @@ class TestPaletteDelegate : public PaletteDelegate {
int take_partial_screenshot_count_ = 0;
bool has_note_app_ = false;
bool should_auto_open_palette_ = false;
+ bool should_show_palette_ = false;
DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate);
};
« 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