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

Issue 118058: Fix opaque app mode display.... (Closed)

Created:
11 years, 6 months ago by Glen Murphy
Modified:
9 years, 5 months ago
Reviewers:
Finnur, Peter Kasting
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix opaque app mode display. Changed the app corner images to be the same size as the center image. BUG=12541 TEST=In an opaque app-frame window, verify that the top edge doesn't have a frame-colored space between the drop shadow and the content area. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17378

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
M app/resources/app_top_left.png View Binary file 0 comments Download
M app/resources/app_top_right.png View Binary file 0 comments Download
M chrome/browser/views/frame/opaque_browser_frame_view.cc View 1 2 4 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Glen Murphy
11 years, 6 months ago (2009-05-31 08:35:37 UTC) #1
Peter Kasting
http://codereview.chromium.org/118058/diff/8/11 File chrome/browser/views/frame/opaque_browser_frame_view.cc (right): http://codereview.chromium.org/118058/diff/8/11#newcode762 Line 762: SkColor toolbar_color = tp->GetColor(BrowserThemeProvider::COLOR_TOOLBAR); Nit: I wouldn't add ...
11 years, 6 months ago (2009-06-01 01:28:18 UTC) #2
Finnur
drive-by-nit... http://codereview.chromium.org/118058/diff/8/11 File chrome/browser/views/frame/opaque_browser_frame_view.cc (right): http://codereview.chromium.org/118058/diff/8/11#newcode778 Line 778: client_area_top = std::min(client_area_top, ... or better yet, ...
11 years, 6 months ago (2009-06-01 01:38:32 UTC) #3
Glen Murphy
Reuploaded: I got rid of the calculation, as I didn't write it, couldn't find a ...
11 years, 6 months ago (2009-06-02 01:06:22 UTC) #4
Peter Kasting
11 years, 6 months ago (2009-06-02 02:02:58 UTC) #5
On 2009/06/02 01:06:22, Glen Murphy wrote:
> Reuploaded:
> 
> I got rid of the calculation, as I didn't write it, couldn't find a reason for
> it, and removing it hasn't caused any issues, even at tiny sizes.

I remember why I added it now.  I think it can't reproduce anymore on the opaque
frame since I've added a minimum window size; not sure about the glass frame,
but it's not that important as I'll eventually fix that too.

> > Nit: Doesn't this need to be "... + 1" since DrawLineInt() 
> > draws "up > to but not including" the last pixel?
> 
> It's actually - 1 + 1 (see the right side edge drawing code below).

Ah yes, I forgot that right() was already one-past-the-end.

LGTM.

Powered by Google App Engine
This is Rietveld 408576698