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

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

Issue 126373002: Make ChromeOS screenshots use async readback path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix rebase error Created 6 years, 11 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 | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/ui/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/ash/screenshot_taker.h
diff --git a/chrome/browser/ui/ash/screenshot_taker.h b/chrome/browser/ui/ash/screenshot_taker.h
index 7583ea14de42ff19bf0d5b7cd000a89f341216e0..3bb7918380a2939b78f04e34ef91a755b69b74db 100644
--- a/chrome/browser/ui/ash/screenshot_taker.h
+++ b/chrome/browser/ui/ash/screenshot_taker.h
@@ -72,6 +72,21 @@ class ScreenshotTaker : public ash::ScreenshotDelegate {
private:
friend class ash::test::ScreenshotTakerTest;
+ void GrabWindowSnapshotAsyncCallback(
+ base::FilePath screenshot_path,
+ bool is_partial,
+ int window_idx,
+ scoped_refptr<base::RefCountedBytes> png_data);
+ void GrabPartialWindowSnapshotAsync(aura::Window* window,
+ const gfx::Rect& snapshot_bounds,
+ Profile* profile,
+ base::FilePath screenshot_path);
+ void GrabFullWindowSnapshotAsync(aura::Window* window,
+ const gfx::Rect& snapshot_bounds,
+ Profile* profile,
+ base::FilePath screenshot_path,
+ int window_idx);
+
Profile* GetProfile();
void SetScreenshotDirectoryForTest(const base::FilePath& directory);
void SetScreenshotBasenameForTest(const std::string& basename);
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/ui/ash/screenshot_taker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698