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 |
132 void AppListTestViewDelegate::ReplaceTestModel(int item_count) { | 136 void AppListTestViewDelegate::ReplaceTestModel(int item_count) { |
133 model_.reset(new AppListTestModel); | 137 model_.reset(new AppListTestModel); |
134 model_->PopulateApps(item_count); | 138 model_->PopulateApps(item_count); |
135 } | 139 } |
136 | 140 |
137 void AppListTestViewDelegate::AddObserver( | 141 void AppListTestViewDelegate::AddObserver( |
138 AppListViewDelegateObserver* observer) { | 142 AppListViewDelegateObserver* observer) { |
139 observers_.AddObserver(observer); | 143 observers_.AddObserver(observer); |
140 } | 144 } |
141 | 145 |
142 void AppListTestViewDelegate::RemoveObserver( | 146 void AppListTestViewDelegate::RemoveObserver( |
143 AppListViewDelegateObserver* observer) { | 147 AppListViewDelegateObserver* observer) { |
144 observers_.RemoveObserver(observer); | 148 observers_.RemoveObserver(observer); |
145 } | 149 } |
146 | 150 |
147 } // namespace test | 151 } // namespace test |
148 } // namespace app_list | 152 } // namespace app_list |
OLD | NEW |