| 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/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "ui/app_list/app_list_constants.h" | 10 #include "ui/app_list/app_list_constants.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 // AppListItemModelObserver overrides: | 56 // AppListItemModelObserver overrides: |
| 57 virtual void ItemIconChanged() OVERRIDE { | 57 virtual void ItemIconChanged() OVERRIDE { |
| 58 owner_->OnItemIconLoaded(this); | 58 owner_->OnItemIconLoaded(this); |
| 59 // Note that IconLoader is released here. | 59 // Note that IconLoader is released here. |
| 60 } | 60 } |
| 61 virtual void ItemTitleChanged() OVERRIDE {} | 61 virtual void ItemTitleChanged() OVERRIDE {} |
| 62 virtual void ItemHighlightedChanged() OVERRIDE {} | 62 virtual void ItemHighlightedChanged() OVERRIDE {} |
| 63 virtual void ItemIsInstallingChanged() OVERRIDE {}; |
| 64 virtual void ItemPercentDownloadedChanged() OVERRIDE {}; |
| 63 | 65 |
| 64 AppListMainView* owner_; | 66 AppListMainView* owner_; |
| 65 AppListItemModel* item_; | 67 AppListItemModel* item_; |
| 66 | 68 |
| 67 DISALLOW_COPY_AND_ASSIGN(IconLoader); | 69 DISALLOW_COPY_AND_ASSIGN(IconLoader); |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 //////////////////////////////////////////////////////////////////////////////// | 72 //////////////////////////////////////////////////////////////////////////////// |
| 71 // AppListMainView: | 73 // AppListMainView: |
| 72 | 74 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 } | 199 } |
| 198 | 200 |
| 199 void AppListMainView::InvokeResultAction(const SearchResult& result, | 201 void AppListMainView::InvokeResultAction(const SearchResult& result, |
| 200 int action_index, | 202 int action_index, |
| 201 int event_flags) { | 203 int event_flags) { |
| 202 if (delegate_) | 204 if (delegate_) |
| 203 delegate_->InvokeSearchResultAction(result, action_index, event_flags); | 205 delegate_->InvokeSearchResultAction(result, action_index, event_flags); |
| 204 } | 206 } |
| 205 | 207 |
| 206 } // namespace app_list | 208 } // namespace app_list |
| OLD | NEW |