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

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: 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/system/chromeos/palette/palette_ids.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/palette_delegate.h
diff --git a/ash/common/palette_delegate.h b/ash/common/palette_delegate.h
index 93f41438abf575423978565487f1f8a07adbbfa3..8b6be72891504488cd105dfb5db06c016af2d834 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;
// Called when the laser pointer has been enabled or disabled.
virtual void OnLaserPointerEnabled() = 0;
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/system/chromeos/palette/palette_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698