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 #include "ui/aura/env.h" | 5 #include "ui/aura/env.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "ui/aura/client/screen_position_client.h" | 8 #include "ui/aura/client/screen_position_client.h" |
9 #include "ui/aura/cursor_manager.h" | |
10 #include "ui/aura/env_observer.h" | 9 #include "ui/aura/env_observer.h" |
11 #include "ui/aura/event_filter.h" | 10 #include "ui/aura/event_filter.h" |
12 #include "ui/aura/display_manager.h" | 11 #include "ui/aura/display_manager.h" |
13 #include "ui/aura/root_window_host.h" | 12 #include "ui/aura/root_window_host.h" |
14 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
15 #include "ui/compositor/compositor.h" | 14 #include "ui/compositor/compositor.h" |
16 #include "ui/compositor/compositor_switches.h" | 15 #include "ui/compositor/compositor_switches.h" |
17 | 16 |
18 #if defined(USE_X11) | 17 #if defined(USE_X11) |
19 #include "ui/aura/display_change_observer_x11.h" | 18 #include "ui/aura/display_change_observer_x11.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 ui::Compositor::Initialize( | 100 ui::Compositor::Initialize( |
102 CommandLine::ForCurrentProcess()->HasSwitch( | 101 CommandLine::ForCurrentProcess()->HasSwitch( |
103 switches::kUIEnableThreadedCompositing)); | 102 switches::kUIEnableThreadedCompositing)); |
104 } | 103 } |
105 | 104 |
106 void Env::NotifyWindowInitialized(Window* window) { | 105 void Env::NotifyWindowInitialized(Window* window) { |
107 FOR_EACH_OBSERVER(EnvObserver, observers_, OnWindowInitialized(window)); | 106 FOR_EACH_OBSERVER(EnvObserver, observers_, OnWindowInitialized(window)); |
108 } | 107 } |
109 | 108 |
110 } // namespace aura | 109 } // namespace aura |
OLD | NEW |