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

Issue 7734003: Implement basic theming for panel titlebars. (Closed)

Created:
9 years, 4 months ago by dcheng
Modified:
7 years, 9 months ago
CC:
chromium-reviews, jennb, jianli, prasadt
Visibility:
Public.

Description

Implement basic theming for panel titlebars. This patch adds the plumbing to use the theme provider for panel windows: - Updated the xib so the created window is a ThemedBrowserWindow, which knows how to delegate theming related calls to the window delegate. - Implemented -[ThemedWindow themeProvider] for PanelWindowController. BUG=none TEST=no more yellow panel titlebars. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99831

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 7

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : . #

Total comments: 6

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 1

Patch Set 8 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -107 lines) Patch
M chrome/app/nibs/Panel.xib View 1 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 1 chunk +4 lines, -18 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 2 chunks +3 lines, -32 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_utils.h View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_utils.mm View 1 2 3 4 5 6 7 2 chunks +54 lines, -0 lines 1 comment Download
M chrome/browser/ui/cocoa/chrome_browser_window.h View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/chrome_browser_window.mm View 1 2 2 chunks +0 lines, -23 lines 0 comments Download
A chrome/browser/ui/cocoa/themed_browser_window.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
A + chrome/browser/ui/cocoa/themed_browser_window.mm View 1 1 chunk +2 lines, -20 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.mm View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm View 1 2 3 4 5 6 7 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_titlebar_view_cocoa.h View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm View 1 2 3 4 5 3 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.mm View 1 2 3 4 5 6 7 3 chunks +31 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dcheng
Would it make sense to split ChromeBrowserWindow up into ThemedBrowserWIndow (with just the ThemedWindow support) ...
9 years, 4 months ago (2011-08-24 22:00:09 UTC) #1
Avi (use Gerrit)
On 2011/08/24 22:00:09, dcheng wrote: > Would it make sense to split ChromeBrowserWindow up into ...
9 years, 4 months ago (2011-08-24 22:02:39 UTC) #2
dcheng
On 2011/08/24 22:02:39, Avi wrote: > On 2011/08/24 22:00:09, dcheng wrote: > > Would it ...
9 years, 4 months ago (2011-08-24 22:22:21 UTC) #3
Dmitry Titov
Initial general comments: Please describe the .xib file changes in the description of the patch ...
9 years, 4 months ago (2011-08-25 00:08:21 UTC) #4
dcheng
On 2011/08/25 00:08:21, Dmitry Titov wrote: > Initial general comments: > > Please describe the ...
9 years, 4 months ago (2011-08-25 18:48:54 UTC) #5
Dmitry Titov
http://codereview.chromium.org/7734003/diff/7001/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm File chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm (right): http://codereview.chromium.org/7734003/diff/7001/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm#newcode54 chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm:54: [self drawBackgroundWithOpaque:YES]; On 2011/08/25 18:48:54, dcheng wrote: > I ...
9 years, 4 months ago (2011-08-25 19:24:51 UTC) #6
dcheng
I also fixed the find bar so it can draw on top of our custom ...
9 years, 3 months ago (2011-08-26 23:04:42 UTC) #7
Dmitry Titov
Still needs a unittest that verifies pulling those theming objects from the panel window works ...
9 years, 3 months ago (2011-08-27 20:30:58 UTC) #8
Dmitry Titov
On 2011/08/26 23:04:42, dcheng wrote: > I've implemented the other two methods. There's some duplication ...
9 years, 3 months ago (2011-08-27 20:32:52 UTC) #9
dcheng
Refactored two pieces of functionality into BrowserWindowUtils and added a simple test to verify that ...
9 years, 3 months ago (2011-08-31 00:05:04 UTC) #10
Dmitry Titov
Almost there. http://codereview.chromium.org/7734003/diff/16001/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): http://codereview.chromium.org/7734003/diff/16001/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode206 chrome/browser/ui/cocoa/browser_window_cocoa.mm:206: [BrowserWindowUtils delayedReplace:pending_window_title_.get() Naming suggestion: Usually 'delayedFoo' is ...
9 years, 3 months ago (2011-08-31 01:01:30 UTC) #11
dcheng
http://codereview.chromium.org/7734003/diff/16001/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): http://codereview.chromium.org/7734003/diff/16001/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode206 chrome/browser/ui/cocoa/browser_window_cocoa.mm:206: [BrowserWindowUtils delayedReplace:pending_window_title_.get() On 2011/08/31 01:01:30, Dmitry Titov wrote: > ...
9 years, 3 months ago (2011-08-31 23:58:02 UTC) #12
Dmitry Titov
LGTM with one nit: http://codereview.chromium.org/7734003/diff/27003/chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm File chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm (right): http://codereview.chromium.org/7734003/diff/27003/chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm#newcode335 chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm:335: EXPECT_NSEQ(@"Untitled", [[native_window->controller_ window] title]); It ...
9 years, 3 months ago (2011-09-01 01:44:12 UTC) #13
Nico
7 years, 9 months ago (2013-03-04 14:07:02 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/7734003/diff/29001/chrome/browser/ui/cocoa/br...
File chrome/browser/ui/cocoa/browser_window_utils.mm (right):

https://codereview.chromium.org/7734003/diff/29001/chrome/browser/ui/cocoa/br...
chrome/browser/ui/cocoa/browser_window_utils.mm:140: return [newTitle copy];
Doesn't this leak? Who frees this?

Powered by Google App Engine
This is Rietveld 408576698