OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ash_constants.h" | 5 #include "ash/ash_constants.h" |
6 #include "ash/frame/custom_frame_view_ash.h" | 6 #include "ash/frame/custom_frame_view_ash.h" |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "ash/test/cursor_manager_test_api.h" | 9 #include "ash/test/cursor_manager_test_api.h" |
10 #include "ash/wm/resize_shadow.h" | 10 #include "ash/wm/resize_shadow.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 TestWidgetDelegate() {} | 29 TestWidgetDelegate() {} |
30 virtual ~TestWidgetDelegate() {} | 30 virtual ~TestWidgetDelegate() {} |
31 | 31 |
32 // views::WidgetDelegateView overrides: | 32 // views::WidgetDelegateView overrides: |
33 virtual bool CanResize() const OVERRIDE { | 33 virtual bool CanResize() const OVERRIDE { |
34 return true; | 34 return true; |
35 } | 35 } |
36 virtual bool CanMaximize() const OVERRIDE { | 36 virtual bool CanMaximize() const OVERRIDE { |
37 return true; | 37 return true; |
38 } | 38 } |
| 39 virtual bool CanMinimize() const OVERRIDE { |
| 40 return true; |
| 41 } |
39 virtual views::NonClientFrameView* CreateNonClientFrameView( | 42 virtual views::NonClientFrameView* CreateNonClientFrameView( |
40 views::Widget* widget) OVERRIDE { | 43 views::Widget* widget) OVERRIDE { |
41 return new ash::CustomFrameViewAsh(widget); | 44 return new ash::CustomFrameViewAsh(widget); |
42 } | 45 } |
43 | 46 |
44 private: | 47 private: |
45 DISALLOW_COPY_AND_ASSIGN(TestWidgetDelegate); | 48 DISALLOW_COPY_AND_ASSIGN(TestWidgetDelegate); |
46 }; | 49 }; |
47 | 50 |
48 } // namespace | 51 } // namespace |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 generator.MoveMouseTo(200, 50); | 224 generator.MoveMouseTo(200, 50); |
222 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); | 225 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); |
223 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); | 226 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); |
224 generator.MoveMouseTo(200 - ash::kResizeInsideBoundsSize, 50); | 227 generator.MoveMouseTo(200 - ash::kResizeInsideBoundsSize, 50); |
225 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); | 228 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); |
226 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); | 229 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); |
227 } | 230 } |
228 | 231 |
229 } // namespace test | 232 } // namespace test |
230 } // namespace ash | 233 } // namespace ash |
OLD | NEW |