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

Unified Diff: ui/app_list/views/test/app_list_view_test_api.h

Issue 2143893002: Purge the App Launcher code from Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/views/test/app_list_view_test_api.h
diff --git a/ui/app_list/views/test/app_list_view_test_api.h b/ui/app_list/views/test/app_list_view_test_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..63766f70ab77243bd39e9d528f1725805a5ba872
--- /dev/null
+++ b/ui/app_list/views/test/app_list_view_test_api.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// 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_TEST_APP_LIST_VIEW_TEST_API_H_
+#define UI_APP_LIST_VIEWS_TEST_APP_LIST_VIEW_TEST_API_H_
+
+#include "base/callback.h"
+#include "base/macros.h"
+
+namespace app_list {
+class AppListView;
+} // namespace app_list
tapted 2016/07/26 01:34:42 this should enclose AppListViewTestApi so we can r
calamity 2016/07/26 08:38:39 Done.
+
+namespace test {
+
+// Allow access to private variables of the AppListView for testing.
+class AppListViewTestApi {
+ public:
+ explicit AppListViewTestApi(app_list::AppListView* view);
+ virtual ~AppListViewTestApi();
tapted 2016/07/26 01:34:42 this doesn't need to be virtual. But also it can p
calamity 2016/07/26 08:38:39 Done.
+
+ bool is_overlay_visible();
+ void SetNextPaintCallback(const base::Closure& callback);
+
+ private:
+ app_list::AppListView* view_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListViewTestApi);
+};
+
+} // namespace test
+
+#endif // UI_APP_LIST_VIEWS_TEST_APP_LIST_VIEW_TEST_API_H_

Powered by Google App Engine
This is Rietveld 408576698