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

Side by Side Diff: chrome/browser/ui/views/aura/screenshot_taker.h

Issue 9430041: Makes the visual feedback for taking screenshot. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/aura/screenshot_taker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_SCREENSHOT_TAKER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_SCREENSHOT_TAKER_H_
6 #define CHROME_BROWSER_UI_VIEWS_AURA_SCREENSHOT_TAKER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AURA_SCREENSHOT_TAKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/screenshot_delegate.h" 9 #include "ash/screenshot_delegate.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/gfx/compositor/layer.h"
12 13
13 namespace aura { 14 namespace aura {
14 class Window; 15 class Window;
15 } // namespace aura 16 } // namespace aura
16 17
17 class ScreenshotTaker : public ash::ScreenshotDelegate { 18 class ScreenshotTaker : public ash::ScreenshotDelegate {
18 public: 19 public:
19 ScreenshotTaker(); 20 ScreenshotTaker();
20 21
21 // Overridden from ash::ScreenshotDelegate: 22 // Overridden from ash::ScreenshotDelegate:
22 virtual void HandleTakeScreenshot(aura::Window* window) OVERRIDE; 23 virtual void HandleTakeScreenshot(aura::Window* window) OVERRIDE;
23 virtual void HandleTakePartialScreenshot( 24 virtual void HandleTakePartialScreenshot(
24 aura::Window* window, const gfx::Rect& rect) OVERRIDE; 25 aura::Window* window, const gfx::Rect& rect) OVERRIDE;
25 26
26 private: 27 private:
28 // Flashes the screen to provide visual feedback that a screenshot has
29 // been taken.
30 void DisplayVisualFeedback(const gfx::Rect& rect);
31
32 // Closes the visual feedback layer.
33 void CloseVisualFeedbackLayer();
34
35 scoped_ptr<ui::Layer> visual_feedback_layer_;
36
27 DISALLOW_COPY_AND_ASSIGN(ScreenshotTaker); 37 DISALLOW_COPY_AND_ASSIGN(ScreenshotTaker);
28 }; 38 };
29 39
30 #endif // CHROME_BROWSER_UI_VIEWS_AURA_SCREENSHOT_TAKER_H_ 40 #endif // CHROME_BROWSER_UI_VIEWS_AURA_SCREENSHOT_TAKER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/aura/screenshot_taker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698