summaryrefslogtreecommitdiffstats
path: root/ash/screenshot_delegate.h
diff options
context:
space:
mode:
authormukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-07 23:40:19 +0000
committermukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-07 23:40:19 +0000
commite26cff289ba14edca845c4408b690c139a2fbfa7 (patch)
tree6f3b3721ebc872ef27f941c6e01fec21afdf13ec /ash/screenshot_delegate.h
parent150967723fc2f9361b33f8968ea5c3ba2b2244bc (diff)
downloadchromium_src-e26cff289ba14edca845c4408b690c139a2fbfa7.zip
chromium_src-e26cff289ba14edca845c4408b690c139a2fbfa7.tar.gz
chromium_src-e26cff289ba14edca845c4408b690c139a2fbfa7.tar.bz2
Introduce a method for partial screenshot.
BUG=108763 TEST=manually Review URL: http://codereview.chromium.org/9325086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120859 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/screenshot_delegate.h')
-rw-r--r--ash/screenshot_delegate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ash/screenshot_delegate.h b/ash/screenshot_delegate.h
index 62ead29..96e67bb 100644
--- a/ash/screenshot_delegate.h
+++ b/ash/screenshot_delegate.h
@@ -10,6 +10,10 @@ namespace aura {
class Window;
} // namespace aura
+namespace gfx {
+class Rect;
+} // namespace gfx
+
namespace ash {
// Delegate for taking screenshots.
@@ -21,6 +25,11 @@ class ScreenshotDelegate {
// This method is called when the user wants to take a screenshot
// manually.
virtual void HandleTakeScreenshot(aura::Window* window) = 0;
+
+ // The actual task of taking a partial screenshot for the given
+ // window.
+ virtual void HandleTakePartialScreenshot(
+ aura::Window* window, const gfx::Rect& rect) = 0;
};
} // namespace ash