OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" | 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" |
6 | 6 |
7 #include <X11/extensions/shape.h> | 7 #include <X11/extensions/shape.h> |
8 #include <X11/extensions/XInput2.h> | 8 #include <X11/extensions/XInput2.h> |
9 #include <X11/Xatom.h> | 9 #include <X11/Xatom.h> |
10 #include <X11/Xregion.h> | 10 #include <X11/Xregion.h> |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 memset(&swa, 0, sizeof(swa)); | 948 memset(&swa, 0, sizeof(swa)); |
949 swa.background_pixmap = None; | 949 swa.background_pixmap = None; |
950 | 950 |
951 ::Atom window_type; | 951 ::Atom window_type; |
952 switch (params.type) { | 952 switch (params.type) { |
953 case Widget::InitParams::TYPE_MENU: | 953 case Widget::InitParams::TYPE_MENU: |
954 swa.override_redirect = True; | 954 swa.override_redirect = True; |
955 window_type = atom_cache_.GetAtom("_NET_WM_WINDOW_TYPE_MENU"); | 955 window_type = atom_cache_.GetAtom("_NET_WM_WINDOW_TYPE_MENU"); |
956 break; | 956 break; |
957 case Widget::InitParams::TYPE_TOOLTIP: | 957 case Widget::InitParams::TYPE_TOOLTIP: |
| 958 swa.override_redirect = True; |
958 window_type = atom_cache_.GetAtom("_NET_WM_WINDOW_TYPE_TOOLTIP"); | 959 window_type = atom_cache_.GetAtom("_NET_WM_WINDOW_TYPE_TOOLTIP"); |
959 break; | 960 break; |
960 case Widget::InitParams::TYPE_POPUP: | 961 case Widget::InitParams::TYPE_POPUP: |
961 swa.override_redirect = True; | 962 swa.override_redirect = True; |
962 window_type = atom_cache_.GetAtom("_NET_WM_WINDOW_TYPE_NOTIFICATION"); | 963 window_type = atom_cache_.GetAtom("_NET_WM_WINDOW_TYPE_NOTIFICATION"); |
963 break; | 964 break; |
964 case Widget::InitParams::TYPE_DRAG: | 965 case Widget::InitParams::TYPE_DRAG: |
965 swa.override_redirect = True; | 966 swa.override_redirect = True; |
966 window_type = atom_cache_.GetAtom("_NET_WM_WINDOW_TYPE_DND"); | 967 window_type = atom_cache_.GetAtom("_NET_WM_WINDOW_TYPE_DND"); |
967 break; | 968 break; |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1717 if (linux_ui) { | 1718 if (linux_ui) { |
1718 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 1719 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
1719 if (native_theme) | 1720 if (native_theme) |
1720 return native_theme; | 1721 return native_theme; |
1721 } | 1722 } |
1722 | 1723 |
1723 return ui::NativeTheme::instance(); | 1724 return ui::NativeTheme::instance(); |
1724 } | 1725 } |
1725 | 1726 |
1726 } // namespace views | 1727 } // namespace views |
OLD | NEW |