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_TEST_LAUNCHER_VIEW_TEST_API_H_ | 5 #ifndef ASH_TEST_LAUNCHER_VIEW_TEST_API_H_ |
6 #define ASH_TEST_LAUNCHER_VIEW_TEST_API_H_ | 6 #define ASH_TEST_LAUNCHER_VIEW_TEST_API_H_ |
7 | 7 |
| 8 #include "ash/launcher/launcher_types.h" |
8 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
9 | 10 |
10 namespace gfx { | 11 namespace gfx { |
11 class Rect; | 12 class Rect; |
12 } | 13 } |
13 | 14 |
14 namespace ash { | 15 namespace ash { |
15 | 16 |
16 namespace internal { | 17 namespace internal { |
17 class LauncherButton; | 18 class LauncherButton; |
(...skipping 29 matching lines...) Expand all Loading... |
47 | 48 |
48 // Sets animation duration in milliseconds for test. | 49 // Sets animation duration in milliseconds for test. |
49 void SetAnimationDuration(int duration_ms); | 50 void SetAnimationDuration(int duration_ms); |
50 | 51 |
51 // Runs message loop and waits until all add/remove animations are done. | 52 // Runs message loop and waits until all add/remove animations are done. |
52 void RunMessageLoopUntilAnimationsDone(); | 53 void RunMessageLoopUntilAnimationsDone(); |
53 | 54 |
54 // An accessor for |launcher_view|. | 55 // An accessor for |launcher_view|. |
55 internal::LauncherView* launcher_view() { return launcher_view_; } | 56 internal::LauncherView* launcher_view() { return launcher_view_; } |
56 | 57 |
| 58 // Wrapper for LauncherView::SameDragType. |
| 59 bool SameDragType(LauncherItemType typea, LauncherItemType typeb) const; |
| 60 |
57 private: | 61 private: |
58 internal::LauncherView* launcher_view_; | 62 internal::LauncherView* launcher_view_; |
59 | 63 |
60 DISALLOW_COPY_AND_ASSIGN(LauncherViewTestAPI); | 64 DISALLOW_COPY_AND_ASSIGN(LauncherViewTestAPI); |
61 }; | 65 }; |
62 | 66 |
63 } // namespace test | 67 } // namespace test |
64 } // namespace ash | 68 } // namespace ash |
65 | 69 |
66 #endif // ASH_TEST_LAUNCHER_VIEW_TEST_API_H_ | 70 #endif // ASH_TEST_LAUNCHER_VIEW_TEST_API_H_ |
OLD | NEW |