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/toplevel_window_event_handler.h" | 5 #include "ash/wm/toplevel_window_event_handler.h" |
6 | 6 |
7 #include "ash/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
10 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // requested and applies a minimum size constraint if there is one. | 45 // requested and applies a minimum size constraint if there is one. |
46 class TestWindowDelegate : public aura::test::TestWindowDelegate { | 46 class TestWindowDelegate : public aura::test::TestWindowDelegate { |
47 public: | 47 public: |
48 explicit TestWindowDelegate(int hittest_code) { | 48 explicit TestWindowDelegate(int hittest_code) { |
49 set_window_component(hittest_code); | 49 set_window_component(hittest_code); |
50 } | 50 } |
51 virtual ~TestWindowDelegate() {} | 51 virtual ~TestWindowDelegate() {} |
52 | 52 |
53 private: | 53 private: |
54 // Overridden from aura::Test::TestWindowDelegate: | 54 // Overridden from aura::Test::TestWindowDelegate: |
55 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE { | 55 virtual void OnWindowDestroyed(aura::Window* window) override { |
56 delete this; | 56 delete this; |
57 } | 57 } |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate); | 59 DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate); |
60 }; | 60 }; |
61 | 61 |
62 class ToplevelWindowEventHandlerTest : public AshTestBase { | 62 class ToplevelWindowEventHandlerTest : public AshTestBase { |
63 public: | 63 public: |
64 ToplevelWindowEventHandlerTest() {} | 64 ToplevelWindowEventHandlerTest() {} |
65 virtual ~ToplevelWindowEventHandlerTest() {} | 65 virtual ~ToplevelWindowEventHandlerTest() {} |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 EXPECT_EQ(aura::client::MOVE_SUCCESSFUL, | 734 EXPECT_EQ(aura::client::MOVE_SUCCESSFUL, |
735 move_client->RunMoveLoop(window.get(), gfx::Vector2d(), | 735 move_client->RunMoveLoop(window.get(), gfx::Vector2d(), |
736 aura::client::WINDOW_MOVE_SOURCE_MOUSE)); | 736 aura::client::WINDOW_MOVE_SOURCE_MOUSE)); |
737 } | 737 } |
738 | 738 |
739 // Showing the resize shadows when the mouse is over the window edges is tested | 739 // Showing the resize shadows when the mouse is over the window edges is tested |
740 // in resize_shadow_and_cursor_test.cc | 740 // in resize_shadow_and_cursor_test.cc |
741 | 741 |
742 } // namespace test | 742 } // namespace test |
743 } // namespace ash | 743 } // namespace ash |
OLD | NEW |