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

Unified Diff: ash/wm/panels/panel_window_resizer_unittest.cc

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dock with zero width (exposing DragWindowResizer for tests, rebase) Created 7 years, 6 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/wm/panels/panel_window_resizer_unittest.cc
diff --git a/ash/wm/panels/panel_window_resizer_unittest.cc b/ash/wm/panels/panel_window_resizer_unittest.cc
index 2f05797b321d1b483df5dd4fa61a50fdac9c23c5..972e2d35336b521461f3f440ba09d7139ede3d09 100644
--- a/ash/wm/panels/panel_window_resizer_unittest.cc
+++ b/ash/wm/panels/panel_window_resizer_unittest.cc
@@ -46,10 +46,10 @@ class PanelWindowResizerTest : public test::AshTestBase {
}
protected:
- gfx::Point CalculateDragPoint(const PanelWindowResizer& resizer,
+ gfx::Point CalculateDragPoint(const WindowResizer& resizer,
int delta_x,
int delta_y) const {
- gfx::Point location = resizer.GetInitialLocationInParentForTest();
+ gfx::Point location = resizer.GetInitialLocationForTest();
location.set_x(location.x() + delta_x);
location.set_y(location.y() + delta_y);
return location;
@@ -73,17 +73,10 @@ class PanelWindowResizerTest : public test::AshTestBase {
return window;
}
- static PanelWindowResizer* CreatePanelWindowResizer(
- aura::Window* window,
- const gfx::Point& point_in_parent,
- int window_component) {
- return static_cast<PanelWindowResizer*>(CreateWindowResizer(
- window, point_in_parent, window_component).release());
- }
-
void DragStart(aura::Window* window) {
- resizer_.reset(CreatePanelWindowResizer(window, window->bounds().origin(),
- HTCAPTION));
+ resizer_.reset(CreateWindowResizer(window,
+ window->bounds().origin(),
+ HTCAPTION).release());
ASSERT_TRUE(resizer_.get());
}
@@ -188,7 +181,7 @@ class PanelWindowResizerTest : public test::AshTestBase {
}
private:
- scoped_ptr<PanelWindowResizer> resizer_;
+ scoped_ptr<WindowResizer> resizer_;
internal::PanelLayoutManager* panel_layout_manager_;
LauncherModel* model_;

Powered by Google App Engine
This is Rietveld 408576698