Index: ui/events/event_utils.cc |
diff --git a/ui/events/event_utils.cc b/ui/events/event_utils.cc |
index 2e3517e3e74249615689fc276b2c2a2e5bf23dc4..084a84ddfbf9cbd170568aeb2d0bef742eb3c6e5 100644 |
--- a/ui/events/event_utils.cc |
+++ b/ui/events/event_utils.cc |
@@ -8,7 +8,6 @@ |
#include "ui/events/event.h" |
#include "ui/gfx/display.h" |
-#include "ui/gfx/screen.h" |
namespace ui { |
@@ -117,23 +116,4 @@ base::TimeDelta EventTimeForNow() { |
base::TimeTicks::Now().ToInternalValue()); |
} |
-bool ShouldDefaultToNaturalScroll() { |
- return GetInternalDisplayTouchSupport() == |
- gfx::Display::TOUCH_SUPPORT_AVAILABLE; |
-} |
- |
-gfx::Display::TouchSupport GetInternalDisplayTouchSupport() { |
- gfx::Screen* screen = gfx::Screen::GetScreenByType(gfx::SCREEN_TYPE_NATIVE); |
- // No screen in some unit tests. |
- if (!screen) |
- return gfx::Display::TOUCH_SUPPORT_UNKNOWN; |
- const std::vector<gfx::Display>& displays = screen->GetAllDisplays(); |
- for (std::vector<gfx::Display>::const_iterator it = displays.begin(); |
- it != displays.end(); ++it) { |
- if (it->IsInternal()) |
- return it->touch_support(); |
- } |
- return gfx::Display::TOUCH_SUPPORT_UNAVAILABLE; |
-} |
- |
} // namespace ui |