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

Issue 9332006: ui/gfx: Make the first version of Canvas::TileImageInt take a gfx::Rect. (Closed)

Created:
8 years, 10 months ago by tfarina
Modified:
8 years, 8 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, jam, jennb, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, dhollowa+watch_chromium.org, mihaip+watch_chromium.org, prasadt, dcheng, Dmitry Titov, joi+watch-content_chromium.org, Aaron Boodman, msw+watch_chromium.org, darin-cc_chromium.org, jianli, penghuang+watch_chromium.org, James Su, alicet1
Visibility:
Public.

Description

ui/gfx: Make the first version of Canvas::TileImageInt take a gfx::Rect. BUG=100898 R=pkasting@chromium.org TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120885

Patch Set 1 : #

Total comments: 21

Patch Set 2 : Peter review #

Total comments: 1

Patch Set 3 : add missing ')' - fix win #

Patch Set 4 : include skia_util #

Patch Set 5 : reland #

Total comments: 2

Patch Set 6 : put back the Peter's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -122 lines) Patch
M ash/launcher/launcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ntp_background_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_frame_view.cc View 1 2 3 4 5 2 chunks +20 lines, -18 lines 0 comments Download
M chrome/browser/ui/views/about_chrome_view.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 1 2 3 4 1 chunk +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 5 3 chunks +8 lines, -10 lines 0 comments Download
M chrome/common/extensions/extension_action.cc View 2 3 4 5 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/canvas.h View 1 chunk +1 line, -2 lines 0 comments Download
M ui/gfx/canvas_skia.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/canvas_skia.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/views/bubble/bubble_border.cc View 1 2 3 4 6 chunks +12 lines, -12 lines 0 comments Download
M ui/views/controls/scrollbar/bitmap_scroll_bar.cc View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M ui/views/painter.cc View 1 2 3 4 5 3 chunks +4 lines, -6 lines 0 comments Download
M ui/views/window/custom_frame_view.cc View 1 2 3 4 5 3 chunks +11 lines, -11 lines 0 comments Download
M ui/views/window/frame_background.cc View 1 2 3 4 4 chunks +22 lines, -25 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
tfarina
8 years, 10 months ago (2012-02-06 19:31:30 UTC) #1
Peter Kasting
LGTM http://codereview.chromium.org/9332006/diff/2001/ash/launcher/launcher.cc File ash/launcher/launcher.cc (right): http://codereview.chromium.org/9332006/diff/2001/ash/launcher/launcher.cc#newcode34 ash/launcher/launcher.cc:34: virtual void Paint(int w, int h, gfx::Canvas* canvas) ...
8 years, 10 months ago (2012-02-06 22:32:39 UTC) #2
tfarina
http://codereview.chromium.org/9332006/diff/2001/chrome/browser/ui/panels/panel_browser_frame_view.cc File chrome/browser/ui/panels/panel_browser_frame_view.cc (right): http://codereview.chromium.org/9332006/diff/2001/chrome/browser/ui/panels/panel_browser_frame_view.cc#newcode806 chrome/browser/ui/panels/panel_browser_frame_view.cc:806: 0, width() - frame_edges.top_right->width(), frame_edges.top->height())); On 2012/02/06 22:32:39, Peter ...
8 years, 10 months ago (2012-02-06 23:12:16 UTC) #3
Peter Kasting
http://codereview.chromium.org/9332006/diff/7003/chrome/common/extensions/extension_action.cc File chrome/common/extensions/extension_action.cc (right): http://codereview.chromium.org/9332006/diff/7003/chrome/common/extensions/extension_action.cc#newcode148 chrome/common/extensions/extension_action.cc:148: rect.fLeft = SkScalarFloorToScalar(SkIntToScalar(bounds.x()) + Looks right to me
8 years, 10 months ago (2012-02-06 23:21:50 UTC) #4
tfarina
https://chromiumcodereview.appspot.com/9332006/diff/14002/ui/views/window/frame_background.cc File ui/views/window/frame_background.cc (right): https://chromiumcodereview.appspot.com/9332006/diff/14002/ui/views/window/frame_background.cc#newcode90 ui/views/window/frame_background.cc:90: view->width() - top_left_corner_->width() - top_right_corner_->width(), Peter, this calculation is ...
8 years, 10 months ago (2012-02-08 19:45:15 UTC) #5
Peter Kasting
https://chromiumcodereview.appspot.com/9332006/diff/14002/ui/views/window/frame_background.cc File ui/views/window/frame_background.cc (right): https://chromiumcodereview.appspot.com/9332006/diff/14002/ui/views/window/frame_background.cc#newcode90 ui/views/window/frame_background.cc:90: view->width() - top_left_corner_->width() - top_right_corner_->width(), On 2012/02/08 19:45:15, tfarina ...
8 years, 10 months ago (2012-02-08 20:54:57 UTC) #6
tfarina
On 2012/02/08 20:54:57, Peter Kasting wrote: > https://chromiumcodereview.appspot.com/9332006/diff/14002/ui/views/window/frame_background.cc > File ui/views/window/frame_background.cc (right): > > https://chromiumcodereview.appspot.com/9332006/diff/14002/ui/views/window/frame_background.cc#newcode90 ...
8 years, 10 months ago (2012-02-08 21:09:47 UTC) #7
Peter Kasting
On 2012/02/08 21:09:47, tfarina wrote: > |view| is CustomFrameView, and CustomFrameView just overrides GetPreferredSize, > ...
8 years, 10 months ago (2012-02-08 21:18:33 UTC) #8
tfarina
On Wed, Feb 8, 2012 at 7:18 PM, <pkasting@chromium.org> wrote: > On 2012/02/08 21:09:47, tfarina ...
8 years, 10 months ago (2012-02-08 22:17:41 UTC) #9
tfarina
On Wed, Feb 8, 2012 at 8:17 PM, Thiago Farina <tfarina@chromium.org> wrote: > On Wed, ...
8 years, 10 months ago (2012-02-09 23:42:37 UTC) #10
Peter Kasting
On 2012/02/09 23:42:37, tfarina wrote: > Peter, any comments here? I'm not sure what you ...
8 years, 10 months ago (2012-02-09 23:45:42 UTC) #11
tfarina
On 2012/02/09 23:45:42, Peter Kasting wrote: > On 2012/02/09 23:42:37, tfarina wrote: > > Peter, ...
8 years, 10 months ago (2012-02-09 23:56:41 UTC) #12
tfarina
8 years, 8 months ago (2012-04-04 19:28:46 UTC) #13
On 2012/02/08 19:45:15, tfarina wrote:
>
https://chromiumcodereview.appspot.com/9332006/diff/14002/ui/views/window/fra...
> File ui/views/window/frame_background.cc (right):
> 
>
https://chromiumcodereview.appspot.com/9332006/diff/14002/ui/views/window/fra...
> ui/views/window/frame_background.cc:90: view->width() -
> top_left_corner_->width() - top_right_corner_->width(),
> Peter, this calculation is resulting in -2.
> 
> 10 - 6 - 6
> 
> Thus, WidgetTest.ChangeActivation is failing.

I'm going to file a bug for this. Would Scott provide some input here? I'll copy
him in the bug.

Powered by Google App Engine
This is Rietveld 408576698