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

Side by Side Diff: ui/app_list/views/app_list_main_view.h

Issue 683703002: Notify launcher page with onTransitionChanged event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launcher_page_api_show_state_notify
Patch Set: fix mac compile Created 6 years, 1 month 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
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_main_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_MAIN_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 20 matching lines...) Expand all
31 class PaginationModel; 31 class PaginationModel;
32 class SearchBoxView; 32 class SearchBoxView;
33 33
34 // AppListMainView contains the normal view of the app list, which is shown 34 // AppListMainView contains the normal view of the app list, which is shown
35 // when the user is signed in. 35 // when the user is signed in.
36 class APP_LIST_EXPORT AppListMainView : public views::View, 36 class APP_LIST_EXPORT AppListMainView : public views::View,
37 public AppsGridViewDelegate, 37 public AppsGridViewDelegate,
38 public SearchBoxViewDelegate, 38 public SearchBoxViewDelegate,
39 public SearchResultListViewDelegate { 39 public SearchResultListViewDelegate {
40 public: 40 public:
41 // Takes ownership of |delegate|.
42 explicit AppListMainView(AppListViewDelegate* delegate); 41 explicit AppListMainView(AppListViewDelegate* delegate);
43 ~AppListMainView() override; 42 ~AppListMainView() override;
44 43
45 void Init(gfx::NativeView parent, 44 void Init(gfx::NativeView parent,
46 int initial_apps_page, 45 int initial_apps_page,
47 SearchBoxView* search_box_view); 46 SearchBoxView* search_box_view);
48 47
49 void ShowAppListWhenReady(); 48 void ShowAppListWhenReady();
50 49
51 void ResetForShow(); 50 void ResetForShow();
(...skipping 13 matching lines...) Expand all
65 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop 64 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
66 // operations outside the application list. 65 // operations outside the application list.
67 void SetDragAndDropHostOfCurrentAppList( 66 void SetDragAndDropHostOfCurrentAppList(
68 ApplicationDragAndDropHost* drag_and_drop_host); 67 ApplicationDragAndDropHost* drag_and_drop_host);
69 68
70 ContentsView* contents_view() const { return contents_view_; } 69 ContentsView* contents_view() const { return contents_view_; }
71 ContentsSwitcherView* contents_switcher_view() const { 70 ContentsSwitcherView* contents_switcher_view() const {
72 return contents_switcher_view_; 71 return contents_switcher_view_;
73 } 72 }
74 AppListModel* model() { return model_; } 73 AppListModel* model() { return model_; }
74 AppListViewDelegate* view_delegate() { return delegate_; }
75 75
76 // Returns true if the app list should be centered and in landscape mode. 76 // Returns true if the app list should be centered and in landscape mode.
77 bool ShouldCenterWindow() const; 77 bool ShouldCenterWindow() const;
78 78
79 // Called when the search box's visibility is changed. 79 // Called when the search box's visibility is changed.
80 void NotifySearchBoxVisibilityChanged(); 80 void NotifySearchBoxVisibilityChanged();
81 81
82 private: 82 private:
83 class IconLoader; 83 class IconLoader;
84 84
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 ScopedVector<IconLoader> pending_icon_loaders_; 129 ScopedVector<IconLoader> pending_icon_loaders_;
130 130
131 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; 131 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 133 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
134 }; 134 };
135 135
136 } // namespace app_list 136 } // namespace app_list
137 137
138 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 138 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_main_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698