| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/app_list_model.h" | 5 #include "ui/app_list/app_list_model.h" |
| 6 | 6 |
| 7 #include "ui/app_list/app_list_item_model.h" | 7 #include "ui/app_list/app_list_item_model.h" |
| 8 #include "ui/app_list/app_list_model_observer.h" | 8 #include "ui/app_list/app_list_model_observer.h" |
| 9 #include "ui/app_list/search_box_model.h" | 9 #include "ui/app_list/search_box_model.h" |
| 10 #include "ui/app_list/search_result.h" | 10 #include "ui/app_list/search_result.h" |
| 11 | 11 |
| 12 namespace app_list { | 12 namespace app_list { |
| 13 | 13 |
| 14 AppListModel::User::User() {} |
| 15 AppListModel::User::~User() {} |
| 16 |
| 14 AppListModel::AppListModel() | 17 AppListModel::AppListModel() |
| 15 : apps_(new Apps), | 18 : apps_(new Apps), |
| 16 search_box_(new SearchBoxModel), | 19 search_box_(new SearchBoxModel), |
| 17 results_(new SearchResults), | 20 results_(new SearchResults), |
| 18 signed_in_(false), | 21 signed_in_(false), |
| 19 status_(STATUS_NORMAL) { | 22 status_(STATUS_NORMAL) { |
| 20 } | 23 } |
| 21 | 24 |
| 22 AppListModel::~AppListModel() { | 25 AppListModel::~AppListModel() { |
| 23 STLDeleteElements(&users_); | 26 STLDeleteElements(&users_); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 53 if (signed_in_ == signed_in) | 56 if (signed_in_ == signed_in) |
| 54 return; | 57 return; |
| 55 | 58 |
| 56 signed_in_ = signed_in; | 59 signed_in_ = signed_in; |
| 57 FOR_EACH_OBSERVER(AppListModelObserver, | 60 FOR_EACH_OBSERVER(AppListModelObserver, |
| 58 observers_, | 61 observers_, |
| 59 OnAppListModelSigninStatusChanged()); | 62 OnAppListModelSigninStatusChanged()); |
| 60 } | 63 } |
| 61 | 64 |
| 62 } // namespace app_list | 65 } // namespace app_list |
| OLD | NEW |