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 #ifndef UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Is the cursor currently shown? | 76 // Is the cursor currently shown? |
77 bool cursor_shown_; | 77 bool cursor_shown_; |
78 | 78 |
79 // The invisible cursor. | 79 // The invisible cursor. |
80 ::Cursor invisible_cursor_; | 80 ::Cursor invisible_cursor_; |
81 | 81 |
82 // The bounds of |xwindow_|. | 82 // The bounds of |xwindow_|. |
83 gfx::Rect bounds_; | 83 gfx::Rect bounds_; |
84 | 84 |
85 // Names of cached atoms that we fetch during the constructor to minimize | |
86 // round trips to the X11 server. | |
87 enum AtomList { | |
88 ATOM_WM_DELETE_WINDOW = 0, | |
89 ATOM__NET_WM_PING, | |
90 ATOM__NET_WM_PID, | |
91 ATOM_WM_S0, | |
92 | |
93 ATOM_COUNT | |
94 }; | |
95 ::Atom cached_atoms_[ATOM_COUNT]; | |
96 | |
97 // True if the window should be focused when the window is shown. | 85 // True if the window should be focused when the window is shown. |
98 bool focus_when_shown_; | 86 bool focus_when_shown_; |
99 | 87 |
100 scoped_array<XID> pointer_barriers_; | 88 scoped_array<XID> pointer_barriers_; |
101 | 89 |
102 scoped_ptr<ui::ViewProp> prop_; | 90 scoped_ptr<ui::ViewProp> prop_; |
103 | 91 |
104 class ImageCursors; | 92 class ImageCursors; |
105 scoped_ptr<ImageCursors> image_cursors_; | 93 scoped_ptr<ImageCursors> image_cursors_; |
106 | 94 |
107 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); | 95 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); |
108 }; | 96 }; |
109 | 97 |
110 } // namespace aura | 98 } // namespace aura |
111 | 99 |
112 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ | 100 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ |
OLD | NEW |