Chromium Code Reviews| Index: ash/display/display_controller.cc |
| diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc |
| index a7343c9eccadbb55a62cc90081371710e9712f03..9b75f4542317c3da79ab12ae7f3a264bbd65b4f9 100644 |
| --- a/ash/display/display_controller.cc |
| +++ b/ash/display/display_controller.cc |
| @@ -35,9 +35,10 @@ |
| #include "ui/gfx/screen.h" |
| #if defined(OS_CHROMEOS) |
| -#include "ash/display/output_configurator_animation.h" |
| #include "base/chromeos/chromeos_version.h" |
| #include "base/time.h" |
| +#if defined(USE_X11) |
| +#include "ash/display/output_configurator_animation.h" |
| #include "chromeos/display/output_configurator.h" |
| #include "ui/base/x/x11_util.h" |
| @@ -45,6 +46,7 @@ |
| // potential conflict with chrome headers. |
| #include <X11/extensions/Xrandr.h> |
| #undef RootWindow |
| +#endif |
|
sadrul
2013/04/09 18:50:24
// defined(USE_X11)
rjkroege
2013/04/09 19:50:10
Done.
|
| #endif // defined(OS_CHROMEOS) |
| DECLARE_WINDOW_PROPERTY_TYPE(gfx::Display::Rotation); |
| @@ -181,7 +183,7 @@ void SetDisplayPropertiesOnHostWindow(aura::RootWindow* root, |
| const gfx::Display& display) { |
| internal::DisplayInfo info = |
| GetDisplayManager()->GetDisplayInfo(display.id()); |
| -#if defined(OS_CHROMEOS) |
| +#if defined(OS_CHROMEOS) && defined(USE_X11) |
| // Native window property (Atom in X11) that specifies the display's |
| // rotation, scale factor and if it's internal display. They are |
| // read and used by touchpad/mouse driver directly on X (contact |
| @@ -605,7 +607,7 @@ void DisplayController::CycleDisplayMode() { |
| return; |
| limiter_->SetThrottleTimeout(kCycleDisplayThrottleTimeoutMs); |
| } |
| -#if defined(OS_CHROMEOS) |
| +#if defined(OS_CHROMEOS) && defined(USE_X11) |
| Shell* shell = Shell::GetInstance(); |
| internal::DisplayManager* display_manager = GetDisplayManager(); |
| if (!base::chromeos::IsRunningOnChromeOS()) { |
| @@ -631,7 +633,7 @@ void DisplayController::SwapPrimaryDisplay() { |
| } |
| if (Shell::GetScreen()->GetNumDisplays() > 1) { |
| -#if defined(OS_CHROMEOS) |
| +#if defined(OS_CHROMEOS) && defined(USE_X11) |
| internal::OutputConfiguratorAnimation* animation = |
| Shell::GetInstance()->output_configurator_animation(); |
| if (animation) { |
| @@ -938,7 +940,7 @@ void DisplayController::RegisterLayoutForDisplayIdPairInternal( |
| } |
| void DisplayController::OnFadeOutForSwapDisplayFinished() { |
| -#if defined(OS_CHROMEOS) |
| +#if defined(OS_CHROMEOS) && defined(USE_X11) |
| SetPrimaryDisplay(ScreenAsh::GetSecondaryDisplay()); |
| Shell::GetInstance()->output_configurator_animation()->StartFadeInAnimation(); |
| #endif |