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

Unified Diff: chromecast/port/ui/snapshot/snapshot_cast.cc

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an additional function in gl_surface_cast.cc Created 6 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
Index: chromecast/port/ui/snapshot/snapshot_cast.cc
diff --git a/ui/snapshot/snapshot_ios.mm b/chromecast/port/ui/snapshot/snapshot_cast.cc
similarity index 53%
copy from ui/snapshot/snapshot_ios.mm
copy to chromecast/port/ui/snapshot/snapshot_cast.cc
index 872b486512368616e2cf77df4656dbbf9fd12fcb..53abe28c32949b55598c4382844dffa71f74a585 100644
--- a/ui/snapshot/snapshot_ios.mm
+++ b/chromecast/port/ui/snapshot/snapshot_cast.cc
@@ -1,11 +1,10 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/snapshot/snapshot.h"
#include "base/callback.h"
-#include "ui/gfx/image/image.h"
#include "ui/gfx/rect.h"
namespace ui {
@@ -13,26 +12,15 @@ namespace ui {
bool GrabViewSnapshot(gfx::NativeView view,
std::vector<unsigned char>* png_representation,
const gfx::Rect& snapshot_bounds) {
- // TODO(bajones): Implement iOS snapshot functionality
return false;
}
bool GrabWindowSnapshot(gfx::NativeWindow window,
std::vector<unsigned char>* png_representation,
const gfx::Rect& snapshot_bounds) {
- // TODO(bajones): Implement iOS snapshot functionality
return false;
}
-void GrabWindowSnapshotAndScaleAsync(
- gfx::NativeWindow window,
- const gfx::Rect& snapshot_bounds,
- const gfx::Size& target_size,
- scoped_refptr<base::TaskRunner> background_task_runner,
- GrabWindowSnapshotAsyncCallback callback) {
- callback.Run(gfx::Image());
-}
-
void GrabViewSnapshotAsync(
gfx::NativeView view,
const gfx::Rect& source_rect,
@@ -41,12 +29,4 @@ void GrabViewSnapshotAsync(
callback.Run(scoped_refptr<base::RefCountedBytes>());
}
-void GrabWindowSnapshotAsync(
- gfx::NativeWindow window,
- const gfx::Rect& source_rect,
- scoped_refptr<base::TaskRunner> background_task_runner,
- const GrabWindowSnapshotAsyncPNGCallback& callback) {
- callback.Run(scoped_refptr<base::RefCountedBytes>());
-}
-
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698