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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Issue 290573003: Make tooltips toplevel windows on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_screen_position_client.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698