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

Unified Diff: ui/base/layout.cc

Issue 10832252: Remove touch optimized layout on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 4 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 | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/layout.cc
diff --git a/ui/base/layout.cc b/ui/base/layout.cc
index 6f98c9d3c3e6ada5fb05043a89a44b64b90f35ad..618944c0f63f57e89f567f29a2e79696b3efb3c1 100644
--- a/ui/base/layout.cc
+++ b/ui/base/layout.cc
@@ -19,10 +19,6 @@
#include "ui/compositor/compositor.h"
#endif // defined(USE_AURA) && !defined(OS_WIN)
-#if defined(USE_AURA) && defined(USE_X11)
-#include "ui/base/touch/touch_factory.h"
-#endif // defined(USE_AURA) && defined(USE_X11)
-
#if defined(OS_MACOSX)
#include "base/mac/mac_util.h"
#endif
@@ -59,22 +55,6 @@ bool UseTouchOptimizedUI() {
// On Windows, we use the touch layout only when we are running in
// Metro mode.
return base::win::IsMetroProcess() && base::win::IsTouchEnabled();
-#elif defined(USE_AURA) && defined(USE_X11)
- // Determine whether touch-screen hardware is currently available.
- // For now we must ensure this won't change over the life of the process,
- // since we don't yet support updating the UI. crbug.com/124399
- static bool has_touch_device =
- ui::TouchFactory::GetInstance()->IsTouchDevicePresent();
-
- // Work-around for late device detection in some cases. If we've asked for
- // touch calibration then we're certainly expecting a touch screen, it must
- // just not be ready yet. Force-enable touch-ui mode in this case.
- static bool enable_touch_calibration = CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kEnableTouchCalibration);
- if (!has_touch_device && enable_touch_calibration)
- has_touch_device = true;
-
- return has_touch_device;
#else
return false;
#endif
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698