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

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

Issue 9874030: Revert http://codereview.chromium.org/9838043/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/ash/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_ASH_SCREENSHOT_TAKER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_SCREENSHOT_TAKER_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_SCREENSHOT_TAKER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ASH_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/callback.h"
12 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
13 #include "ui/gfx/compositor/layer.h" 12 #include "ui/gfx/compositor/layer.h"
14 13
15 namespace aura { 14 namespace aura {
16 class Window; 15 class Window;
17 } // namespace aura 16 } // namespace aura
18 17
19 class ScreenshotTaker : public ash::ScreenshotDelegate { 18 class ScreenshotTaker : public ash::ScreenshotDelegate {
20 public: 19 public:
21 ScreenshotTaker(); 20 ScreenshotTaker();
22 virtual ~ScreenshotTaker(); 21 virtual ~ScreenshotTaker();
23 22
24 // Overridden from ash::ScreenshotDelegate: 23 // Overridden from ash::ScreenshotDelegate:
25 virtual void HandleTakeScreenshot(aura::Window* window) OVERRIDE; 24 virtual void HandleTakeScreenshot(aura::Window* window) OVERRIDE;
26 virtual void HandleTakePartialScreenshot( 25 virtual void HandleTakePartialScreenshot(
27 aura::Window* window, const gfx::Rect& rect) OVERRIDE; 26 aura::Window* window, const gfx::Rect& rect) OVERRIDE;
28 27
29 private: 28 private:
30 // Flashes the screen to provide visual feedback that a screenshot has 29 // Flashes the screen to provide visual feedback that a screenshot has
31 // been taken. |task| runs after the visual feedback finishes. 30 // been taken.
32 void DisplayVisualFeedback(const gfx::Rect& rect, const base::Closure& task); 31 void DisplayVisualFeedback(const gfx::Rect& rect);
33 32
34 // Closes the visual feedback layer. |task| runs after the visual 33 // Closes the visual feedback layer.
35 // feedback finishes. 34 void CloseVisualFeedbackLayer();
36 void CloseVisualFeedbackLayer(const base::Closure& task);
37 35
38 scoped_ptr<ui::Layer> visual_feedback_layer_; 36 scoped_ptr<ui::Layer> visual_feedback_layer_;
39 37
40 DISALLOW_COPY_AND_ASSIGN(ScreenshotTaker); 38 DISALLOW_COPY_AND_ASSIGN(ScreenshotTaker);
41 }; 39 };
42 40
43 #endif // CHROME_BROWSER_UI_VIEWS_ASH_SCREENSHOT_TAKER_H_ 41 #endif // CHROME_BROWSER_UI_VIEWS_ASH_SCREENSHOT_TAKER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/ash/screenshot_taker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698