Index: ui/app_list/shower/test/app_list_shower_impl_test_api.cc |
diff --git a/ui/app_list/views/app_list_view_observer.h b/ui/app_list/shower/test/app_list_shower_impl_test_api.cc |
similarity index 30% |
copy from ui/app_list/views/app_list_view_observer.h |
copy to ui/app_list/shower/test/app_list_shower_impl_test_api.cc |
index f9fb61c819d5780af5f00085a30bc8b8145a5f7e..9423b3718e899ee8cc912dac9208fdfa892cfbc9 100644 |
--- a/ui/app_list/views/app_list_view_observer.h |
+++ b/ui/app_list/shower/test/app_list_shower_impl_test_api.cc |
@@ -2,23 +2,24 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_OBSERVER_H_ |
-#define UI_APP_LIST_VIEWS_APP_LIST_VIEW_OBSERVER_H_ |
+#include "ui/app_list/shower/test/app_list_shower_impl_test_api.h" |
-namespace views { |
-class Widget; |
-} |
+#include "ui/app_list/shower/app_list_shower_impl.h" |
+#include "ui/app_list/views/app_list_view.h" |
namespace app_list { |
+namespace test { |
-class AppListViewObserver { |
- public: |
- virtual void OnActivationChanged(views::Widget* widget, bool active) = 0; |
+AppListShowerImplTestApi::AppListShowerImplTestApi(AppListShowerImpl* shower) |
+ : shower_(shower) {} |
- protected: |
- virtual ~AppListViewObserver() {} |
-}; |
+AppListView* AppListShowerImplTestApi::view() { |
+ return shower_->view_; |
+} |
-} // namespace app_list |
+AppListShowerDelegate* AppListShowerImplTestApi::shower_delegate() { |
+ return shower_->shower_delegate_.get(); |
+} |
-#endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_OBSERVER_H_ |
+} // namespace test |
+} // namespace app_list |