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

Issue 8772060: Refactor window frame painting into a window background class (Closed)

Created:
9 years ago by James Cook
Modified:
9 years ago
CC:
chromium-reviews, tfarina, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Refactor window frame painting into a window background class We currently have several copies of the code that draws the non-client frame area of windows, including OpaqueBrowserFrameView, ConstrainedWindowFrameViews, CustomFrameView, and others. We need yet another version for Aura. Rather than make another copy I'm trying to refactor out the common drawing code. This is step 1, creating a views::FrameBackground class and using it in two cases. BUG=102797 TEST=visual, try normal frame, install a theme, open a constrained window like cookie > Show cookies and other site data, open a popup from popuptest.com Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113913

Patch Set 1 #

Patch Set 2 : explicit edge images #

Patch Set 3 : final cleanup of PaintRestored #

Unified diffs Side-by-side diffs Delta from patch set Stats (+500 lines, -329 lines) Patch
M chrome/browser/ui/views/constrained_window_views.cc View 1 2 4 chunks +33 lines, -80 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 5 chunks +72 lines, -148 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/views.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/window/custom_frame_view.h View 1 2 4 chunks +10 lines, -0 lines 0 comments Download
M ui/views/window/custom_frame_view.cc View 1 2 4 chunks +40 lines, -89 lines 0 comments Download
A ui/views/window/frame_background.h View 1 2 1 chunk +118 lines, -0 lines 0 comments Download
A ui/views/window/frame_background.cc View 1 2 1 chunk +206 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
James Cook
Ben, this isn't ready for a real review, but could you take a quick look ...
9 years ago (2011-12-03 00:42:08 UTC) #1
James Cook
On 2011/12/03 00:42:08, James Cook (Chromium) wrote: > Ben, this isn't ready for a real ...
9 years ago (2011-12-06 19:38:48 UTC) #2
Ben Goodger (Google)
like the direction! clean away
9 years ago (2011-12-06 21:11:08 UTC) #3
James Cook
Ben, PTAL. This is step one of what will probably be two or three CLs ...
9 years ago (2011-12-07 18:51:45 UTC) #4
James Cook
On 2011/12/07 18:51:45, James Cook (Chromium) wrote: > Ben, PTAL. This is step one of ...
9 years ago (2011-12-09 17:43:43 UTC) #5
Ben Goodger (Google)
This is a great change. LGTM.
9 years ago (2011-12-09 22:42:56 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/8772060/4011
9 years ago (2011-12-09 23:56:52 UTC) #7
commit-bot: I haz the power
9 years ago (2011-12-10 01:24:48 UTC) #8
Change committed as 113913

Powered by Google App Engine
This is Rietveld 408576698