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

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

Issue 2350623002: Deleted AppListViewDelegateObserver class (was unused). (Closed)
Patch Set: Created 4 years, 3 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 #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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 97
99 const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const { 98 const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const {
100 return users_; 99 return users_;
101 } 100 }
102 101
103 void AppListTestViewDelegate::ReplaceTestModel(int item_count) { 102 void AppListTestViewDelegate::ReplaceTestModel(int item_count) {
104 model_.reset(new AppListTestModel); 103 model_.reset(new AppListTestModel);
105 model_->PopulateApps(item_count); 104 model_->PopulateApps(item_count);
106 } 105 }
107 106
108 void AppListTestViewDelegate::AddObserver(
109 AppListViewDelegateObserver* observer) {
110 observers_.AddObserver(observer);
111 }
112
113 void AppListTestViewDelegate::RemoveObserver(
114 AppListViewDelegateObserver* observer) {
115 observers_.RemoveObserver(observer);
116 }
117
118 } // namespace test 107 } // namespace test
119 } // namespace app_list 108 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698