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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 years, 2 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 | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
index 81082437757ccb05f34f8d961916e30897f212c4..190f5edb44dbb4ac5e808739cd052ce8e465be13 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
@@ -157,7 +157,7 @@ Browser* TabDragControllerTest::CreateAnotherWindowBrowserAndRelayout() {
ResetIDs(browser2->tab_strip_model(), 100);
// Resize the two windows so they're right next to each other.
- gfx::Rect work_area = gfx::Screen::GetDisplayNearestWindow(
+ gfx::Rect work_area = gfx::Screen::GetNativeScreen()->GetDisplayNearestWindow(
browser()->window()->GetNativeWindow()).work_area();
gfx::Size half_size =
gfx::Size(work_area.width() / 3 - 10, work_area.height() / 2 - 10);
@@ -1085,7 +1085,7 @@ IN_PROC_BROWSER_TEST_P(DetachToBrowserInSeparateDisplayTabDragControllerTest,
std::vector<aura::RootWindow*> roots(ash::Shell::GetAllRootWindows());
ASSERT_EQ(2u, roots.size());
aura::RootWindow* second_root = roots[1];
- gfx::Rect work_area = gfx::Screen::GetDisplayNearestWindow(
+ gfx::Rect work_area = gfx::Screen::GetNativeScreen()->GetDisplayNearestWindow(
second_root).work_area();
browser2->window()->SetBounds(work_area);
EXPECT_EQ(second_root,
@@ -1197,7 +1197,8 @@ IN_PROC_BROWSER_TEST_F(
std::vector<aura::RootWindow*> roots(ash::Shell::GetAllRootWindows());
ASSERT_EQ(2u, roots.size());
gfx::Point final_destination =
- gfx::Screen::GetDisplayNearestWindow(roots[1]).work_area().CenterPoint();
+ gfx::Screen::GetNativeScreen()->GetDisplayNearestWindow(
+ roots[1]).work_area().CenterPoint();
// Move to the first tab and drag it enough so that it detaches, but not
// enough to move to another display.
@@ -1233,14 +1234,15 @@ IN_PROC_BROWSER_TEST_F(
EXPECT_EQ("0 1", IDString(browser()->tab_strip_model()));
EXPECT_EQ(roots[0], browser()->window()->GetNativeWindow()->GetRootWindow());
- gfx::Rect work_area =
- gfx::Screen::GetDisplayNearestWindow(roots[1]).work_area();
+ gfx::Rect work_area = gfx::Screen::GetNativeScreen()->
+ GetDisplayNearestWindow(roots[1]).work_area();
browser()->window()->SetBounds(work_area);
EXPECT_EQ(roots[1], browser()->window()->GetNativeWindow()->GetRootWindow());
// Move the second browser to the display.
gfx::Point final_destination =
- gfx::Screen::GetDisplayNearestWindow(roots[0]).work_area().CenterPoint();
+ gfx::Screen::GetNativeScreen()->GetDisplayNearestWindow(
+ roots[0]).work_area().CenterPoint();
// Move to the first tab and drag it enough so that it detaches, but not
// enough to move to another display.
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698