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

Unified Diff: trunk/src/ash/host/ash_window_tree_host_x11.cc

Issue 287783002: Revert 270232 "linux_aura: Compile ash into chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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
Index: trunk/src/ash/host/ash_window_tree_host_x11.cc
===================================================================
--- trunk/src/ash/host/ash_window_tree_host_x11.cc (revision 270237)
+++ trunk/src/ash/host/ash_window_tree_host_x11.cc (working copy)
@@ -286,9 +286,7 @@
}
void AshWindowTreeHostX11::OnCursorVisibilityChangedNative(bool show) {
-#if defined(OS_CHROMEOS)
SetCrOSTapPaused(!show);
-#endif
}
void AshWindowTreeHostX11::OnWindowInitialized(aura::Window* window) {}
@@ -302,11 +300,9 @@
return;
UpdateIsInternalDisplay();
-#if defined(OS_CHROMEOS)
// We have to enable Tap-to-click by default because the cursor is set to
// visible in Shell::InitRootWindowController.
SetCrOSTapPaused(false);
-#endif
}
void AshWindowTreeHostX11::OnConfigureNotify() {
@@ -327,7 +323,6 @@
case ui::ET_TOUCH_PRESSED:
case ui::ET_TOUCH_CANCELLED:
case ui::ET_TOUCH_RELEASED: {
-#if defined(OS_CHROMEOS)
ui::TouchEvent* touchev = static_cast<ui::TouchEvent*>(event);
if (base::SysInfo::IsRunningOnChromeOS()) {
// X maps the touch-surface to the size of the X root-window.
@@ -342,7 +337,6 @@
touch_calibrate_->Calibrate(touchev, bounds());
#endif // defined(USE_XI2_MT)
}
-#endif // defined(OS_CHROMEOS)
break;
}
default: {
@@ -378,7 +372,6 @@
is_internal_display_ = display.IsInternal();
}
-#if defined(OS_CHROMEOS)
void AshWindowTreeHostX11::SetCrOSTapPaused(bool state) {
if (!ui::IsXInput2Available())
return;
@@ -421,7 +414,6 @@
}
}
}
-#endif
AshWindowTreeHost* AshWindowTreeHost::Create(const gfx::Rect& initial_bounds) {
return new AshWindowTreeHostX11(initial_bounds);
« no previous file with comments | « trunk/src/ash/host/ash_window_tree_host_x11.h ('k') | trunk/src/ash/host/ash_window_tree_host_x11_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698