OLD | NEW |
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 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 122 } |
123 | 123 |
124 content::WebContents* AppListTestViewDelegate::GetSpeechRecognitionContents() { | 124 content::WebContents* AppListTestViewDelegate::GetSpeechRecognitionContents() { |
125 return NULL; | 125 return NULL; |
126 } | 126 } |
127 | 127 |
128 const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const { | 128 const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const { |
129 return users_; | 129 return users_; |
130 } | 130 } |
131 | 131 |
132 bool AppListTestViewDelegate::ShouldCenterWindow() const { | |
133 return false; | |
134 } | |
135 | |
136 void AppListTestViewDelegate::ReplaceTestModel(int item_count) { | 132 void AppListTestViewDelegate::ReplaceTestModel(int item_count) { |
137 model_.reset(new AppListTestModel); | 133 model_.reset(new AppListTestModel); |
138 model_->PopulateApps(item_count); | 134 model_->PopulateApps(item_count); |
139 } | 135 } |
140 | 136 |
141 void AppListTestViewDelegate::AddObserver( | 137 void AppListTestViewDelegate::AddObserver( |
142 AppListViewDelegateObserver* observer) { | 138 AppListViewDelegateObserver* observer) { |
143 observers_.AddObserver(observer); | 139 observers_.AddObserver(observer); |
144 } | 140 } |
145 | 141 |
146 void AppListTestViewDelegate::RemoveObserver( | 142 void AppListTestViewDelegate::RemoveObserver( |
147 AppListViewDelegateObserver* observer) { | 143 AppListViewDelegateObserver* observer) { |
148 observers_.RemoveObserver(observer); | 144 observers_.RemoveObserver(observer); |
149 } | 145 } |
150 | 146 |
151 } // namespace test | 147 } // namespace test |
152 } // namespace app_list | 148 } // namespace app_list |
OLD | NEW |