Commit bff4507f authored by enne@chromium.org's avatar enne@chromium.org

Fix GrapWindowSnapshot typo

BUG=none

Review URL: https://codereview.chromium.org/123473002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243152 0039d316-1c4b-4281-b951-d872f2087c98
parent 857e9907
......@@ -181,7 +181,7 @@ void DesktopMediaListAsh::CaptureThumbnail(content::DesktopMediaID id,
gfx::Rect(thumbnail_size_), window_rect.size());
++pending_window_capture_requests_;
ui::GrapWindowSnapshotAsync(
ui::GrabWindowSnapshotAsync(
window, window_rect,
scaled_rect.size(),
BrowserThread::GetBlockingPool(),
......
......@@ -27,7 +27,7 @@ namespace ui {
// Grabs a snapshot of the window/view. No security checks are done. This is
// intended to be used for debugging purposes where no BrowserProcess instance
// is available (ie. tests). This function is synchronous, so it should NOT be
// used in a result of user action. Use asynchronous GrapWindowSnapshotAsync()
// used in a result of user action. Use asynchronous GrabWindowSnapshotAsync()
// instead.
SNAPSHOT_EXPORT bool GrabWindowSnapshot(
gfx::NativeWindow window,
......@@ -39,16 +39,16 @@ SNAPSHOT_EXPORT bool GrabViewSnapshot(
std::vector<unsigned char>* png_representation,
const gfx::Rect& snapshot_bounds);
// GrapWindowSnapshotAsync() copies snapshot of |source_rect| from window and
// GrabWindowSnapshotAsync() copies snapshot of |source_rect| from window and
// scales it to |target_size| asynchronously.
typedef base::Callback<void(const gfx::Image& snapshot)>
GrapWindowSnapshotAsyncCallback;
SNAPSHOT_EXPORT void GrapWindowSnapshotAsync(
GrabWindowSnapshotAsyncCallback;
SNAPSHOT_EXPORT void GrabWindowSnapshotAsync(
gfx::NativeWindow window,
const gfx::Rect& source_rect,
const gfx::Size& target_size,
scoped_refptr<base::TaskRunner> background_task_runner,
const GrapWindowSnapshotAsyncCallback& callback);
const GrabWindowSnapshotAsyncCallback& callback);
} // namespace ui
......
......@@ -33,12 +33,12 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
scaled_bounds.height(), png_representation);
}
SNAPSHOT_EXPORT void GrapWindowSnapshotAsync(
SNAPSHOT_EXPORT void GrabWindowSnapshotAsync(
gfx::NativeWindow window,
const gfx::Rect& snapshot_bounds,
const gfx::Size& target_size,
scoped_refptr<base::TaskRunner> background_task_runner,
GrapWindowSnapshotAsyncCallback callback) {
GrabWindowSnapshotAsyncCallback callback) {
NOTIMPLEMENTED();
}
......
......@@ -35,13 +35,13 @@ namespace ui {
namespace {
void OnFrameScalingFinished(
const GrapWindowSnapshotAsyncCallback& callback,
const GrabWindowSnapshotAsyncCallback& callback,
const SkBitmap& scaled_bitmap) {
callback.Run(gfx::Image(gfx::ImageSkia::CreateFrom1xBitmap(scaled_bitmap)));
}
void ScaleCopyOutputResult(
const GrapWindowSnapshotAsyncCallback& callback,
const GrabWindowSnapshotAsyncCallback& callback,
const gfx::Size& target_size,
scoped_refptr<base::TaskRunner> background_task_runner,
scoped_ptr<cc::CopyOutputResult> result) {
......@@ -136,12 +136,12 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
png_representation);
}
SNAPSHOT_EXPORT void GrapWindowSnapshotAsync(
SNAPSHOT_EXPORT void GrabWindowSnapshotAsync(
gfx::NativeWindow window,
const gfx::Rect& source_rect,
const gfx::Size& target_size,
scoped_refptr<base::TaskRunner> background_task_runner,
const GrapWindowSnapshotAsyncCallback& callback) {
const GrabWindowSnapshotAsyncCallback& callback) {
scoped_ptr<cc::CopyOutputRequest> request =
cc::CopyOutputRequest::CreateBitmapRequest(
base::Bind(&ScaleCopyOutputResult, callback, target_size,
......
......@@ -83,12 +83,12 @@ bool GrabWindowSnapshot(gfx::NativeWindow window_handle,
snapshot_bounds);
}
SNAPSHOT_EXPORT void GrapWindowSnapshotAsync(
SNAPSHOT_EXPORT void GrabWindowSnapshotAsync(
gfx::NativeWindow window,
const gfx::Rect& snapshot_bounds,
const gfx::Size& target_size,
scoped_refptr<base::TaskRunner> background_task_runner,
GrapWindowSnapshotAsyncCallback callback) {
GrabWindowSnapshotAsyncCallback callback) {
NOTIMPLEMENTED();
}
......
......@@ -23,12 +23,12 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
return false;
}
SNAPSHOT_EXPORT void GrapWindowSnapshotAsync(
SNAPSHOT_EXPORT void GrabWindowSnapshotAsync(
gfx::NativeWindow window,
const gfx::Rect& snapshot_bounds,
const gfx::Size& target_size,
scoped_refptr<base::TaskRunner> background_task_runner,
GrapWindowSnapshotAsyncCallback callback) {
GrabWindowSnapshotAsyncCallback callback) {
NOTIMPLEMENTED();
}
......
......@@ -73,12 +73,12 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
snapshot_bounds);
}
SNAPSHOT_EXPORT void GrapWindowSnapshotAsync(
SNAPSHOT_EXPORT void GrabWindowSnapshotAsync(
gfx::NativeWindow window,
const gfx::Rect& snapshot_bounds,
const gfx::Size& target_size,
scoped_refptr<base::TaskRunner> background_task_runner,
GrapWindowSnapshotAsyncCallback callback) {
GrabWindowSnapshotAsyncCallback callback) {
NOTIMPLEMENTED();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment