|
Widget::ShouldUseNativeFrame is now meaningful on Linux.
This change is a big refactor to make this work without breaking
Windows. Previously, a lot of views code assumed that
ShouldUseNativeFrame meant an Aero Glass window (having the tab strip
transparently overlap a native frame), which is not true on Linux. Now,
another property, ShouldWindowContentsBeTransparent, is used to in the
Aero Glass case. On Windows, these two properties are the same, but on
Linux, the former can be true without the latter.
Now, in Linux Aura, browser windows run with --use-system-title-bar will
have ShouldUseNativeFrame return true, without any visual anomalies.
This has two purposes (both of which I will need soon):
1. It allows DesktopWindowTreeHostX11 to behave differently depending on
whether the window has a native frame.
2. It will allow the window frame to be added or removed dynamically
through Widget::set_frame_type.
BUG= 317859
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250391
Total comments: 14
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+82 lines, -28 lines) |
Patch |
|
M |
chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/tabs/tab.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/tabs/tab_strip.cc
|
View
|
1
2
3
4
|
6 chunks |
+14 lines, -13 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/toolbar/toolbar_view.cc
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_native_widget_aura.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
|
View
|
1
2
3
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host.h
|
View
|
1
2
3
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host_win.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
|
View
|
1
2
3
4
|
1 chunk |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc
|
View
|
1
2
3
4
|
4 chunks |
+13 lines, -4 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/native_widget_aura.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/native_widget_aura.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/native_widget_private.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/widget.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/widget.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|