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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 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 <vector> 12 #include <vector>
13 13
14 #include "ui/aura/env_observer.h" 14 #include "ui/aura/env_observer.h"
15 #include "ui/events/platform/platform_event_dispatcher.h" 15 #include "ui/events/platform/platform_event_dispatcher.h"
16 #include "ui/gfx/x/x11_atom_cache.h" 16 #include "ui/gfx/x/x11_atom_cache.h"
17 #include "ui/gfx/x/x11_types.h" 17 #include "ui/gfx/x/x11_types.h"
18 #include "ui/views/views_export.h" 18 #include "ui/views/views_export.h"
19 19
20 namespace base {
20 template <typename T> struct DefaultSingletonTraits; 21 template <typename T> struct DefaultSingletonTraits;
22 }
21 23
22 namespace views { 24 namespace views {
23 25
24 // A singleton that owns global objects related to the desktop and listens for 26 // A singleton that owns global objects related to the desktop and listens for
25 // X11 events on the X11 root window. Destroys itself when aura::Env is 27 // X11 events on the X11 root window. Destroys itself when aura::Env is
26 // deleted. 28 // deleted.
27 class VIEWS_EXPORT X11DesktopHandler : public ui::PlatformEventDispatcher, 29 class VIEWS_EXPORT X11DesktopHandler : public ui::PlatformEventDispatcher,
28 public aura::EnvObserver { 30 public aura::EnvObserver {
29 public: 31 public:
30 // Returns the singleton handler. 32 // Returns the singleton handler.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 ui::X11AtomCache atom_cache_; 105 ui::X11AtomCache atom_cache_;
104 106
105 bool wm_supports_active_window_; 107 bool wm_supports_active_window_;
106 108
107 DISALLOW_COPY_AND_ASSIGN(X11DesktopHandler); 109 DISALLOW_COPY_AND_ASSIGN(X11DesktopHandler);
108 }; 110 };
109 111
110 } // namespace views 112 } // namespace views
111 113
112 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_ 114 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/test/event_generator_delegate_mac.mm ('k') | ui/views/win/windows_session_change_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698