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

Unified Diff: ash/content/display/screen_orientation_controller_chromeos_unittest.cc

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build Created 4 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
Index: ash/content/display/screen_orientation_controller_chromeos_unittest.cc
diff --git a/ash/content/display/screen_orientation_controller_chromeos_unittest.cc b/ash/content/display/screen_orientation_controller_chromeos_unittest.cc
index 7874f01382a8c20060f5eb25b62e490c6e4b0406..2632488a6351f3f5aeb8686f1cdc0ed66fed5544 100644
--- a/ash/content/display/screen_orientation_controller_chromeos_unittest.cc
+++ b/ash/content/display/screen_orientation_controller_chromeos_unittest.cc
@@ -8,7 +8,6 @@
#include <vector>
#include "ash/common/ash_switches.h"
-#include "ash/common/display/display_info.h"
#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
#include "ash/common/wm_shell.h"
#include "ash/content/shell_content_state.h"
@@ -29,6 +28,7 @@
#include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationLockType.h"
#include "ui/aura/window.h"
#include "ui/display/display.h"
+#include "ui/display/manager/managed_display_info.h"
#include "ui/message_center/message_center.h"
#include "ui/views/test/webview_test_helper.h"
#include "ui/views/view.h"
@@ -42,8 +42,8 @@ namespace {
const float kDegreesToRadians = 3.1415926f / 180.0f;
const float kMeanGravity = -9.8066f;
-DisplayInfo CreateDisplayInfo(int64_t id, const gfx::Rect& bounds) {
- DisplayInfo info(id, "dummy", false);
+ui::ManagedDisplayInfo CreateDisplayInfo(int64_t id, const gfx::Rect& bounds) {
+ ui::ManagedDisplayInfo info(id, "dummy", false);
info.SetBounds(bounds);
return info;
}
@@ -623,19 +623,21 @@ TEST_F(ScreenOrientationControllerTest, RotateInactiveDisplay) {
const int64_t kExternalDisplayId = 10;
const display::Display::Rotation kNewRotation = display::Display::ROTATE_180;
- const DisplayInfo internal_display_info =
+ const ui::ManagedDisplayInfo internal_display_info =
CreateDisplayInfo(kInternalDisplayId, gfx::Rect(0, 0, 500, 500));
- const DisplayInfo external_display_info =
+ const ui::ManagedDisplayInfo external_display_info =
CreateDisplayInfo(kExternalDisplayId, gfx::Rect(1, 1, 500, 500));
- std::vector<DisplayInfo> display_info_list_two_active;
+ std::vector<ui::ManagedDisplayInfo> display_info_list_two_active;
display_info_list_two_active.push_back(internal_display_info);
display_info_list_two_active.push_back(external_display_info);
- std::vector<DisplayInfo> display_info_list_one_active;
+ std::vector<ui::ManagedDisplayInfo> display_info_list_one_active;
display_info_list_one_active.push_back(external_display_info);
- // The DisplayInfo list with two active displays needs to be added first so
+ // The ui::ManagedDisplayInfo list with two active displays needs to be added
+ // first
+ // so
oshima 2016/08/26 21:47:53 nit: format
rjkroege 2016/08/29 22:21:59 Done.
// that the DisplayManager can track the |internal_display_info| as inactive
// instead of non-existent.
DisplayManager* display_manager = Shell::GetInstance()->display_manager();

Powered by Google App Engine
This is Rietveld 408576698