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

Unified Diff: ui/events/event_utils.cc

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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 | « ui/events/event_utils.h ('k') | ui/events/gesture_detection/gesture_config_helper_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/events/event_utils.h ('k') | ui/events/gesture_detection/gesture_config_helper_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698