| 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/views/app_list_main_view.h" | 5 #include "ui/app_list/views/app_list_main_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 item_->RemoveObserver(this); | 56 item_->RemoveObserver(this); |
| 57 } | 57 } |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 // AppListItemModelObserver overrides: | 60 // AppListItemModelObserver overrides: |
| 61 virtual void ItemIconChanged() OVERRIDE { | 61 virtual void ItemIconChanged() OVERRIDE { |
| 62 owner_->OnItemIconLoaded(this); | 62 owner_->OnItemIconLoaded(this); |
| 63 // Note that IconLoader is released here. | 63 // Note that IconLoader is released here. |
| 64 } | 64 } |
| 65 virtual void ItemTitleChanged() OVERRIDE {} | 65 virtual void ItemTitleChanged() OVERRIDE {} |
| 66 virtual void ItemFullNameChanged() OVERRIDE {} |
| 66 virtual void ItemHighlightedChanged() OVERRIDE {} | 67 virtual void ItemHighlightedChanged() OVERRIDE {} |
| 67 virtual void ItemIsInstallingChanged() OVERRIDE {} | 68 virtual void ItemIsInstallingChanged() OVERRIDE {} |
| 68 virtual void ItemPercentDownloadedChanged() OVERRIDE {} | 69 virtual void ItemPercentDownloadedChanged() OVERRIDE {} |
| 69 | 70 |
| 70 AppListMainView* owner_; | 71 AppListMainView* owner_; |
| 71 AppListItemModel* item_; | 72 AppListItemModel* item_; |
| 72 | 73 |
| 73 DISALLOW_COPY_AND_ASSIGN(IconLoader); | 74 DISALLOW_COPY_AND_ASSIGN(IconLoader); |
| 74 }; | 75 }; |
| 75 | 76 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // Resubmit the query via a posted task so that all observers for the | 235 // Resubmit the query via a posted task so that all observers for the |
| 235 // uninstall notification are notified. | 236 // uninstall notification are notified. |
| 236 base::MessageLoop::current()->PostTask( | 237 base::MessageLoop::current()->PostTask( |
| 237 FROM_HERE, | 238 FROM_HERE, |
| 238 base::Bind(&AppListMainView::QueryChanged, | 239 base::Bind(&AppListMainView::QueryChanged, |
| 239 weak_ptr_factory_.GetWeakPtr(), | 240 weak_ptr_factory_.GetWeakPtr(), |
| 240 search_box_view_)); | 241 search_box_view_)); |
| 241 } | 242 } |
| 242 | 243 |
| 243 } // namespace app_list | 244 } // namespace app_list |
| OLD | NEW |