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

Side by Side Diff: ui/views/widget/desktop_aura/x11_desktop_handler.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_X11_DESKTOP_HANDLER_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_
7 7
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. 9 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
10 #undef RootWindow 10 #undef RootWindow
11 11
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "ui/aura/env_observer.h" 13 #include "ui/aura/env_observer.h"
14 #include "ui/base/x/x11_atom_cache.h" 14 #include "ui/base/x/x11_atom_cache.h"
15 #include "ui/gfx/x/x11_types.h"
15 #include "ui/views/views_export.h" 16 #include "ui/views/views_export.h"
16 17
17 template <typename T> struct DefaultSingletonTraits; 18 template <typename T> struct DefaultSingletonTraits;
18 19
19 namespace views { 20 namespace views {
20 21
21 // A singleton that owns global objects related to the desktop and listens for 22 // A singleton that owns global objects related to the desktop and listens for
22 // X11 events on the X11 root window. Destroys itself when aura::Env is 23 // X11 events on the X11 root window. Destroys itself when aura::Env is
23 // deleted. 24 // deleted.
24 class VIEWS_EXPORT X11DesktopHandler : public base::MessageLoop::Dispatcher, 25 class VIEWS_EXPORT X11DesktopHandler : public base::MessageLoop::Dispatcher,
(...skipping 16 matching lines...) Expand all
41 virtual void OnWillDestroyEnv() OVERRIDE; 42 virtual void OnWillDestroyEnv() OVERRIDE;
42 43
43 private: 44 private:
44 explicit X11DesktopHandler(); 45 explicit X11DesktopHandler();
45 virtual ~X11DesktopHandler(); 46 virtual ~X11DesktopHandler();
46 47
47 // Handles changes in activation. 48 // Handles changes in activation.
48 void OnActiveWindowChanged(::Window window); 49 void OnActiveWindowChanged(::Window window);
49 50
50 // The display and the native X window hosting the root window. 51 // The display and the native X window hosting the root window.
51 Display* xdisplay_; 52 XDisplay* xdisplay_;
52 53
53 // The native root window. 54 // The native root window.
54 ::Window x_root_window_; 55 ::Window x_root_window_;
55 56
56 // The activated window. 57 // The activated window.
57 ::Window current_window_; 58 ::Window current_window_;
58 59
59 ui::X11AtomCache atom_cache_; 60 ui::X11AtomCache atom_cache_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(X11DesktopHandler); 62 DISALLOW_COPY_AND_ASSIGN(X11DesktopHandler);
62 }; 63 };
63 64
64 } // namespace views 65 } // namespace views
65 66
66 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_ 67 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_screen_x11.cc ('k') | ui/views/widget/desktop_aura/x11_desktop_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698