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

Unified Diff: ui/snapshot/snapshot_mac.mm

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_mac.mm ('k') | ui/surface/accelerated_surface_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_mac.mm
diff --git a/ui/snapshot/snapshot_mac.mm b/ui/snapshot/snapshot_mac.mm
index 58337046fb83dcdce49f2f56770ee1d574b4aeec..5a0c6d6ab2d2ce860e753988e55a077f3c1966a2 100644
--- a/ui/snapshot/snapshot_mac.mm
+++ b/ui/snapshot/snapshot_mac.mm
@@ -41,9 +41,11 @@ bool GrabViewSnapshot(gfx::NativeView view,
png_representation->clear();
- base::mac::ScopedCFTypeRef<CGImageRef> windowSnapshot(CGWindowListCreateImage(
- screen_snapshot_bounds.ToCGRect(), kCGWindowListOptionIncludingWindow,
- [window windowNumber], kCGWindowImageBoundsIgnoreFraming));
+ base::ScopedCFTypeRef<CGImageRef> windowSnapshot(
+ CGWindowListCreateImage(screen_snapshot_bounds.ToCGRect(),
+ kCGWindowListOptionIncludingWindow,
+ [window windowNumber],
+ kCGWindowImageBoundsIgnoreFraming));
if (CGImageGetWidth(windowSnapshot) <= 0)
return false;
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_mac.mm ('k') | ui/surface/accelerated_surface_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698