| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 private: | 46 private: |
| 47 bool signed_in_; | 47 bool signed_in_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(TestSigninDelegate); | 49 DISALLOW_COPY_AND_ASSIGN(TestSigninDelegate); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 AppListTestViewDelegate::AppListTestViewDelegate() | 52 AppListTestViewDelegate::AppListTestViewDelegate() |
| 53 : dismiss_count_(0), | 53 : dismiss_count_(0), |
| 54 open_search_result_count_(0), | 54 open_search_result_count_(0), |
| 55 test_signin_delegate_(new TestSigninDelegate), | 55 test_signin_delegate_(new TestSigninDelegate), |
| 56 model_(new AppListTestModel) { | 56 model_(new AppListTestModel), |
| 57 speech_ui_(SPEECH_RECOGNITION_OFF) { |
| 57 } | 58 } |
| 58 | 59 |
| 59 AppListTestViewDelegate::~AppListTestViewDelegate() {} | 60 AppListTestViewDelegate::~AppListTestViewDelegate() {} |
| 60 | 61 |
| 61 void AppListTestViewDelegate::SetSignedIn(bool signed_in) { | 62 void AppListTestViewDelegate::SetSignedIn(bool signed_in) { |
| 62 test_signin_delegate_->set_signed_in(signed_in); | 63 test_signin_delegate_->set_signed_in(signed_in); |
| 63 FOR_EACH_OBSERVER(AppListViewDelegateObserver, | 64 FOR_EACH_OBSERVER(AppListViewDelegateObserver, |
| 64 observers_, | 65 observers_, |
| 65 OnProfilesChanged()); | 66 OnProfilesChanged()); |
| 66 } | 67 } |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 observers_.AddObserver(observer); | 127 observers_.AddObserver(observer); |
| 127 } | 128 } |
| 128 | 129 |
| 129 void AppListTestViewDelegate::RemoveObserver( | 130 void AppListTestViewDelegate::RemoveObserver( |
| 130 AppListViewDelegateObserver* observer) { | 131 AppListViewDelegateObserver* observer) { |
| 131 observers_.RemoveObserver(observer); | 132 observers_.RemoveObserver(observer); |
| 132 } | 133 } |
| 133 | 134 |
| 134 } // namespace test | 135 } // namespace test |
| 135 } // namespace app_list | 136 } // namespace app_list |
| OLD | NEW |