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

Unified Diff: chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.cc

Issue 2592983002: [devtools] Support different encodings for Page.CaptureScreenshot. (Closed)
Patch Set: Encode in ui snapshot methods instead. Created 3 years, 12 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
Index: chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.cc
diff --git a/chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.cc b/chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.cc
index fe9264c2a3ce02e1b5356ddf8dc2b4a259381a3c..70ef1648cf91c2f90d8586c617a9d4885d81d6b3 100644
--- a/chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.cc
+++ b/chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.cc
@@ -41,7 +41,7 @@ bool ScreenshotDelegate::IsScreenshotAllowed() {
void ScreenshotDelegate::TakeSnapshot(
gfx::NativeWindow window,
const gfx::Rect& source_rect,
- const ui::GrabWindowSnapshotAsyncPNGCallback& callback) {
+ const ui::GrabWindowSnapshotAsyncEncodedCallback& callback) {
ui::GrabWindowSnapshotAsync(
window, source_rect, blocking_task_runner_,
base::Bind(&ScreenshotDelegate::StoreScreenshot,
@@ -68,7 +68,7 @@ std::unique_ptr<UploadJob> ScreenshotDelegate::CreateUploadJob(
}
void ScreenshotDelegate::StoreScreenshot(
- const ui::GrabWindowSnapshotAsyncPNGCallback& callback,
+ const ui::GrabWindowSnapshotAsyncEncodedCallback& callback,
scoped_refptr<base::RefCountedBytes> png_data) {
callback.Run(png_data);
}

Powered by Google App Engine
This is Rietveld 408576698