Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: ui/app_list/shower/test/app_list_shower_impl_test_api.cc

Issue 1830293002: AppListController refactoring part 1: AppListShower implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing target names in .isolate. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « ui/app_list/shower/test/app_list_shower_impl_test_api.h ('k') | ui/app_list/shower/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698