From 862066288bfa2871c36e3ab794fb7f6819a5cdfd Mon Sep 17 00:00:00 2001 From: "zelidrag@chromium.org" Date: Fri, 14 May 2010 05:45:26 +0000 Subject: Commiting http://codereview.chromium.org/2017007/show on behalf of rkc@chromium.org. This change hooks issue report dialog with Google Feedback backend for ChromeOS. The dialog is going to be used only for Chrome OS at the moment, the previous mechanism is kept intact for other operating systems. Image and System Info reporting is disabled at the moment; for image, we need feedback to get their changes in production, for reporting, the system scripts need to be added (basic Chrome and OS version info is being sent with the report) BUG=chromium-os:2761 TEST=none, work in progress TBR=zelidrag Review URL: http://codereview.chromium.org/2068004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47244 0039d316-1c4b-4281-b951-d872f2087c98 --- base/mac_util.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'base/mac_util.mm') diff --git a/base/mac_util.mm b/base/mac_util.mm index 00ef9e09..cd7a949 100644 --- a/base/mac_util.mm +++ b/base/mac_util.mm @@ -244,7 +244,8 @@ bool ShouldWindowsMiniaturizeOnDoubleClick() { } void GrabWindowSnapshot(NSWindow* window, - std::vector* png_representation) { + std::vector* png_representation, + int* width, int* height) { // Make sure to grab the "window frame" view so we get current tab + // tabstrip. NSView* view = [[window contentView] superview]; @@ -255,6 +256,8 @@ void GrabWindowSnapshot(NSWindow* window, const unsigned char* buf = static_cast([data bytes]); NSUInteger length = [data length]; if (buf != NULL && length > 0){ + *width = static_cast([rep pixelsWide]); + *height = static_cast([rep pixelsHigh]); png_representation->assign(buf, buf + length); DCHECK(png_representation->size() > 0); } -- cgit v1.1