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

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

Issue 2339523004: Remove old (dead) app list code. (Closed)
Patch Set: Address nonbistytftatl review. Created 4 years, 2 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
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/macros.h" 10 #include "base/macros.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop 60 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
61 // operations outside the application list. 61 // operations outside the application list.
62 void SetDragAndDropHostOfCurrentAppList( 62 void SetDragAndDropHostOfCurrentAppList(
63 ApplicationDragAndDropHost* drag_and_drop_host); 63 ApplicationDragAndDropHost* drag_and_drop_host);
64 64
65 ContentsView* contents_view() const { return contents_view_; } 65 ContentsView* contents_view() const { return contents_view_; }
66 AppListModel* model() { return model_; } 66 AppListModel* model() { return model_; }
67 AppListViewDelegate* view_delegate() { return delegate_; } 67 AppListViewDelegate* view_delegate() { return delegate_; }
68 68
69 // Returns true if the app list should be centered and in landscape mode.
70 bool ShouldCenterWindow() const;
71
72 // Called when the search box's visibility is changed. 69 // Called when the search box's visibility is changed.
73 void NotifySearchBoxVisibilityChanged(); 70 void NotifySearchBoxVisibilityChanged();
74 71
75 bool ShouldShowCustomLauncherPage() const; 72 bool ShouldShowCustomLauncherPage() const;
76 void UpdateCustomLauncherPageVisibility(); 73 void UpdateCustomLauncherPageVisibility();
77 74
78 // Overridden from AppListModelObserver: 75 // Overridden from AppListModelObserver:
79 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; 76 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override;
80 void OnSearchEngineIsGoogleChanged(bool is_google) override; 77 void OnSearchEngineIsGoogleChanged(bool is_google) override;
81 78
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 ScopedVector<IconLoader> pending_icon_loaders_; 121 ScopedVector<IconLoader> pending_icon_loaders_;
125 122
126 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; 123 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_;
127 124
128 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 125 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
129 }; 126 };
130 127
131 } // namespace app_list 128 } // namespace app_list
132 129
133 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 130 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698