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

Issue 333018: Add GrabWindowSnapshot method to mac_util class. This code is due to dmaclac... (Closed)

Created:
11 years, 2 months ago by Miranda Callahan
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, pam+watch_chromium.org, brettw+cc_chromium.org
Visibility:
Public.

Description

Add GrabWindowSnapshot method to mac_util class, and a unit test. BUG= none TEST= none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30199

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 10

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 12

Patch Set 9 : '' #

Total comments: 1

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -38 lines) Patch
M base/base.gyp View 3 4 5 6 7 8 9 10 12 3 chunks +2 lines, -6 lines 0 comments Download
M base/mac_util.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -1 line 0 comments Download
M base/mac_util.mm View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -1 line 0 comments Download
D base/mac_util_unittest.cc View 3 4 5 6 7 8 1 chunk +0 lines, -27 lines 0 comments Download
A + base/mac_util_unittest.mm View 3 4 5 6 7 8 9 2 chunks +35 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Miranda Callahan
11 years, 2 months ago (2009-10-23 23:00:42 UTC) #1
dmac
Is there a unit test for this somewhere? http://codereview.chromium.org/333018/diff/1/2 File base/mac_util.mm (right): http://codereview.chromium.org/333018/diff/1/2#newcode178 Line 178: ...
11 years, 2 months ago (2009-10-23 23:12:06 UTC) #2
Miranda Callahan
I need to add a unit test, good call. http://codereview.chromium.org/333018/diff/1/2 File base/mac_util.mm (right): http://codereview.chromium.org/333018/diff/1/2#newcode178 Line ...
11 years, 2 months ago (2009-10-23 23:27:48 UTC) #3
dmac
On 2009/10/23 23:27:48, Miranda Callahan wrote: > I need to add a unit test, good ...
11 years, 2 months ago (2009-10-23 23:38:12 UTC) #4
Miranda Callahan
I'm going to use copy from the algorithm library in the STL, unless you think ...
11 years, 2 months ago (2009-10-23 23:38:29 UTC) #5
dmac
On 2009/10/23 23:38:29, Miranda Callahan wrote: > I'm going to use copy from the algorithm ...
11 years, 2 months ago (2009-10-23 23:41:51 UTC) #6
Miranda Callahan
:-) All right, new and improved! But this all proves that it definitely needs a ...
11 years, 2 months ago (2009-10-23 23:48:08 UTC) #7
dmac
http://codereview.chromium.org/333018/diff/7001/2002 File base/mac_util.mm (right): http://codereview.chromium.org/333018/diff/7001/2002#newcode171 Line 171: // Make sure to grab the "window frame" ...
11 years, 2 months ago (2009-10-23 23:52:43 UTC) #8
John Grabowski
Drive by Why do you prefer to return the data in a vector? Won't most ...
11 years, 2 months ago (2009-10-26 03:35:02 UTC) #9
Amanda Walker
Driving by jrg's drive-by: This is for the "report a buggy web page" feature (the ...
11 years, 1 month ago (2009-10-26 12:43:29 UTC) #10
John Grabowski
Perhaps then it should be called void GrabWindowSnapshot(gfx::NativeWindow, ...) And #ifdefs removed from the call ...
11 years, 1 month ago (2009-10-26 13:56:32 UTC) #11
pink (ping after 24hrs)
more drive-by's http://codereview.chromium.org/333018/diff/7001/2002 File base/mac_util.mm (right): http://codereview.chromium.org/333018/diff/7001/2002#newcode165 Line 165: void GrabWindowSnapshot(const NSWindow* window_handle, mac programmers ...
11 years, 1 month ago (2009-10-26 14:12:09 UTC) #12
Miranda Callahan
Ok -- I tried to address everybody's comments, and I added a unit test. Please ...
11 years, 1 month ago (2009-10-26 19:46:06 UTC) #13
Miranda Callahan
As I just discussed with jrg in person, I couldn't make the change of the ...
11 years, 1 month ago (2009-10-26 20:14:46 UTC) #14
John Grabowski
http://codereview.chromium.org/333018/diff/8/1006 File base/base.gyp (right): http://codereview.chromium.org/333018/diff/8/1006#newcode666 Line 666: 'mac_util_unittest.mm', Unnecessary; I believe the unit test target ...
11 years, 1 month ago (2009-10-26 21:04:27 UTC) #15
dmac
http://codereview.chromium.org/333018/diff/8/1005 File base/mac_util_unittest.mm (left): http://codereview.chromium.org/333018/diff/8/1005#oldcode7 Line 7: #include <ApplicationServices/ApplicationServices.h> do you need cocoa and app ...
11 years, 1 month ago (2009-10-26 21:45:21 UTC) #16
Miranda Callahan
Addressed new concerns, please take another look. Thanks for all of your help! http://codereview.chromium.org/333018/diff/8/1006 File ...
11 years, 1 month ago (2009-10-27 00:13:17 UTC) #17
John Grabowski
LGTM http://codereview.chromium.org/333018/diff/10009/3006 File base/mac_util_unittest.mm (right): http://codereview.chromium.org/333018/diff/10009/3006#newcode54 Line 54: EXPECT_TRUE(CGImageGetWidth([rep CGImage]) == 400); I don't see ...
11 years, 1 month ago (2009-10-27 00:28:28 UTC) #18
Miranda Callahan
Added it -- I had to do some fooling around, as whiteComponent expects a calibrated ...
11 years, 1 month ago (2009-10-27 15:55:00 UTC) #19
dmac
11 years, 1 month ago (2009-10-27 17:35:05 UTC) #20
LGTM

Powered by Google App Engine
This is Rietveld 408576698