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

Unified Diff: ash/test/display_manager_test_api.cc

Issue 1838833002: Move DisplayLayout and DisplayLayoutBuilder From ash To ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screenwinmove
Patch Set: Fix comment 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/display_manager_test_api.h ('k') | ash/touch/touch_transformer_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/display_manager_test_api.cc
diff --git a/ash/test/display_manager_test_api.cc b/ash/test/display_manager_test_api.cc
index 0e49e6d0e40baed5f8e83e42c2d85a1c34c05ed8..10ef37f7060ec3402b89ce8dcd5485e103c4e08b 100644
--- a/ash/test/display_manager_test_api.cc
+++ b/ash/test/display_manager_test_api.cc
@@ -9,7 +9,6 @@
#include "ash/ash_switches.h"
#include "ash/display/display_info.h"
-#include "ash/display/display_layout_builder.h"
#include "ash/display/display_layout_store.h"
#include "ash/display/display_manager.h"
#include "ash/display/display_util.h"
@@ -22,15 +21,12 @@
#include "base/strings/string_split.h"
#include "ui/aura/env.h"
#include "ui/aura/window_event_dispatcher.h"
+#include "ui/display/manager/display_layout_builder.h"
#include "ui/events/test/event_generator.h"
#include "ui/gfx/display.h"
namespace ash {
namespace test {
-typedef std::vector<gfx::Display> DisplayList;
-typedef DisplayInfo DisplayInfo;
-typedef std::vector<DisplayInfo> DisplayInfoList;
-
namespace {
std::vector<DisplayInfo> CreateDisplayInfoListFromString(
@@ -41,9 +37,10 @@ std::vector<DisplayInfo> CreateDisplayInfoListFromString(
specs, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
size_t index = 0;
- DisplayList list = display_manager->IsInUnifiedMode()
- ? display_manager->software_mirroring_display_list()
- : display_manager->active_display_list();
+ display::DisplayList list =
+ display_manager->IsInUnifiedMode()
+ ? display_manager->software_mirroring_display_list()
+ : display_manager->active_display_list();
for (std::vector<std::string>::const_iterator iter = parts.begin();
iter != parts.end(); ++iter, ++index) {
@@ -174,29 +171,29 @@ void SwapPrimaryDisplay() {
ScreenUtil::GetSecondaryDisplay().id());
}
-scoped_ptr<DisplayLayout> CreateDisplayLayout(
- DisplayPlacement::Position position,
+scoped_ptr<display::DisplayLayout> CreateDisplayLayout(
+ display::DisplayPlacement::Position position,
int offset) {
DisplayManager* display_manager = Shell::GetInstance()->display_manager();
- DisplayIdList list = display_manager->GetCurrentDisplayIdList();
+ display::DisplayIdList list = display_manager->GetCurrentDisplayIdList();
- DisplayLayoutBuilder builder(
+ display::DisplayLayoutBuilder builder(
gfx::Screen::GetScreen()->GetPrimaryDisplay().id());
builder.SetSecondaryPlacement(ScreenUtil::GetSecondaryDisplay().id(),
position, offset);
return builder.Build();
}
-DisplayIdList CreateDisplayIdList2(int64_t id1, int64_t id2) {
- DisplayIdList list;
+display::DisplayIdList CreateDisplayIdList2(int64_t id1, int64_t id2) {
+ display::DisplayIdList list;
list.push_back(id1);
list.push_back(id2);
SortDisplayIdList(&list);
return list;
}
-DisplayIdList CreateDisplayIdListN(size_t count, ...) {
- DisplayIdList list;
+display::DisplayIdList CreateDisplayIdListN(size_t count, ...) {
+ display::DisplayIdList list;
va_list args;
va_start(args, count);
for (size_t i = 0; i < count; i++) {
« no previous file with comments | « ash/test/display_manager_test_api.h ('k') | ash/touch/touch_transformer_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698