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

Issue 8523022: Change snasphotting API to take in a bounds Rect (Closed)

Created:
9 years, 1 month ago by pkotwicz
Modified:
9 years, 1 month ago
CC:
chromium-reviews, apatrick_chromium, Paweł Hajdan Jr.
Visibility:
Public.

Description

This replaces the snapshotting code in the pixel tests with the code used to get screenshots for reporting issues. Added a bounds parameter to window_snapshot.cc so that we can take a picture of just the tab contents and not have to rebaseline with chrome ui changes. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111155

Patch Set 1 #

Total comments: 8

Patch Set 2 : Changes as requested #

Total comments: 14

Patch Set 3 : Changes as requested #

Patch Set 4 : Changes as requested #

Patch Set 5 : Nicer diff #

Patch Set 6 : Nicer diff #

Total comments: 4

Patch Set 7 : Changes as requested #

Patch Set 8 : Nicer diff #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -40 lines) Patch
M chrome/browser/ui/webui/bug_report_ui.cc View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot.h View 1 2 3 4 5 6 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot_aura.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc View 1 2 3 4 5 6 2 chunks +19 lines, -12 lines 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot_mac.mm View 1 2 3 4 5 6 2 chunks +24 lines, -7 lines 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot_win.cc View 1 2 3 4 5 6 3 chunks +30 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
pkotwicz
9 years, 1 month ago (2011-11-11 00:29:49 UTC) #1
pkotwicz
Only tested with GTK so far, so please only review that part for now.
9 years, 1 month ago (2011-11-11 00:30:42 UTC) #2
jonathan.backer
I like the general direction. It makes way more sense than using the thumbnailing code. ...
9 years, 1 month ago (2011-11-11 14:41:20 UTC) #3
kkania
I don't remember exactly why we used the thumbnail system before instead of os screenshots. ...
9 years, 1 month ago (2011-11-11 17:06:31 UTC) #4
pkotwicz
Tested on Windows and Mac. Changed teapot.html so that it would be less flaky. Otherwise, ...
9 years, 1 month ago (2011-11-12 02:05:51 UTC) #5
jonathan.backer
Just nits. Thanks for doing this. There were a lot of platforms to test. http://codereview.chromium.org/8523022/diff/7002/chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc ...
9 years, 1 month ago (2011-11-14 13:45:02 UTC) #6
pkotwicz
I realized that I haven't answered your question kkania. I am not sure if we ...
9 years, 1 month ago (2011-11-14 14:42:03 UTC) #7
sky
You should get erg to review gtk side and thakis to review mac. http://codereview.chromium.org/8523022/diff/7002/chrome/browser/ui/window_snapshot/window_snapshot.h File ...
9 years, 1 month ago (2011-11-14 16:23:09 UTC) #8
pkotwicz
Separated issue into two patches as I am having problems displaying the correct pixels with ...
9 years, 1 month ago (2011-11-15 15:56:11 UTC) #9
sky
http://codereview.chromium.org/8523022/diff/20001/chrome/browser/ui/webui/bug_report_ui.cc File chrome/browser/ui/webui/bug_report_ui.cc (right): http://codereview.chromium.org/8523022/diff/20001/chrome/browser/ui/webui/bug_report_ui.cc#newcode145 chrome/browser/ui/webui/bug_report_ui.cc:145: window_bounds); Don't you need to convert window_bounds to have ...
9 years, 1 month ago (2011-11-15 16:58:08 UTC) #10
Nico
mac bits lgtm if you checked that bug report screenshots still work correctly http://codereview.chromium.org/8523022/diff/20001/chrome/browser/ui/webui/bug_report_ui.cc File ...
9 years, 1 month ago (2011-11-15 17:10:08 UTC) #11
Elliot Glaysher
gtk lgtm http://codereview.chromium.org/8523022/diff/7002/chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc File chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc (right): http://codereview.chromium.org/8523022/diff/7002/chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc#newcode60 chrome/browser/ui/window_snapshot/window_snapshot_gtk.cc:60: Display* display = GDK_WINDOW_XDISPLAY(gdk_window); On 2011/11/15 15:56:12, ...
9 years, 1 month ago (2011-11-15 18:06:34 UTC) #12
pkotwicz
Tested on windows, linux and mac. Changes as requested
9 years, 1 month ago (2011-11-15 20:53:26 UTC) #13
sky
9 years, 1 month ago (2011-11-15 21:45:46 UTC) #14
LGTM

Powered by Google App Engine
This is Rietveld 408576698