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

Side by Side Diff: ui/app_list/test/app_list_test_view_delegate.cc

Issue 2127713005: Purge AppListMenu, and the app list profile switcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160707-Apps-RemoveSettings
Patch Set: 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
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_menu_views.h » ('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 #include "ui/app_list/test/app_list_test_view_delegate.h" 5 #include "ui/app_list/test/app_list_test_view_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "ui/app_list/app_list_model.h" 12 #include "ui/app_list/app_list_model.h"
13 #include "ui/app_list/app_list_switches.h" 13 #include "ui/app_list/app_list_switches.h"
14 #include "ui/app_list/app_list_view_delegate_observer.h"
15 #include "ui/app_list/test/app_list_test_model.h" 14 #include "ui/app_list/test/app_list_test_model.h"
16 #include "ui/gfx/image/image_skia.h" 15 #include "ui/gfx/image/image_skia.h"
17 16
18 namespace app_list { 17 namespace app_list {
19 namespace test { 18 namespace test {
20 19
21 AppListTestViewDelegate::AppListTestViewDelegate() 20 AppListTestViewDelegate::AppListTestViewDelegate()
22 : dismiss_count_(0), 21 : dismiss_count_(0),
23 stop_speech_recognition_count_(0), 22 stop_speech_recognition_count_(0),
24 open_search_result_count_(0), 23 open_search_result_count_(0),
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 std::vector<views::View*> AppListTestViewDelegate::CreateCustomPageWebViews( 94 std::vector<views::View*> AppListTestViewDelegate::CreateCustomPageWebViews(
96 const gfx::Size& size) { 95 const gfx::Size& size) {
97 return std::vector<views::View*>(); 96 return std::vector<views::View*>();
98 } 97 }
99 #endif 98 #endif
100 99
101 bool AppListTestViewDelegate::IsSpeechRecognitionEnabled() { 100 bool AppListTestViewDelegate::IsSpeechRecognitionEnabled() {
102 return false; 101 return false;
103 } 102 }
104 103
105 const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const {
106 return users_;
107 }
108
109 bool AppListTestViewDelegate::ShouldCenterWindow() const { 104 bool AppListTestViewDelegate::ShouldCenterWindow() const {
110 return app_list::switches::IsCenteredAppListEnabled(); 105 return app_list::switches::IsCenteredAppListEnabled();
111 } 106 }
112 107
113 void AppListTestViewDelegate::ReplaceTestModel(int item_count) { 108 void AppListTestViewDelegate::ReplaceTestModel(int item_count) {
114 model_.reset(new AppListTestModel); 109 model_.reset(new AppListTestModel);
115 model_->PopulateApps(item_count); 110 model_->PopulateApps(item_count);
116 } 111 }
117 112
118 void AppListTestViewDelegate::AddObserver(
119 AppListViewDelegateObserver* observer) {
120 observers_.AddObserver(observer);
121 }
122
123 void AppListTestViewDelegate::RemoveObserver(
124 AppListViewDelegateObserver* observer) {
125 observers_.RemoveObserver(observer);
126 }
127
128 } // namespace test 113 } // namespace test
129 } // namespace app_list 114 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_menu_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698