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

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed)

Created:
9 years, 1 month ago by tfarina
Modified:
9 years, 1 month ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, asanka, Avi (use Gerrit), creis+watch_chromium.org, nkostylev+watch_chromium.org, jonathan.backer, Ian Vollick, ajwong+watch_chromium.org, jam, Randy Smith (Not in Mondays), dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org, piman+watch_chromium.org, James Su, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, dhollowa
Visibility:
Public.

Description

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

Patch Set 1 : #

Total comments: 20

Patch Set 2 : address Peter's review #

Patch Set 3 : missing ; #

Patch Set 4 : fix views_unittests #

Patch Set 5 : address Peter's review for xxx_browser_frame_view.cc, interactive_ui_tests seems to be fixed #

Patch Set 6 : change detachable_toolbar_view.cc to view->GetLocalBounds() #

Patch Set 7 : save some vertical space, interactive_ui_tests are fixed by Peter's fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -316 lines) Patch
M chrome/browser/chromeos/panels/panel_scroller_header.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/status/status_area_button.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ntp_background_util.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/tab_contents/thumbnail_generator_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_theme_service.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/browser_actions_container.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views.cc View 1 2 3 4 2 chunks +24 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/default_search_view.cc View 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/detachable_toolbar_view.cc View 1 2 3 4 5 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/download/download_shelf_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/first_run_search_engine_view.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc View 1 2 3 4 1 chunk +22 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_aura.cc View 2 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 6 2 chunks +15 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 6 chunks +51 lines, -34 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_background.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/suggested_text_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/notifications/balloon_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/dragged_tab_view.cc View 1 2 1 chunk +9 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/wrench_menu.cc View 1 chunk +29 lines, -26 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura_shell/examples/lock_view.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M ui/aura_shell/examples/toplevel_window.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura_shell/examples/widgets.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura_shell/examples/window_type_launcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura_shell/toplevel_frame_view.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M ui/gfx/canvas.h View 1 chunk +6 lines, -8 lines 0 comments Download
M ui/gfx/canvas_direct2d.h View 1 chunk +6 lines, -7 lines 0 comments Download
M ui/gfx/canvas_direct2d.cc View 1 chunk +7 lines, -9 lines 0 comments Download
M ui/gfx/canvas_direct2d_unittest.cc View 7 chunks +13 lines, -13 lines 0 comments Download
M ui/gfx/canvas_skia.h View 1 chunk +6 lines, -7 lines 0 comments Download
M ui/gfx/canvas_skia.cc View 1 chunk +8 lines, -9 lines 0 comments Download
M ui/gfx/canvas_skia_linux.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/compositor/layer_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M ui/gfx/render_text.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M views/aura_desktop/aura_desktop_main.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M views/border.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M views/controls/menu/menu_scroll_view_container.cc View 1 chunk +1 line, -1 line 0 comments Download
M views/controls/menu/submenu_view.cc View 1 chunk +1 line, -2 lines 0 comments Download
M views/controls/native/native_view_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M views/controls/separator.cc View 1 chunk +1 line, -1 line 0 comments Download
M views/desktop/desktop_background.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M views/desktop/desktop_window_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M views/examples/native_theme_button_example.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M views/examples/native_widget_views_example.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M views/touchui/touch_selection_controller_impl.cc View 3 chunks +11 lines, -11 lines 0 comments Download
views/window/custom_frame_view.cc View 1 2 3 4 5 6 1 chunk +22 lines, -12 lines 0 comments Download
M views/window/dialog_client_view.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tfarina
http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc File views/window/custom_frame_view.cc (right): http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc#newcode349 views/window/custom_frame_view.cc:349: gfx::Rect(0, 0, width(), frame_image->height())); Peter, using gfx::Rect here is ...
9 years, 1 month ago (2011-10-27 15:13:20 UTC) #1
Peter Kasting
http://codereview.chromium.org/8405002/diff/7001/chrome/browser/chromeos/panels/panel_scroller_header.cc File chrome/browser/chromeos/panels/panel_scroller_header.cc (right): http://codereview.chromium.org/8405002/diff/7001/chrome/browser/chromeos/panels/panel_scroller_header.cc#newcode43 chrome/browser/chromeos/panels/panel_scroller_header.cc:43: canvas->FillRect(0xFFFFFFFF, gfx::Rect(GetLocalBounds())); Nit: GetLocalBounds() already returns a rect, you ...
9 years, 1 month ago (2011-10-27 19:17:29 UTC) #2
tfarina
http://codereview.chromium.org/8405002/diff/7001/chrome/browser/chromeos/panels/panel_scroller_header.cc File chrome/browser/chromeos/panels/panel_scroller_header.cc (right): http://codereview.chromium.org/8405002/diff/7001/chrome/browser/chromeos/panels/panel_scroller_header.cc#newcode43 chrome/browser/chromeos/panels/panel_scroller_header.cc:43: canvas->FillRect(0xFFFFFFFF, gfx::Rect(GetLocalBounds())); On 2011/10/27 19:17:29, Peter Kasting wrote: > ...
9 years, 1 month ago (2011-10-27 20:46:03 UTC) #3
Peter Kasting
http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc File views/window/custom_frame_view.cc (right): http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc#newcode349 views/window/custom_frame_view.cc:349: gfx::Rect(0, 0, width(), frame_image->height())); On 2011/10/27 20:46:03, tfarina wrote: ...
9 years, 1 month ago (2011-10-27 20:50:34 UTC) #4
tfarina
http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc File views/window/custom_frame_view.cc (right): http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc#newcode354 views/window/custom_frame_view.cc:354: height() - frame_image->height())); On 2011/10/27 20:50:34, Peter Kasting wrote: ...
9 years, 1 month ago (2011-10-27 21:31:30 UTC) #5
Peter Kasting
http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc File views/window/custom_frame_view.cc (right): http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc#newcode354 views/window/custom_frame_view.cc:354: height() - frame_image->height())); On 2011/10/27 21:31:30, tfarina wrote: > ...
9 years, 1 month ago (2011-10-27 21:49:18 UTC) #6
tfarina
On 2011/10/27 21:49:18, Peter Kasting wrote: > http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc > File views/window/custom_frame_view.cc (right): > > http://codereview.chromium.org/8405002/diff/7001/views/window/custom_frame_view.cc#newcode354 ...
9 years, 1 month ago (2011-10-27 22:34:28 UTC) #7
Peter Kasting
BTW, general comment about line wrapping. You can line wrap almost any way you please, ...
9 years, 1 month ago (2011-10-27 23:42:22 UTC) #8
tfarina
On 2011/10/27 23:42:22, Peter Kasting wrote: > BTW, general comment about line wrapping. You can ...
9 years, 1 month ago (2011-10-28 00:20:40 UTC) #9
Peter Kasting
9 years, 1 month ago (2011-10-28 00:46:44 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698