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

Side by Side Diff: ui/aura/env.h

Issue 16092013: Use base::MessageLoop in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again, sigh Created 7 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
« no previous file with comments | « ui/aura/dispatcher_win.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AURA_ENV_H_ 5 #ifndef UI_AURA_ENV_H_
6 #define UI_AURA_ENV_H_ 6 #define UI_AURA_ENV_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
11 #include "ui/aura/aura_export.h" 11 #include "ui/aura/aura_export.h"
12 #include "ui/base/events/event_handler.h" 12 #include "ui/base/events/event_handler.h"
13 #include "ui/base/events/event_target.h" 13 #include "ui/base/events/event_target.h"
14 #include "ui/gfx/point.h" 14 #include "ui/gfx/point.h"
15 15
16 #if defined(USE_X11) 16 #if defined(USE_X11)
17 #include "ui/aura/device_list_updater_aurax11.h" 17 #include "ui/aura/device_list_updater_aurax11.h"
18 #endif 18 #endif
19 19
20 namespace aura { 20 namespace aura {
21 class EnvObserver; 21 class EnvObserver;
22 class RootWindow; 22 class RootWindow;
23 class Window; 23 class Window;
24 24
25 #if !defined(USE_X11) 25 #if !defined(USE_X11)
26 // Creates a platform-specific native event dispatcher. 26 // Creates a platform-specific native event dispatcher.
27 MessageLoop::Dispatcher* CreateDispatcher(); 27 base::MessageLoop::Dispatcher* CreateDispatcher();
28 #endif 28 #endif
29 29
30 // A singleton object that tracks general state within Aura. 30 // A singleton object that tracks general state within Aura.
31 // TODO(beng): manage RootWindows. 31 // TODO(beng): manage RootWindows.
32 class AURA_EXPORT Env : public ui::EventTarget { 32 class AURA_EXPORT Env : public ui::EventTarget {
33 public: 33 public:
34 Env(); 34 Env();
35 virtual ~Env(); 35 virtual ~Env();
36 36
37 static Env* GetInstance(); 37 static Env* GetInstance();
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 #if defined(USE_X11) 104 #if defined(USE_X11)
105 DeviceListUpdaterAuraX11 device_list_updater_aurax11_; 105 DeviceListUpdaterAuraX11 device_list_updater_aurax11_;
106 #endif 106 #endif
107 107
108 DISALLOW_COPY_AND_ASSIGN(Env); 108 DISALLOW_COPY_AND_ASSIGN(Env);
109 }; 109 };
110 110
111 } // namespace aura 111 } // namespace aura
112 112
113 #endif // UI_AURA_ENV_H_ 113 #endif // UI_AURA_ENV_H_
OLDNEW
« no previous file with comments | « ui/aura/dispatcher_win.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698