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

Unified Diff: ash/display/display_controller.cc

Issue 13947019: Clean up selected ash defines for MessagePumpLinux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: correctly fixed merge conflict Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.cc
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index 87b22a8f36a6df040c293c8894fb23b1935db09d..e80a892745683da3ffb2eae2ffd9aa56bcbfc809 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -42,9 +42,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"
@@ -52,6 +53,7 @@
// potential conflict with chrome headers.
#include <X11/extensions/Xrandr.h>
#undef RootWindow
+#endif // defined(USE_X11)
#endif // defined(OS_CHROMEOS)
namespace ash {
@@ -128,7 +130,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
@@ -624,7 +626,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()) {
@@ -650,7 +652,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) {
@@ -1033,7 +1035,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
« no previous file with comments | « no previous file | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698