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

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: address comment, add service dependency 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
« no previous file with comments | « ui/app_list/app_list_model_observer.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ContentsView* contents_view() const { return contents_view_; } 66 ContentsView* contents_view() const { return contents_view_; }
67 AppListModel* model() { return model_; } 67 AppListModel* model() { return model_; }
68 AppListViewDelegate* view_delegate() { return delegate_; } 68 AppListViewDelegate* view_delegate() { return delegate_; }
69 69
70 // Returns true if the app list should be centered and in landscape mode. 70 // Returns true if the app list should be centered and in landscape mode.
71 bool ShouldCenterWindow() const; 71 bool ShouldCenterWindow() const;
72 72
73 // Called when the search box's visibility is changed. 73 // Called when the search box's visibility is changed.
74 void NotifySearchBoxVisibilityChanged(); 74 void NotifySearchBoxVisibilityChanged();
75 75
76 bool ShouldShowCustomLauncherPage() const;
77 void UpdateCustomLauncherPageVisibility();
78
76 // Overridden from AppListModelObserver: 79 // Overridden from AppListModelObserver:
77 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; 80 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override;
81 void OnSearchEngineIsGoogleChanged(bool is_google) override;
78 82
79 private: 83 private:
80 class IconLoader; 84 class IconLoader;
81 85
82 // Adds the ContentsView. 86 // Adds the ContentsView.
83 void AddContentsViews(); 87 void AddContentsViews();
84 88
85 // Gets the PaginationModel owned by the AppsGridView. 89 // Gets the PaginationModel owned by the AppsGridView.
86 PaginationModel* GetAppsPaginationModel(); 90 PaginationModel* GetAppsPaginationModel();
87 91
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ScopedVector<IconLoader> pending_icon_loaders_; 127 ScopedVector<IconLoader> pending_icon_loaders_;
124 128
125 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; 129 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_;
126 130
127 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 131 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
128 }; 132 };
129 133
130 } // namespace app_list 134 } // namespace app_list
131 135
132 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 136 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_model_observer.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