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

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

Issue 907833002: Hide experimental app list Google logo and custom launcher page when search engine is not Google. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_app_list_bg_color
Patch Set: use AppListModel to hide everything, also hide the custom page view Created 5 years, 10 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/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Returns true if the app list should be centered and in landscape mode. 75 // Returns true if the app list should be centered and in landscape mode.
76 bool ShouldCenterWindow() const; 76 bool ShouldCenterWindow() const;
77 77
78 // Called when the search box's visibility is changed. 78 // Called when the search box's visibility is changed.
79 void NotifySearchBoxVisibilityChanged(); 79 void NotifySearchBoxVisibilityChanged();
80 80
81 // Initialize widgets that live inside the app list's main widget. 81 // Initialize widgets that live inside the app list's main widget.
82 void InitWidgets(); 82 void InitWidgets();
83 83
84 bool ShouldShowCustomLauncherPage() const;
85 void UpdateCustomLauncherPageVisibility();
86
84 // Overridden from AppListModelObserver: 87 // Overridden from AppListModelObserver:
85 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; 88 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override;
89 void OnSearchEngineIsGoogleChanged(bool is_google) override;
86 90
87 private: 91 private:
88 class IconLoader; 92 class IconLoader;
89 93
90 // Adds the ContentsView. 94 // Adds the ContentsView.
91 void AddContentsViews(); 95 void AddContentsViews();
92 96
93 // Gets the PaginationModel owned by the AppsGridView. 97 // Gets the PaginationModel owned by the AppsGridView.
94 PaginationModel* GetAppsPaginationModel(); 98 PaginationModel* GetAppsPaginationModel();
95 99
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 ScopedVector<IconLoader> pending_icon_loaders_; 140 ScopedVector<IconLoader> pending_icon_loaders_;
137 141
138 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; 142 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_;
139 143
140 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 144 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
141 }; 145 };
142 146
143 } // namespace app_list 147 } // namespace app_list
144 148
145 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 149 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698