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

Unified Diff: ash/test/ash_test_base.cc

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (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
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/cursor_manager_test_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 25d10b8e8fed3caface16c4b858c84d0fa9bb2d9..4dffb1ba077cb0161a21c06ec1be62fac110ad62 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -28,10 +28,10 @@
#include "ui/aura/window_delegate.h"
#include "ui/aura/window_tree_host.h"
#include "ui/base/ime/input_method_initializer.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
#include "ui/events/gesture_detection/gesture_configuration.h"
-#include "ui/gfx/display.h"
#include "ui/gfx/geometry/point.h"
-#include "ui/gfx/screen.h"
#include "ui/wm/core/coordinate_conversion.h"
#if defined(OS_CHROMEOS)
@@ -60,8 +60,8 @@ class AshEventGeneratorDelegate
// aura::test::EventGeneratorDelegateAura overrides:
aura::WindowTreeHost* GetHostAt(
const gfx::Point& point_in_screen) const override {
- gfx::Screen* screen = gfx::Screen::GetScreen();
- gfx::Display display = screen->GetDisplayNearestPoint(point_in_screen);
+ display::Screen* screen = display::Screen::GetScreen();
+ display::Display display = screen->GetDisplayNearestPoint(point_in_screen);
return Shell::GetInstance()
->window_tree_host_manager()
->GetRootWindowForDisplayId(display.id())
@@ -167,7 +167,7 @@ void AshTestBase::TearDown() {
event_generator_.reset();
// Some tests set an internal display id,
// reset it here, so other tests will continue in a clean environment.
- gfx::Display::SetInternalDisplayId(gfx::Display::kInvalidDisplayID);
+ display::Display::SetInternalDisplayId(display::Display::kInvalidDisplayID);
}
ui::test::EventGenerator& AshTestBase::GetEventGenerator() {
@@ -178,15 +178,15 @@ ui::test::EventGenerator& AshTestBase::GetEventGenerator() {
return *event_generator_.get();
}
-gfx::Display::Rotation AshTestBase::GetActiveDisplayRotation(int64_t id) {
+display::Display::Rotation AshTestBase::GetActiveDisplayRotation(int64_t id) {
return Shell::GetInstance()
->display_manager()
->GetDisplayInfo(id)
.GetActiveRotation();
}
-gfx::Display::Rotation AshTestBase::GetCurrentInternalDisplayRotation() {
- return GetActiveDisplayRotation(gfx::Display::InternalDisplayId());
+display::Display::Rotation AshTestBase::GetCurrentInternalDisplayRotation() {
+ return GetActiveDisplayRotation(display::Display::InternalDisplayId());
}
bool AshTestBase::SupportsMultipleDisplays() {
@@ -243,7 +243,8 @@ aura::Window* AshTestBase::CreateTestWindowInShellWithDelegateAndType(
if (bounds.IsEmpty()) {
ParentWindowInPrimaryRootWindow(window);
} else {
- gfx::Display display = gfx::Screen::GetScreen()->GetDisplayMatching(bounds);
+ display::Display display =
+ display::Screen::GetScreen()->GetDisplayMatching(bounds);
aura::Window* root = ash::Shell::GetInstance()
->window_tree_host_manager()
->GetRootWindowForDisplayId(display.id());
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/cursor_manager_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698