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

Unified Diff: ash/common/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: 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
Index: ash/common/palette_delegate.h
diff --git a/ash/common/palette_delegate.h b/ash/common/palette_delegate.h
index c84bc00cb1226828694968214e63020337d39121..3aa81697d32e46aeeccea218252c228277210c2b 100644
--- a/ash/common/palette_delegate.h
+++ b/ash/common/palette_delegate.h
@@ -54,8 +54,13 @@ class PaletteDelegate {
// Take a screenshot of the entire window.
virtual void TakeScreenshot() = 0;
- // Take a screenshot of a user-selected region.
- virtual void TakePartialScreenshot() = 0;
+ // Take a screenshot of a user-selected region. |done| is called when the
+ // partial screenshot session has finished; a screenshot may or may not have
+ // been taken.
+ virtual void TakePartialScreenshot(const base::Closure& done) = 0;
+
+ // Cancels any active partial screenshot session.
+ virtual void CancelPartialScreenshot() = 0;
private:
DISALLOW_ASSIGN(PaletteDelegate);

Powered by Google App Engine
This is Rietveld 408576698