| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 UI_APP_LIST_VIEWS_APP_LIST_VIEW_OBSERVER_H_ | 5 #include "ui/app_list/test/app_list_shower_impl_test_api.h" |
| 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_OBSERVER_H_ | |
| 7 | 6 |
| 8 namespace views { | 7 #include "ui/app_list/app_list_shower_impl.h" |
| 9 class Widget; | 8 #include "ui/app_list/views/app_list_view.h" |
| 9 |
| 10 namespace app_list { |
| 11 namespace test { |
| 12 |
| 13 AppListShowerImplTestApi::AppListShowerImplTestApi(AppListShowerImpl* shower) |
| 14 : shower_(shower) {} |
| 15 |
| 16 AppListView* AppListShowerImplTestApi::view() { |
| 17 return shower_->view_; |
| 10 } | 18 } |
| 11 | 19 |
| 12 namespace app_list { | 20 AppListShowerDelegate* AppListShowerImplTestApi::shower_delegate() { |
| 21 return shower_->shower_delegate_.get(); |
| 22 } |
| 13 | 23 |
| 14 class AppListViewObserver { | 24 } // namespace test |
| 15 public: | |
| 16 virtual void OnActivationChanged(views::Widget* widget, bool active) = 0; | |
| 17 | |
| 18 protected: | |
| 19 virtual ~AppListViewObserver() {} | |
| 20 }; | |
| 21 | |
| 22 } // namespace app_list | 25 } // namespace app_list |
| 23 | |
| 24 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_OBSERVER_H_ | |
| OLD | NEW |