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

Unified Diff: ash/utility/screenshot_controller.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/shell/shell_delegate_impl.cc ('k') | ash/utility/screenshot_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/utility/screenshot_controller.h
diff --git a/ash/utility/screenshot_controller.h b/ash/utility/screenshot_controller.h
index 676ed9e9c10811815d188bef9e79ea5425a9e0f8..8416bbd3d2731dcf0334d87e81caa4bc358a2a52 100644
--- a/ash/utility/screenshot_controller.h
+++ b/ash/utility/screenshot_controller.h
@@ -54,6 +54,9 @@ class ASH_EXPORT ScreenshotController : public ui::EventHandler,
// Starts the UI for taking a window screenshot;
void StartWindowScreenshotSession(ScreenshotDelegate* screenshot_delegate);
+ // Cancels any active screenshot session.
+ void CancelScreenshotSession();
+
// If set to true, then only events generated by a pen can be used to select
// the area to take a screenshot of. This is reset to false after a screenshot
// operation is completed.
@@ -78,7 +81,6 @@ class ASH_EXPORT ScreenshotController : public ui::EventHandler,
void MaybeStart(const ui::LocatedEvent& event);
void CompleteWindowScreenshot();
void CompletePartialScreenshot();
- void Cancel();
void Update(const ui::LocatedEvent& event);
void UpdateSelectedWindow(ui::LocatedEvent* event);
void SetSelectedWindow(aura::Window* window);
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/utility/screenshot_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698