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

Unified Diff: ash/wm/custom_frame_view_ash_unittest.cc

Issue 10910164: Removes the grid from ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ShelfBrowserTest Created 8 years, 3 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/wm/base_layout_manager_unittest.cc ('k') | ash/wm/default_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/custom_frame_view_ash_unittest.cc
diff --git a/ash/wm/custom_frame_view_ash_unittest.cc b/ash/wm/custom_frame_view_ash_unittest.cc
index c458f7cc5dba914ef539acbc3b16e425ba38a110..d1ae80d4883748aa0ea7a63640f6f561406b93ac 100644
--- a/ash/wm/custom_frame_view_ash_unittest.cc
+++ b/ash/wm/custom_frame_view_ash_unittest.cc
@@ -157,7 +157,6 @@ TEST_F(CustomFrameViewAshTest, ResizeButtonDrag) {
CustomFrameViewAsh::TestApi test(frame);
views::View* view = test.maximize_button();
gfx::Point center = view->GetBoundsInScreen().CenterPoint();
- const int kGridSize = ash::Shell::GetInstance()->GetGridSize();
aura::test::EventGenerator generator(window->GetRootWindow(), center);
@@ -173,7 +172,7 @@ TEST_F(CustomFrameViewAshTest, ResizeButtonDrag) {
EXPECT_FALSE(ash::wm::IsWindowMaximized(window));
EXPECT_FALSE(ash::wm::IsWindowMinimized(window));
internal::SnapSizer sizer(window, center,
- internal::SnapSizer::RIGHT_EDGE, kGridSize);
+ internal::SnapSizer::RIGHT_EDGE);
EXPECT_EQ(sizer.target_bounds().ToString(), window->bounds().ToString());
}
@@ -189,7 +188,7 @@ TEST_F(CustomFrameViewAshTest, ResizeButtonDrag) {
EXPECT_FALSE(ash::wm::IsWindowMaximized(window));
EXPECT_FALSE(ash::wm::IsWindowMinimized(window));
internal::SnapSizer sizer(window, center,
- internal::SnapSizer::LEFT_EDGE, kGridSize);
+ internal::SnapSizer::LEFT_EDGE);
EXPECT_EQ(sizer.target_bounds().ToString(), window->bounds().ToString());
}
@@ -222,7 +221,7 @@ TEST_F(CustomFrameViewAshTest, ResizeButtonDrag) {
EXPECT_FALSE(ash::wm::IsWindowMaximized(window));
EXPECT_FALSE(ash::wm::IsWindowMinimized(window));
internal::SnapSizer sizer(window, center,
- internal::SnapSizer::RIGHT_EDGE, kGridSize);
+ internal::SnapSizer::RIGHT_EDGE);
EXPECT_EQ(sizer.target_bounds().ToString(), window->bounds().ToString());
}
@@ -239,7 +238,7 @@ TEST_F(CustomFrameViewAshTest, ResizeButtonDrag) {
EXPECT_FALSE(ash::wm::IsWindowMaximized(window));
EXPECT_FALSE(ash::wm::IsWindowMinimized(window));
internal::SnapSizer sizer(window, center,
- internal::SnapSizer::LEFT_EDGE, kGridSize);
+ internal::SnapSizer::LEFT_EDGE);
EXPECT_EQ(sizer.target_bounds().ToString(), window->bounds().ToString());
}
@@ -339,7 +338,6 @@ TEST_F(CustomFrameViewAshTest, MaximizeLeftButtonDragOut) {
// Test that clicking a button in the maximizer bubble (in this case the
// maximize left button) will do the requested action.
TEST_F(CustomFrameViewAshTest, MaximizeLeftByButton) {
- const int kGridSize = ash::Shell::GetInstance()->GetGridSize();
views::Widget* widget = CreateWidget();
aura::Window* window = widget->GetNativeWindow();
CustomFrameViewAsh* frame = custom_frame_view_ash(widget);
@@ -371,7 +369,7 @@ TEST_F(CustomFrameViewAshTest, MaximizeLeftByButton) {
EXPECT_FALSE(ash::wm::IsWindowMaximized(window));
EXPECT_FALSE(ash::wm::IsWindowMinimized(window));
internal::SnapSizer sizer(window, button_pos,
- internal::SnapSizer::LEFT_EDGE, kGridSize);
+ internal::SnapSizer::LEFT_EDGE);
sizer.SelectDefaultSizeAndDisableResize();
EXPECT_EQ(sizer.target_bounds().ToString(), window->bounds().ToString());
}
« no previous file with comments | « ash/wm/base_layout_manager_unittest.cc ('k') | ash/wm/default_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698