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

Side by Side Diff: ui/snapshot/snapshot_mac.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_ios.mm ('k') | ui/snapshot/snapshot_win.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.h" 5 #include "ui/snapshot/snapshot.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 bool GrabWindowSnapshot(gfx::NativeWindow window, 67 bool GrabWindowSnapshot(gfx::NativeWindow window,
68 std::vector<unsigned char>* png_representation, 68 std::vector<unsigned char>* png_representation,
69 const gfx::Rect& snapshot_bounds) { 69 const gfx::Rect& snapshot_bounds) {
70 // Make sure to grab the "window frame" view so we get current tab + 70 // Make sure to grab the "window frame" view so we get current tab +
71 // tabstrip. 71 // tabstrip.
72 return GrabViewSnapshot([[window contentView] superview], png_representation, 72 return GrabViewSnapshot([[window contentView] superview], png_representation,
73 snapshot_bounds); 73 snapshot_bounds);
74 } 74 }
75 75
76 SNAPSHOT_EXPORT void GrabWindowSnapshotAsync( 76 void GrabWindowSnapshotAndScaleAsync(
77 gfx::NativeWindow window, 77 gfx::NativeWindow window,
78 const gfx::Rect& snapshot_bounds, 78 const gfx::Rect& snapshot_bounds,
79 const gfx::Size& target_size, 79 const gfx::Size& target_size,
80 scoped_refptr<base::TaskRunner> background_task_runner, 80 scoped_refptr<base::TaskRunner> background_task_runner,
81 GrabWindowSnapshotAsyncCallback callback) { 81 GrabWindowSnapshotAsyncCallback callback) {
82 NOTIMPLEMENTED(); 82 NOTIMPLEMENTED();
83 } 83 }
84 84
85 void GrabWindowSnapshotAsync(
86 gfx::NativeWindow window,
87 const gfx::Rect& source_rect,
88 scoped_refptr<base::TaskRunner> background_task_runner,
89 const GrabWindowSnapshotAsyncCallback& callback) {
90 NOTIMPLEMENTED();
91 }
92
85 } // namespace ui 93 } // namespace ui
OLDNEW
« no previous file with comments | « ui/snapshot/snapshot_ios.mm ('k') | ui/snapshot/snapshot_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698