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" |
11 #include "ui/app_list/app_list_model.h" | 11 #include "ui/app_list/app_list_model.h" |
12 #include "ui/app_list/app_list_switches.h" | 12 #include "ui/app_list/app_list_switches.h" |
13 #include "ui/app_list/app_list_view_delegate_observer.h" | 13 #include "ui/app_list/app_list_view_delegate_observer.h" |
14 #include "ui/app_list/test/app_list_test_model.h" | 14 #include "ui/app_list/test/app_list_test_model.h" |
15 #include "ui/gfx/image/image_skia.h" | 15 #include "ui/gfx/image/image_skia.h" |
16 | 16 |
17 namespace app_list { | 17 namespace app_list { |
18 namespace test { | 18 namespace test { |
19 | 19 |
20 AppListTestViewDelegate::AppListTestViewDelegate() | 20 AppListTestViewDelegate::AppListTestViewDelegate() |
21 : dismiss_count_(0), | 21 : dismiss_count_(0), |
22 toggle_speech_recognition_count_(0), | 22 toggle_speech_recognition_count_(0), |
23 open_search_result_count_(0), | 23 open_search_result_count_(0), |
24 next_profile_app_count_(0), | 24 next_profile_app_count_(0), |
25 model_(new AppListTestModel), | 25 model_(new AppListTestModel), |
26 speech_ui_(SPEECH_RECOGNITION_OFF) { | 26 speech_ui_(SPEECH_RECOGNITION_OFF) { |
| 27 model_->SetFoldersEnabled(true); |
27 } | 28 } |
28 | 29 |
29 AppListTestViewDelegate::~AppListTestViewDelegate() {} | 30 AppListTestViewDelegate::~AppListTestViewDelegate() {} |
30 | 31 |
31 int AppListTestViewDelegate::GetToggleSpeechRecognitionCountAndReset() { | 32 int AppListTestViewDelegate::GetToggleSpeechRecognitionCountAndReset() { |
32 int count = toggle_speech_recognition_count_; | 33 int count = toggle_speech_recognition_count_; |
33 toggle_speech_recognition_count_ = 0; | 34 toggle_speech_recognition_count_ = 0; |
34 return count; | 35 return count; |
35 } | 36 } |
36 | 37 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 observers_.AddObserver(observer); | 117 observers_.AddObserver(observer); |
117 } | 118 } |
118 | 119 |
119 void AppListTestViewDelegate::RemoveObserver( | 120 void AppListTestViewDelegate::RemoveObserver( |
120 AppListViewDelegateObserver* observer) { | 121 AppListViewDelegateObserver* observer) { |
121 observers_.RemoveObserver(observer); | 122 observers_.RemoveObserver(observer); |
122 } | 123 } |
123 | 124 |
124 } // namespace test | 125 } // namespace test |
125 } // namespace app_list | 126 } // namespace app_list |
OLD | NEW |