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

Side by Side Diff: ui/snapshot/snapshot_win.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/snapshot/snapshot_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/snapshot/snapshot_win.h" 5 #include "ui/snapshot/snapshot_win.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/win/scoped_gdi_object.h" 8 #include "base/win/scoped_gdi_object.h"
9 #include "base/win/scoped_hdc.h" 9 #include "base/win/scoped_hdc.h"
10 #include "base/win/scoped_select_object.h" 10 #include "base/win/scoped_select_object.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 DCHECK(window_handle); 117 DCHECK(window_handle);
118 return internal::GrabHwndSnapshot(window_handle, snapshot_bounds, 118 return internal::GrabHwndSnapshot(window_handle, snapshot_bounds,
119 png_representation); 119 png_representation);
120 } 120 }
121 121
122 void GrapWindowSnapshotAsync( 122 void GrapWindowSnapshotAsync(
123 gfx::NativeWindow window, 123 gfx::NativeWindow window,
124 const gfx::Rect& snapshot_bounds, 124 const gfx::Rect& snapshot_bounds,
125 const gfx::Size& target_size, 125 const gfx::Size& target_size,
126 scoped_refptr<base::TaskRunner> background_task_runner, 126 scoped_refptr<base::TaskRunner> background_task_runner,
127 GrapWindowSnapshotAsyncCallback callback) { 127 GrabWindowSnapshotAsyncCallback callback) {
128 NOTIMPLEMENTED(); 128 NOTIMPLEMENTED();
129 } 129 }
130 130
131 void GrabWindowSnapshotAsync( 131 void GrabWindowSnapshotAsync(
132 gfx::NativeWindow window, 132 gfx::NativeWindow window,
133 const gfx::Rect& source_rect, 133 const gfx::Rect& source_rect,
134 scoped_refptr<base::TaskRunner> background_task_runner, 134 scoped_refptr<base::TaskRunner> background_task_runner,
135 const GrabWindowSnapshotAsyncCallback& callback) { 135 const GrabWindowSnapshotAsyncPNGCallback& callback) {
136 NOTIMPLEMENTED(); 136 NOTIMPLEMENTED();
137 } 137 }
138 138
139 #endif // !defined(USE_AURA) 139 #endif // !defined(USE_AURA)
140 140
141 } // namespace ui 141 } // namespace ui
OLDNEW
« no previous file with comments | « ui/snapshot/snapshot_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698