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 #ifndef ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_TEST_HELPER_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_TEST_HELPER_H_ |
6 #define ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_TEST_HELPER_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_TEST_HELPER_H_ |
7 | 7 |
8 #include "ash/wm/workspace/workspace_event_handler.h" | 8 #include "ash/wm/workspace/workspace_event_handler.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 namespace internal { | |
12 | 11 |
13 class WorkspaceEventHandlerTestHelper { | 12 class WorkspaceEventHandlerTestHelper { |
14 public: | 13 public: |
15 explicit WorkspaceEventHandlerTestHelper(WorkspaceEventHandler* handler); | 14 explicit WorkspaceEventHandlerTestHelper(WorkspaceEventHandler* handler); |
16 ~WorkspaceEventHandlerTestHelper(); | 15 ~WorkspaceEventHandlerTestHelper(); |
17 | 16 |
18 MultiWindowResizeController* resize_controller() { | 17 MultiWindowResizeController* resize_controller() { |
19 return &(handler_->multi_window_resize_controller_); | 18 return &(handler_->multi_window_resize_controller_); |
20 } | 19 } |
21 | 20 |
22 private: | 21 private: |
23 WorkspaceEventHandler* handler_; | 22 WorkspaceEventHandler* handler_; |
24 | 23 |
25 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerTestHelper); | 24 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandlerTestHelper); |
26 }; | 25 }; |
27 | 26 |
28 } // namespace internal | |
29 } // namespace ash | 27 } // namespace ash |
30 | 28 |
31 #endif // ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_TEST_HELPER_H_ | 29 #endif // ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_TEST_HELPER_H_ |
OLD | NEW |