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

Unified Diff: chrome/browser/ui/views/ash/screenshot_taker.h

Issue 9838043: Change the order of visual feedback effect and grabbing screenshot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary comment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/ash/screenshot_taker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/ash/screenshot_taker.h
diff --git a/chrome/browser/ui/views/ash/screenshot_taker.h b/chrome/browser/ui/views/ash/screenshot_taker.h
index d3d2a688e80b2be3759561b53290c7c6837d5478..1f3c643a34471d594232755bdcf267fafd6a8434 100644
--- a/chrome/browser/ui/views/ash/screenshot_taker.h
+++ b/chrome/browser/ui/views/ash/screenshot_taker.h
@@ -8,6 +8,7 @@
#include "ash/screenshot_delegate.h"
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/compiler_specific.h"
#include "ui/gfx/compositor/layer.h"
@@ -27,11 +28,12 @@ class ScreenshotTaker : public ash::ScreenshotDelegate {
private:
// Flashes the screen to provide visual feedback that a screenshot has
- // been taken.
- void DisplayVisualFeedback(const gfx::Rect& rect);
+ // been taken. |task| runs after the visual feedback finishes.
+ void DisplayVisualFeedback(const gfx::Rect& rect, const base::Closure& task);
- // Closes the visual feedback layer.
- void CloseVisualFeedbackLayer();
+ // Closes the visual feedback layer. |task| runs after the visual
+ // feedback finishes.
+ void CloseVisualFeedbackLayer(const base::Closure& task);
scoped_ptr<ui::Layer> visual_feedback_layer_;
« 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