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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_x11.h

Issue 23460052: Move XID, XDisplay, GetXDisplay and a few other types to ui/gfx/x/x11_types.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sdf Created 7 years, 3 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
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 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_
7 7
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 9
10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // See comment for variable open_windows_. 181 // See comment for variable open_windows_.
182 static std::list<XID>& open_windows(); 182 static std::list<XID>& open_windows();
183 183
184 // Overridden from Dispatcher: 184 // Overridden from Dispatcher:
185 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; 185 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
186 186
187 base::WeakPtrFactory<DesktopRootWindowHostX11> close_widget_factory_; 187 base::WeakPtrFactory<DesktopRootWindowHostX11> close_widget_factory_;
188 188
189 // X11 things 189 // X11 things
190 // The display and the native X window hosting the root window. 190 // The display and the native X window hosting the root window.
191 Display* xdisplay_; 191 XDisplay* xdisplay_;
192 ::Window xwindow_; 192 ::Window xwindow_;
193 193
194 // The native root window. 194 // The native root window.
195 ::Window x_root_window_; 195 ::Window x_root_window_;
196 196
197 ui::X11AtomCache atom_cache_; 197 ui::X11AtomCache atom_cache_;
198 198
199 // Is the window mapped to the screen? 199 // Is the window mapped to the screen?
200 bool window_mapped_; 200 bool window_mapped_;
201 201
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // A list of all (top-level) windows that have been created but not yet 260 // A list of all (top-level) windows that have been created but not yet
261 // destroyed. 261 // destroyed.
262 static std::list<XID>* open_windows_; 262 static std::list<XID>* open_windows_;
263 263
264 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11); 264 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostX11);
265 }; 265 };
266 266
267 } // namespace views 267 } // namespace views
268 268
269 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_ 269 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698