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

Side by Side Diff: ui/snapshot/snapshot_ios.mm

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_gtk.cc ('k') | ui/snapshot/snapshot_mac.mm » ('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.h" 5 #include "ui/snapshot/snapshot.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "ui/gfx/rect.h" 8 #include "ui/gfx/rect.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 bool GrabViewSnapshot(gfx::NativeView view, 12 bool GrabViewSnapshot(gfx::NativeView view,
13 std::vector<unsigned char>* png_representation, 13 std::vector<unsigned char>* png_representation,
14 const gfx::Rect& snapshot_bounds) { 14 const gfx::Rect& snapshot_bounds) {
15 // TODO(bajones): Implement iOS snapshot functionality 15 // TODO(bajones): Implement iOS snapshot functionality
16 return false; 16 return false;
17 } 17 }
18 18
19 bool GrabWindowSnapshot(gfx::NativeWindow window, 19 bool GrabWindowSnapshot(gfx::NativeWindow window,
20 std::vector<unsigned char>* png_representation, 20 std::vector<unsigned char>* png_representation,
21 const gfx::Rect& snapshot_bounds) { 21 const gfx::Rect& snapshot_bounds) {
22 // TODO(bajones): Implement iOS snapshot functionality 22 // TODO(bajones): Implement iOS snapshot functionality
23 return false; 23 return false;
24 } 24 }
25 25
26 SNAPSHOT_EXPORT void GrabWindowSnapshotAsync( 26 void GrabWindowSnapshotAndScaleAsync(
27 gfx::NativeWindow window, 27 gfx::NativeWindow window,
28 const gfx::Rect& snapshot_bounds, 28 const gfx::Rect& snapshot_bounds,
29 const gfx::Size& target_size, 29 const gfx::Size& target_size,
30 scoped_refptr<base::TaskRunner> background_task_runner, 30 scoped_refptr<base::TaskRunner> background_task_runner,
31 GrabWindowSnapshotAsyncCallback callback) { 31 GrabWindowSnapshotAsyncCallback callback) {
32 NOTIMPLEMENTED(); 32 NOTIMPLEMENTED();
33 } 33 }
34 34
35 void GrabWindowSnapshotAsync(
36 gfx::NativeWindow window,
37 const gfx::Rect& source_rect,
38 scoped_refptr<base::TaskRunner> background_task_runner,
39 const GrabWindowSnapshotAsyncCallback& callback) {
40 NOTIMPLEMENTED();
41 }
42
35 } // namespace ui 43 } // namespace ui
OLDNEW
« no previous file with comments | « ui/snapshot/snapshot_gtk.cc ('k') | ui/snapshot/snapshot_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698