|
Support painting panels with chromium themes on GTK.
In this patch, I moved more panel-specific logic out of the base classes:
* Title decoration to draw the title with pango markup
* SendEnterNotifyToCloseButtonIfUnderMouse
I overrode UsingCustomPopupFrame in PanelBrowserWindowGtk to always return false. That way, panels are always painted with custom frame. Now no matter which theme the user picks and which state (drawing attention or not) the panel is at, we paint the frame in the same code path.
I also fixed the extra line shown in title-only panel by adding IsMinimized check to BrowserWindowGtk::ShouldDrawContentDropShadow.
BUG= 117205
TEST=Manual test by verifying panels being painted with correct theme
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134635
Total comments: 37
Total comments: 6
Total comments: 15
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+272 lines, -259 lines) |
Patch |
 |
M |
chrome/browser/ui/gtk/browser_titlebar.h
|
View
|
|
6 chunks |
+13 lines, -25 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/browser_titlebar.cc
|
View
|
1
2
|
4 chunks |
+3 lines, -55 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/browser_window_gtk.h
|
View
|
1
2
|
7 chunks |
+12 lines, -21 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/browser_window_gtk.cc
|
View
|
1
2
|
4 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/native_panel.h
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_frame_view.h
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_frame_view.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_titlebar_gtk.h
|
View
|
1
2
|
3 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+110 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_view.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_view.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_window_cocoa.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_window_cocoa.mm
|
View
|
1
2
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_window_gtk.h
|
View
|
1
2
3
4
5
|
4 chunks |
+20 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_browser_window_gtk.cc
|
View
|
1
2
3
4
5
6
7
|
11 chunks |
+91 lines, -101 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_titlebar_view_cocoa.h
|
View
|
1
2
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm
|
View
|
1
2
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_window_controller_cocoa.h
|
View
|
1
2
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/panels/panel_window_controller_cocoa.mm
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|