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

Unified Diff: ash/common/test/test_palette_delegate.h

Issue 2291913002: Allow the user to cancel the capture region action, and show its active status in the tray. (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 side-by-side diff with in-line comments
Download patch
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 c0f305877e2fb83db1ea8a07e4bad741049cb8d5..f29ddb6c60447fc4e65233e5395bd857b879c8fd 100644
--- a/ash/common/test/test_palette_delegate.h
+++ b/ash/common/test/test_palette_delegate.h
@@ -28,6 +28,10 @@ class TestPaletteDelegate : public PaletteDelegate {
return take_partial_screenshot_count_;
}
+ base::Closure partial_screenshot_done() const {
+ return partial_screenshot_done_;
+ }
+
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) {
@@ -44,21 +48,23 @@ class TestPaletteDelegate : public PaletteDelegate {
const EnableListener& on_state_changed) override;
void CreateNote() override;
bool HasNoteApp() override;
+ void OnLaserPointerEnabled() override;
+ void OnLaserPointerDisabled() override;
void SetPartialMagnifierState(bool enabled) override;
void SetStylusStateChangedCallback(
const OnStylusStateChangedCallback& on_stylus_state_changed) override;
bool ShouldAutoOpenPalette() override;
bool ShouldShowPalette() override;
void TakeScreenshot() override;
- void TakePartialScreenshot() override;
- void OnLaserPointerEnabled() override;
- void OnLaserPointerDisabled() override;
+ void TakePartialScreenshot(const base::Closure& done) override;
+ void CancelPartialScreenshot() override;
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;
+ base::Closure partial_screenshot_done_;
bool has_note_app_ = false;
bool should_auto_open_palette_ = false;
bool should_show_palette_ = false;
« no previous file with comments | « ash/common/system/chromeos/palette/tools/screenshot_unittest.cc ('k') | ash/common/test/test_palette_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698