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/test/launcher_view_test_api.h" | 5 #include "ash/test/launcher_view_test_api.h" |
6 | 6 |
7 #include "ash/launcher/launcher_button.h" | 7 #include "ash/launcher/launcher_button.h" |
8 #include "ash/launcher/launcher_model.h" | 8 #include "ash/launcher/launcher_model.h" |
9 #include "ash/launcher/launcher_view.h" | 9 #include "ash/launcher/launcher_view.h" |
10 #include "ash/launcher/overflow_button.h" | 10 #include "ash/shelf/overflow_button.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "ui/views/animation/bounds_animator.h" | 12 #include "ui/views/animation/bounds_animator.h" |
13 #include "ui/views/view_model.h" | 13 #include "ui/views/view_model.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // A class used to wait for animations. | 17 // A class used to wait for animations. |
18 class TestAPIAnimationObserver : public views::BoundsAnimatorObserver { | 18 class TestAPIAnimationObserver : public views::BoundsAnimatorObserver { |
19 public: | 19 public: |
20 TestAPIAnimationObserver() {} | 20 TestAPIAnimationObserver() {} |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 launcher_view_->bounds_animator_->RemoveObserver(observer.get()); | 95 launcher_view_->bounds_animator_->RemoveObserver(observer.get()); |
96 } | 96 } |
97 | 97 |
98 bool LauncherViewTestAPI::SameDragType(LauncherItemType typea, | 98 bool LauncherViewTestAPI::SameDragType(LauncherItemType typea, |
99 LauncherItemType typeb) const { | 99 LauncherItemType typeb) const { |
100 return launcher_view_->SameDragType(typea, typeb); | 100 return launcher_view_->SameDragType(typea, typeb); |
101 } | 101 } |
102 | 102 |
103 } // namespace test | 103 } // namespace test |
104 } // namespace ash | 104 } // namespace ash |
OLD | NEW |