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

Issue 8476019: ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. (Closed)

Created:
9 years, 1 month ago by tfarina
Modified:
9 years ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, dhollowa
Visibility:
Public.

Description

ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. BUG=100898 R=pkasting@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111288

Patch Set 1 #

Total comments: 13

Patch Set 2 : address Peter's review #

Total comments: 4

Patch Set 3 : fix order #

Patch Set 4 : reland - WHAT HERE could have broken media_unittests???? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -71 lines) Patch
M chrome/browser/ui/gtk/gtk_theme_service.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M ui/gfx/canvas.h View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
M ui/gfx/canvas_skia.h View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
ui/gfx/canvas_skia.cc View 1 2 4 chunks +16 lines, -15 lines 0 comments Download
M ui/gfx/canvas_skia_win.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ui/gfx/render_text_linux.cc View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M ui/gfx/skia_util.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/skia_util.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/touchui/touch_selection_controller_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/window/custom_frame_view.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tfarina
9 years, 1 month ago (2011-11-05 00:20:12 UTC) #1
Peter Kasting
http://codereview.chromium.org/8476019/diff/1/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc File chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc (right): http://codereview.chromium.org/8476019/diff/1/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc#newcode179 chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc:179: bg_painter_->Paint(width() - kOptInBackgroundHInset * 2, Nit: Shorter: gfx::Rect paint_rect(GetLocalBounds()); ...
9 years, 1 month ago (2011-11-05 01:10:10 UTC) #2
tfarina
http://codereview.chromium.org/8476019/diff/1/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc File chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc (right): http://codereview.chromium.org/8476019/diff/1/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc#newcode179 chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc:179: bg_painter_->Paint(width() - kOptInBackgroundHInset * 2, On 2011/11/05 01:10:10, Peter ...
9 years, 1 month ago (2011-11-05 02:23:24 UTC) #3
tfarina
ping?
9 years, 1 month ago (2011-11-10 12:30:42 UTC) #4
Peter Kasting
I'm sorry I've not gotten to this. I was unexpectedly OOO several days last week ...
9 years, 1 month ago (2011-11-14 21:17:50 UTC) #5
tfarina
On 2011/11/14 21:17:50, Peter Kasting wrote: > I'm sorry I've not gotten to this. I ...
9 years, 1 month ago (2011-11-18 22:38:28 UTC) #6
tfarina
Sending again as gmail sent this to spam, and you may not have got this. ...
9 years, 1 month ago (2011-11-18 22:39:15 UTC) #7
Peter Kasting
LGTM http://codereview.chromium.org/8476019/diff/1/ui/gfx/canvas.h File ui/gfx/canvas.h (right): http://codereview.chromium.org/8476019/diff/1/ui/gfx/canvas.h#newcode125 ui/gfx/canvas.h:125: virtual void DrawRect(const SkColor& color, const gfx::Rect& rect) ...
9 years, 1 month ago (2011-11-21 19:26:02 UTC) #8
tfarina
9 years, 1 month ago (2011-11-22 18:39:01 UTC) #9
http://codereview.chromium.org/8476019/diff/16/ui/gfx/canvas.h
File ui/gfx/canvas.h (right):

http://codereview.chromium.org/8476019/diff/16/ui/gfx/canvas.h#newcode121
ui/gfx/canvas.h:121: // Draws the given rectangle with the given paint's
parameters.
On 2011/11/21 19:26:03, Peter Kasting wrote:
> Nit: I'd leave both the declaration and definition of this one where they were
> before, as specifying an SkPaint seems more specialized than specifying a
color.

Done.

http://codereview.chromium.org/8476019/diff/16/ui/gfx/canvas_skia.h
File ui/gfx/canvas_skia.h (right):

http://codereview.chromium.org/8476019/diff/16/ui/gfx/canvas_skia.h#newcode112
ui/gfx/canvas_skia.h:112: virtual void DrawRect(const gfx::Rect& rect, const
SkPaint& paint) OVERRIDE;
On 2011/11/21 19:26:03, Peter Kasting wrote:
> Nit: Same comment about order

Done.

Powered by Google App Engine
This is Rietveld 408576698