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

Issue 10169019: Add PanelBrowserTitlebarGtk for panels on GTK. (Closed)

Created:
8 years, 8 months ago by jianli
Modified:
8 years, 8 months ago
Reviewers:
jennb, Evan Stade
CC:
chromium-reviews, jennb, Dmitry Titov, dcheng, Andrei
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add PanelBrowserTitlebarGtk for panels on GTK. PanelBrowserTitlebarGtk, derived from BrowserTitlebar, can allow us to add panel-specific logic easily, instead of mixing everything in BrowserTitlebar. This is needed when we're going to add custom button support for panels. We need to paint close and minimize button different from the standard ones and we also need to add unminimize button support. BUG=none TEST=existing tests due to no new functionaility Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133586

Patch Set 1 : Patch #

Patch Set 2 : Move IsTypePanel() logic out of BrowserTitlebar #

Total comments: 7

Patch Set 3 : Fix per feedback #

Patch Set 4 : Patch to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -68 lines) Patch
M chrome/browser/ui/gtk/browser_titlebar.h View 1 2 3 6 chunks +16 lines, -13 lines 0 comments Download
M chrome/browser/ui/gtk/browser_titlebar.cc View 1 2 3 8 chunks +51 lines, -54 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
A chrome/browser/ui/panels/panel_browser_titlebar_gtk.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jianli
8 years, 8 months ago (2012-04-20 20:42:05 UTC) #1
jennb
Now would be a good time to move the existing IsTypePanel() logic in the base ...
8 years, 8 months ago (2012-04-20 21:22:30 UTC) #2
jianli
On 2012/04/20 21:22:30, jennb wrote: > Now would be a good time to move the ...
8 years, 8 months ago (2012-04-20 21:49:41 UTC) #3
jennb
http://codereview.chromium.org/10169019/diff/8002/chrome/browser/ui/gtk/browser_titlebar.cc File chrome/browser/ui/gtk/browser_titlebar.cc (right): http://codereview.chromium.org/10169019/diff/8002/chrome/browser/ui/gtk/browser_titlebar.cc#newcode466 chrome/browser/ui/gtk/browser_titlebar.cc:466: } else if (button_token == "maximize") { Should we ...
8 years, 8 months ago (2012-04-20 22:26:32 UTC) #4
jianli
http://codereview.chromium.org/10169019/diff/8002/chrome/browser/ui/gtk/browser_titlebar.cc File chrome/browser/ui/gtk/browser_titlebar.cc (right): http://codereview.chromium.org/10169019/diff/8002/chrome/browser/ui/gtk/browser_titlebar.cc#newcode466 chrome/browser/ui/gtk/browser_titlebar.cc:466: } else if (button_token == "maximize") { On 2012/04/20 ...
8 years, 8 months ago (2012-04-20 23:00:29 UTC) #5
jennb
http://codereview.chromium.org/10169019/diff/8002/chrome/browser/ui/gtk/browser_titlebar.cc File chrome/browser/ui/gtk/browser_titlebar.cc (right): http://codereview.chromium.org/10169019/diff/8002/chrome/browser/ui/gtk/browser_titlebar.cc#newcode466 chrome/browser/ui/gtk/browser_titlebar.cc:466: } else if (button_token == "maximize") { On 2012/04/20 ...
8 years, 8 months ago (2012-04-21 01:04:49 UTC) #6
jianli
On 2012/04/21 01:04:49, jennb wrote: > http://codereview.chromium.org/10169019/diff/8002/chrome/browser/ui/gtk/browser_titlebar.cc > File chrome/browser/ui/gtk/browser_titlebar.cc (right): > > http://codereview.chromium.org/10169019/diff/8002/chrome/browser/ui/gtk/browser_titlebar.cc#newcode466 > ...
8 years, 8 months ago (2012-04-23 21:32:15 UTC) #7
Evan Stade
BrowserTitlebar split lgtm
8 years, 8 months ago (2012-04-23 22:50:41 UTC) #8
jennb
lgtm
8 years, 8 months ago (2012-04-23 22:54:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/10169019/1009
8 years, 8 months ago (2012-04-23 22:56:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/10169019/23001
8 years, 8 months ago (2012-04-23 23:37:50 UTC) #11
commit-bot: I haz the power
8 years, 8 months ago (2012-04-24 01:17:04 UTC) #12
Change committed as 133586

Powered by Google App Engine
This is Rietveld 408576698