| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #include "ash/wm/drag_window_resizer.h" |    5 #include "ash/wm/drag_window_resizer.h" | 
|    6  |    6  | 
|    7 #include "ash/aura/wm_window_aura.h" |    7 #include "ash/aura/wm_window_aura.h" | 
|    8 #include "ash/common/material_design/material_design_controller.h" |    8 #include "ash/common/material_design/material_design_controller.h" | 
|    9 #include "ash/common/shelf/shelf_layout_manager.h" |    9 #include "ash/common/shelf/shelf_layout_manager.h" | 
|   10 #include "ash/common/wm/window_positioning_utils.h" |   10 #include "ash/common/wm/window_positioning_utils.h" | 
|   11 #include "ash/display/mouse_cursor_event_filter.h" |   11 #include "ash/display/mouse_cursor_event_filter.h" | 
|   12 #include "ash/public/cpp/shell_window_ids.h" |   12 #include "ash/public/cpp/shell_window_ids.h" | 
|   13 #include "ash/root_window_controller.h" |   13 #include "ash/root_window_controller.h" | 
|   14 #include "ash/shell.h" |   14 #include "ash/shell.h" | 
|   15 #include "ash/test/ash_md_test_base.h" |   15 #include "ash/test/ash_md_test_base.h" | 
|   16 #include "ash/test/cursor_manager_test_api.h" |   16 #include "ash/test/cursor_manager_test_api.h" | 
|   17 #include "ash/wm/drag_window_controller.h" |   17 #include "ash/wm/drag_window_controller.h" | 
|   18 #include "ash/wm/window_util.h" |   18 #include "ash/wm/window_util.h" | 
|   19 #include "base/strings/string_number_conversions.h" |   19 #include "base/strings/string_number_conversions.h" | 
|   20 #include "base/strings/stringprintf.h" |   20 #include "base/strings/stringprintf.h" | 
|   21 #include "ui/aura/client/aura_constants.h" |   21 #include "ui/aura/client/aura_constants.h" | 
|   22 #include "ui/aura/env.h" |   22 #include "ui/aura/env.h" | 
|   23 #include "ui/aura/test/test_window_delegate.h" |   23 #include "ui/aura/test/test_window_delegate.h" | 
|   24 #include "ui/base/hit_test.h" |   24 #include "ui/base/hit_test.h" | 
|   25 #include "ui/base/ui_base_types.h" |   25 #include "ui/base/ui_base_types.h" | 
|   26 #include "ui/compositor/layer_delegate.h" |   26 #include "ui/compositor/layer_delegate.h" | 
|   27 #include "ui/compositor/layer_tree_owner.h" |   27 #include "ui/compositor/layer_tree_owner.h" | 
|   28 #include "ui/display/manager/display_layout.h" |   28 #include "ui/display/display_layout.h" | 
|   29 #include "ui/display/manager/display_layout_builder.h" |   29 #include "ui/display/display_layout_builder.h" | 
|   30 #include "ui/display/manager/display_manager.h" |   30 #include "ui/display/manager/display_manager.h" | 
|   31 #include "ui/gfx/geometry/insets.h" |   31 #include "ui/gfx/geometry/insets.h" | 
|   32 #include "ui/views/widget/widget.h" |   32 #include "ui/views/widget/widget.h" | 
|   33 #include "ui/wm/core/window_util.h" |   33 #include "ui/wm/core/window_util.h" | 
|   34  |   34  | 
|   35 namespace ash { |   35 namespace ash { | 
|   36 namespace { |   36 namespace { | 
|   37  |   37  | 
|   38 const int kRootHeight = 600; |   38 const int kRootHeight = 600; | 
|   39  |   39  | 
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  775     ASSERT_TRUE(resizer.get()); |  775     ASSERT_TRUE(resizer.get()); | 
|  776     resizer->Drag(CalculateDragPoint(*resizer, 399, 200), 0); |  776     resizer->Drag(CalculateDragPoint(*resizer, 399, 200), 0); | 
|  777     EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(399, 200))); |  777     EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(399, 200))); | 
|  778     EXPECT_EQ("401,200", |  778     EXPECT_EQ("401,200", | 
|  779               aura::Env::GetInstance()->last_mouse_location().ToString()); |  779               aura::Env::GetInstance()->last_mouse_location().ToString()); | 
|  780     resizer->CompleteDrag(); |  780     resizer->CompleteDrag(); | 
|  781   } |  781   } | 
|  782 } |  782 } | 
|  783  |  783  | 
|  784 }  // namespace ash |  784 }  // namespace ash | 
| OLD | NEW |