diff options
author | mukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-09 06:42:38 +0000 |
---|---|---|
committer | mukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-09 06:42:38 +0000 |
commit | 0d0133ef96fec5bbecf3858607162c75d92d0e95 (patch) | |
tree | 5018b344645243e7caaf367022b83374486a167d /ash/screenshot_delegate.h | |
parent | e366ff52ec3ea85a17fdc56e2dd206c7f94e6c6c (diff) | |
download | chromium_src-0d0133ef96fec5bbecf3858607162c75d92d0e95.zip chromium_src-0d0133ef96fec5bbecf3858607162c75d92d0e95.tar.gz chromium_src-0d0133ef96fec5bbecf3858607162c75d92d0e95.tar.bz2 |
Brushes up the code of screenshot filename.
Currently it just checks the filename duplication and adding numbers (1),(2),... in
case of duplication. But this doesn't work well if the file will be stored into GoogleDrive,
since file operations are not atomic there.
This CL does the followings:
- the screenshot taker accepts "taking a screenshot for each root window" requests
rather than taking a screenshot for the specified window
- adding the number in case of multiple root-windows, in screenshot taker side
- change the screenshot interval from 500msec -> 1sec, to avoid the duplication
- remove the existing filename duplication checking code, which is no longer necessary
BUG=140749
Review URL: https://chromiumcodereview.appspot.com/10827193
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/screenshot_delegate.h')
-rw-r--r-- | ash/screenshot_delegate.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ash/screenshot_delegate.h b/ash/screenshot_delegate.h index fe194e8..9e7af06 100644 --- a/ash/screenshot_delegate.h +++ b/ash/screenshot_delegate.h @@ -20,10 +20,9 @@ class ScreenshotDelegate { public: virtual ~ScreenshotDelegate() {} - // The actual task of taking a screenshot for the given window. - // 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 screenshot for each root window. + // This method is called when the user wants to take a screenshot manually. + virtual void HandleTakeScreenshotForAllRootWindows() = 0; // The actual task of taking a partial screenshot for the given // window. |