| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ash/display/mirror_window_controller.h" | 5 #include "ash/display/mirror_window_controller.h" |
| 6 | 6 |
| 7 #if defined(USE_X11) | 7 #if defined(USE_X11) |
| 8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 | 9 |
| 10 // Xlib.h defines RootWindow. | 10 // Xlib.h defines RootWindow. |
| 11 #undef RootWindow | 11 #undef RootWindow |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include "ash/display/cursor_window_controller.h" | 14 #include "ash/display/cursor_window_controller.h" |
| 15 #include "ash/display/display_controller.h" | 15 #include "ash/display/display_controller.h" |
| 16 #include "ash/display/display_info.h" | 16 #include "ash/display/display_info.h" |
| 17 #include "ash/display/display_manager.h" | 17 #include "ash/display/display_manager.h" |
| 18 #include "ash/display/root_window_transformers.h" | 18 #include "ash/display/root_window_transformers.h" |
| 19 #include "ash/host/window_tree_host_factory.h" | 19 #include "ash/host/window_tree_host_factory.h" |
| 20 #include "ash/root_window_settings.h" | 20 #include "ash/root_window_settings.h" |
| 21 #include "ash/shell.h" | 21 #include "ash/shell.h" |
| 22 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" |
| 23 #include "ui/aura/client/capture_client.h" | 23 #include "ui/aura/client/capture_client.h" |
| 24 #include "ui/aura/root_window.h" | |
| 25 #include "ui/aura/root_window_transformer.h" | 24 #include "ui/aura/root_window_transformer.h" |
| 26 #include "ui/aura/window_delegate.h" | 25 #include "ui/aura/window_delegate.h" |
| 26 #include "ui/aura/window_event_dispatcher.h" |
| 27 #include "ui/base/layout.h" | 27 #include "ui/base/layout.h" |
| 28 #include "ui/compositor/reflector.h" | 28 #include "ui/compositor/reflector.h" |
| 29 #include "ui/gfx/canvas.h" | 29 #include "ui/gfx/canvas.h" |
| 30 #include "ui/gfx/native_widget_types.h" | 30 #include "ui/gfx/native_widget_types.h" |
| 31 | 31 |
| 32 #if defined(USE_X11) | 32 #if defined(USE_X11) |
| 33 #include "ui/gfx/x/x11_types.h" | 33 #include "ui/gfx/x/x11_types.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 namespace ash { | 36 namespace ash { |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 Shell::GetScreen()->GetPrimaryDisplay().id()); | 182 Shell::GetScreen()->GetPrimaryDisplay().id()); |
| 183 DCHECK(display_manager->IsMirrored()); | 183 DCHECK(display_manager->IsMirrored()); |
| 184 return scoped_ptr<aura::RootWindowTransformer>( | 184 return scoped_ptr<aura::RootWindowTransformer>( |
| 185 internal::CreateRootWindowTransformerForMirroredDisplay( | 185 internal::CreateRootWindowTransformerForMirroredDisplay( |
| 186 source_display_info, | 186 source_display_info, |
| 187 mirror_display_info)); | 187 mirror_display_info)); |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace internal | 190 } // namespace internal |
| 191 } // namespace ash | 191 } // namespace ash |
| OLD | NEW |