| 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/workspace/workspace_event_handler.h" | 5 #include "ash/wm/workspace/workspace_event_handler.h" |
| 6 | 6 |
| 7 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
| 10 #include "ash/wm/window_state.h" | 10 #include "ash/wm/window_state.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "ui/events/event_processor.h" | 21 #include "ui/events/event_processor.h" |
| 22 #include "ui/gfx/screen.h" | 22 #include "ui/gfx/screen.h" |
| 23 #include "ui/wm/core/window_util.h" | 23 #include "ui/wm/core/window_util.h" |
| 24 #include "ui/wm/public/window_move_client.h" | 24 #include "ui/wm/public/window_move_client.h" |
| 25 | 25 |
| 26 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
| 27 #include "base/win/windows_version.h" | 27 #include "base/win/windows_version.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 namespace ash { | 30 namespace ash { |
| 31 namespace internal { | |
| 32 | 31 |
| 33 class WorkspaceEventHandlerTest : public test::AshTestBase { | 32 class WorkspaceEventHandlerTest : public test::AshTestBase { |
| 34 public: | 33 public: |
| 35 WorkspaceEventHandlerTest() {} | 34 WorkspaceEventHandlerTest() {} |
| 36 virtual ~WorkspaceEventHandlerTest() {} | 35 virtual ~WorkspaceEventHandlerTest() {} |
| 37 | 36 |
| 38 protected: | 37 protected: |
| 39 aura::Window* CreateTestWindow(aura::WindowDelegate* delegate, | 38 aura::Window* CreateTestWindow(aura::WindowDelegate* delegate, |
| 40 const gfx::Rect& bounds) { | 39 const gfx::Rect& bounds) { |
| 41 aura::Window* window = new aura::Window(delegate); | 40 aura::Window* window = new aura::Window(delegate); |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 wd.set_window_component(HTCAPTION); | 447 wd.set_window_component(HTCAPTION); |
| 449 | 448 |
| 450 ASSERT_TRUE(aura::client::GetWindowMoveClient(window->GetRootWindow())); | 449 ASSERT_TRUE(aura::client::GetWindowMoveClient(window->GetRootWindow())); |
| 451 base::MessageLoop::current()->DeleteSoon(FROM_HERE, window.get()); | 450 base::MessageLoop::current()->DeleteSoon(FROM_HERE, window.get()); |
| 452 aura::client::GetWindowMoveClient(window->GetRootWindow()) | 451 aura::client::GetWindowMoveClient(window->GetRootWindow()) |
| 453 ->RunMoveLoop(window.release(), | 452 ->RunMoveLoop(window.release(), |
| 454 gfx::Vector2d(), | 453 gfx::Vector2d(), |
| 455 aura::client::WINDOW_MOVE_SOURCE_MOUSE); | 454 aura::client::WINDOW_MOVE_SOURCE_MOUSE); |
| 456 } | 455 } |
| 457 | 456 |
| 458 } // namespace internal | |
| 459 } // namespace ash | 457 } // namespace ash |
| OLD | NEW |