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

Side by Side Diff: ui/app_list/cocoa/app_list_view_controller.h

Issue 2131463002: Purge the App Launcher code from Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Zap mac-specific icon assets 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_
6 #define UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #include <memory>
11
12 #include "base/mac/scoped_nsobject.h"
13 #include "ui/app_list/app_list_export.h"
14 #import "ui/app_list/cocoa/apps_pagination_model_observer.h"
15 #import "ui/app_list/cocoa/apps_search_box_controller.h"
16 #import "ui/app_list/cocoa/apps_search_results_controller.h"
17
18 namespace app_list {
19 class AppListViewDelegate;
20 class AppListModel;
21 class AppListModelObserverBridge;
22 }
23
24 @class AppListPagerView;
25 @class AppsGridController;
26
27 // Controller for the top-level view of the app list UI. It creates and hosts an
28 // AppsGridController (displaying an AppListModel), pager control to navigate
29 // between pages in the grid, and search entry box with a pop up menu.
30 APP_LIST_EXPORT
31 @interface AppListViewController : NSViewController<AppsPaginationModelObserver,
32 AppsSearchBoxDelegate,
33 AppsSearchResultsDelegate,
34 NSTextViewDelegate> {
35 @private
36 base::scoped_nsobject<AppsGridController> appsGridController_;
37 base::scoped_nsobject<AppListPagerView> pagerControl_;
38 base::scoped_nsobject<AppsSearchBoxController> appsSearchBoxController_;
39 base::scoped_nsobject<AppsSearchResultsController>
40 appsSearchResultsController_;
41
42 // If set, a message displayed above the app list grid.
43 base::scoped_nsobject<NSTextView> messageText_;
44 base::scoped_nsobject<NSScrollView> messageScrollView_;
45
46 // Subview for drawing the background.
47 base::scoped_nsobject<NSView> backgroundView_;
48
49 // Subview of |backgroundView_| that slides out when search results are shown.
50 base::scoped_nsobject<NSView> contentsView_;
51
52 // Progress indicator that is visible while the delegate is NULL.
53 base::scoped_nsobject<NSProgressIndicator> loadingIndicator_;
54
55 app_list::AppListViewDelegate* delegate_; // Weak. Owned by AppListService.
56
57 std::unique_ptr<app_list::AppListModelObserverBridge>
58 app_list_model_observer_bridge_;
59 BOOL showingSearchResults_;
60 }
61
62 @property(readonly, nonatomic) AppsSearchBoxController*
63 searchBoxController;
64
65 - (app_list::AppListViewDelegate*)delegate;
66 - (void)setDelegate:(app_list::AppListViewDelegate*)newDelegate;
67 - (void)onProfilesChanged;
68
69 @end
70
71 @interface AppListViewController (TestingAPI)
72
73 @property(nonatomic, readonly) BOOL showingSearchResults;
74
75 - (AppsGridController*)appsGridController;
76 - (NSSegmentedControl*)pagerControl;
77 - (NSView*)backgroundView;
78
79 @end
80
81 #endif // UI_APP_LIST_COCOA_APP_LIST_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698