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

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

Issue 100833002: Add AshDesktopMediaList and enable Desktop Capture API on Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
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/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/scoped_cftyperef.h" 10 #include "base/mac/scoped_cftyperef.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 bool GrabWindowSnapshot(gfx::NativeWindow window, 66 bool GrabWindowSnapshot(gfx::NativeWindow window,
67 std::vector<unsigned char>* png_representation, 67 std::vector<unsigned char>* png_representation,
68 const gfx::Rect& snapshot_bounds) { 68 const gfx::Rect& snapshot_bounds) {
69 // Make sure to grab the "window frame" view so we get current tab + 69 // Make sure to grab the "window frame" view so we get current tab +
70 // tabstrip. 70 // tabstrip.
71 return GrabViewSnapshot([[window contentView] superview], png_representation, 71 return GrabViewSnapshot([[window contentView] superview], png_representation,
72 snapshot_bounds); 72 snapshot_bounds);
73 } 73 }
74 74
75 SNAPSHOT_EXPORT void GrapWindowSnapshotAsync(
76 gfx::NativeWindow window,
77 const gfx::Rect& snapshot_bounds,
78 const gfx::Size& target_size,
79 scoped_refptr<base::TaskRunner> background_task_runner,
80 GrapWindowSnapshotAsyncCallback callback) {
81 NOTIMPLEMENTED();
82 }
83
75 } // namespace ui 84 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698