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_ENV_H_ | 5 #ifndef UI_AURA_ENV_H_ |
6 #define UI_AURA_ENV_H_ | 6 #define UI_AURA_ENV_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "ui/aura/aura_export.h" | 12 #include "ui/aura/aura_export.h" |
13 #include "ui/aura/client/stacking_client.h" | 13 #include "ui/aura/client/stacking_client.h" |
14 | 14 |
15 namespace aura { | 15 namespace aura { |
16 | 16 |
17 class EnvObserver; | 17 class EnvObserver; |
18 class Window; | 18 class Window; |
19 | 19 |
| 20 #if !defined(OS_MACOSX) |
20 class Dispatcher : public MessageLoop::Dispatcher { | 21 class Dispatcher : public MessageLoop::Dispatcher { |
21 public: | 22 public: |
22 virtual ~Dispatcher() {} | 23 virtual ~Dispatcher() {} |
23 }; | 24 }; |
24 | 25 |
25 #if !defined(OS_MACOSX) | |
26 // Creates a platform-specific native event dispatcher. | 26 // Creates a platform-specific native event dispatcher. |
27 Dispatcher* CreateDispatcher(); | 27 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 { | 32 class AURA_EXPORT Env { |
33 public: | 33 public: |
34 Env(); | 34 Env(); |
35 ~Env(); | 35 ~Env(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 static Env* instance_; | 72 static Env* instance_; |
73 int mouse_button_flags_; | 73 int mouse_button_flags_; |
74 client::StackingClient* stacking_client_; | 74 client::StackingClient* stacking_client_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(Env); | 76 DISALLOW_COPY_AND_ASSIGN(Env); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace aura | 79 } // namespace aura |
80 | 80 |
81 #endif // UI_AURA_ENV_H_ | 81 #endif // UI_AURA_ENV_H_ |
OLD | NEW |