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

Issue 204022: ExtensionShelf now uses the BookmarkExtensionBackground, just like the Bookma... (Closed)

Created:
11 years, 3 months ago by Finnur
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, jam, pam+watch_chromium.org, darin (slow to review), brettw, Ben Goodger (Google)
Visibility:
Public.

Description

ExtensionShelf now uses the BookmarkExtensionBackground, just like the BookmarkBarView. Changed the WebKit API to add an optional |id| parameter to the insertStyleText, which is needed to be able to replace style sheets that have been previously added. Added an interface that both BookmarkBarView and ExtensionShelf implement. This new interface tells us whether we are located at the top or at the bottom and whether we are detached from the frame or not. Factored out some of the duplicate painting-related code to a namespace of its own. Not happy with the name (welcome suggestions). Moved the check for whether extensions are on top to new class and now cache the value for the lifetime of the process. Toolstrip text color values are no longer hard-coded but use the color specified in the theme. Decreased the timeouts for showing and hiding the toolstrip handle. Replaced the pressed background image and the hover background image for the toolstrip to match what the bookmark bar uses. Known issues: Some themes expose the fact that: - The background for the extension shelf when in detached mode (and located on the bottom) does not seamlessly blend in with background of new tab page. Still works surprisingly well when it breaks, though. - Didn't spend much time theming the shelf handle (just used the solid color from the theme). - When extension shelf is merged with the bookmark bar, there is a painting artifact (horizontal dotted line) that appears (apparently it was known to appear before this change). BUG=18452, 21272, 21273 TEST=Install a theme for Chrome and make sure everything looks correct and is updated on a theme change. Also make sure painting problems in bugs 21272 and 21273 are fixed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26227

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -489 lines) Patch
M chrome/browser/browser_resources.grd View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 3 chunks +46 lines, -19 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/resources/extensions_toolstrip.css View 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.h View 5 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.cc View 6 chunks +15 lines, -28 lines 0 comments Download
M chrome/browser/views/extensions/extension_shelf.h View 7 chunks +26 lines, -15 lines 0 comments Download
M chrome/browser/views/extensions/extension_shelf.cc View 18 chunks +104 lines, -149 lines 0 comments Download
M chrome/browser/views/frame/browser_view.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 9 chunks +38 lines, -235 lines 0 comments Download
M chrome/chrome.gyp View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/render_view.h View 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/renderer/render_view.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/renderer/user_script_slave.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/api/public/WebFrame.h View 1 chunk +5 lines, -2 lines 0 comments Download
M webkit/glue/webframe_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M webkit/glue/webframe_impl.cc View 2 chunks +18 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Finnur
This is a changelist that is identical to the previous one (http://codereview.chromium.org/203034, already LG'ed) except ...
11 years, 3 months ago (2009-09-15 17:07:38 UTC) #1
Scott Hess - ex-Googler
On 2009/09/15 17:07:38, Finnur wrote: > This is a changelist that is identical to the ...
11 years, 3 months ago (2009-09-15 17:17:37 UTC) #2
Finnur
Fix in. On Tue, Sep 15, 2009 at 10:17, <shess@chromium.org> wrote: > On 2009/09/15 17:07:38, ...
11 years, 3 months ago (2009-09-15 17:20:03 UTC) #3
Erik does not do reviews
11 years, 3 months ago (2009-09-15 17:59:23 UTC) #4
gyp change LGTM

Powered by Google App Engine
This is Rietveld 408576698