| Index: chrome/browser/ui/ash/screenshot_taker.h
|
| diff --git a/chrome/browser/ui/ash/screenshot_taker.h b/chrome/browser/ui/ash/screenshot_taker.h
|
| index e0540c2607e29c4b976153575e192544433e6dfc..b0a40dbde31607b49dade9eb8f8db508eaa6a9e0 100644
|
| --- a/chrome/browser/ui/ash/screenshot_taker.h
|
| +++ b/chrome/browser/ui/ash/screenshot_taker.h
|
| @@ -5,12 +5,16 @@
|
| #ifndef CHROME_BROWSER_UI_ASH_SCREENSHOT_TAKER_H_
|
| #define CHROME_BROWSER_UI_ASH_SCREENSHOT_TAKER_H_
|
|
|
| +#include <map>
|
| +
|
| #include "ash/screenshot_delegate.h"
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/time.h"
|
| #include "ui/compositor/layer.h"
|
|
|
| namespace aura {
|
| +class RootWindow;
|
| class Window;
|
| } // namespace aura
|
|
|
| @@ -21,8 +25,8 @@ class ScreenshotTaker : public ash::ScreenshotDelegate {
|
|
|
| // Overridden from ash::ScreenshotDelegate:
|
| virtual void HandleTakeScreenshot(aura::Window* window) OVERRIDE;
|
| - virtual void HandleTakePartialScreenshot(
|
| - aura::Window* window, const gfx::Rect& rect) OVERRIDE;
|
| + virtual void HandleTakePartialScreenshot(aura::Window* window,
|
| + const gfx::Rect& rect) OVERRIDE;
|
|
|
| private:
|
| // Flashes the screen to provide visual feedback that a screenshot has
|
| @@ -32,6 +36,11 @@ class ScreenshotTaker : public ash::ScreenshotDelegate {
|
| // Closes the visual feedback layer.
|
| void CloseVisualFeedbackLayer();
|
|
|
| + // The timestamp when the last screenshot was taken for the root window.
|
| + std::map<aura::RootWindow*, base::Time> last_screenshot_timestamps_;
|
| +
|
| + // The flashing effect of the screen for the visual feedback when taking a
|
| + // screenshot.
|
| scoped_ptr<ui::Layer> visual_feedback_layer_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ScreenshotTaker);
|
|
|