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

Unified Diff: ui/events/event_utils.cc

Issue 1922783002: Move gfx::Display/Screen to display::Display/Screen in aura/events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: ui/events/event_utils.cc
diff --git a/ui/events/event_utils.cc b/ui/events/event_utils.cc
index 503d74804d4f8d769f92731b2746766a27168e6e..9291a589af5b7dc281714395c9bd61d41a487c54 100644
--- a/ui/events/event_utils.cc
+++ b/ui/events/event_utils.cc
@@ -6,8 +6,8 @@
#include <vector>
-#include "ui/gfx/display.h"
-#include "ui/gfx/screen.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
namespace ui {
@@ -67,21 +67,21 @@ base::TimeDelta EventTimeForNow() {
bool ShouldDefaultToNaturalScroll() {
return GetInternalDisplayTouchSupport() ==
- gfx::Display::TOUCH_SUPPORT_AVAILABLE;
+ display::Display::TOUCH_SUPPORT_AVAILABLE;
}
-gfx::Display::TouchSupport GetInternalDisplayTouchSupport() {
- gfx::Screen* screen = gfx::Screen::GetScreen();
+display::Display::TouchSupport GetInternalDisplayTouchSupport() {
+ display::Screen* screen = display::Screen::GetScreen();
// 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();
+ return display::Display::TOUCH_SUPPORT_UNKNOWN;
+ const std::vector<display::Display>& displays = screen->GetAllDisplays();
+ for (std::vector<display::Display>::const_iterator it = displays.begin();
it != displays.end(); ++it) {
if (it->IsInternal())
return it->touch_support();
}
- return gfx::Display::TOUCH_SUPPORT_UNAVAILABLE;
+ return display::Display::TOUCH_SUPPORT_UNAVAILABLE;
}
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698