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

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

Issue 119753007: Add GrabWindowSnapshotAsync tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, compiling 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') | ui/views/test/views_test_base.cc » ('j') | 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 113
114 bool GrabWindowSnapshot(gfx::NativeWindow window_handle, 114 bool GrabWindowSnapshot(gfx::NativeWindow window_handle,
115 std::vector<unsigned char>* png_representation, 115 std::vector<unsigned char>* png_representation,
116 const gfx::Rect& snapshot_bounds) { 116 const gfx::Rect& snapshot_bounds) {
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 SNAPSHOT_EXPORT 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 GrapWindowSnapshotAsyncCallback callback) {
128 NOTIMPLEMENTED(); 128 NOTIMPLEMENTED();
129 } 129 }
130 130
131 void GrabWindowSnapshotAsync(
132 gfx::NativeWindow window,
133 const gfx::Rect& source_rect,
134 scoped_refptr<base::TaskRunner> background_task_runner,
135 const GrabWindowSnapshotAsyncCallback& callback) {
136 NOTIMPLEMENTED();
137 }
138
131 #endif // !defined(USE_AURA) 139 #endif // !defined(USE_AURA)
132 140
133 } // namespace ui 141 } // namespace ui
OLDNEW
« no previous file with comments | « ui/snapshot/snapshot_mac.mm ('k') | ui/views/test/views_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698