| 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/search_result.h" | 5 #include "ui/app_list/search_result.h" |
| 6 | 6 |
| 7 #include "ui/app_list/app_list_constants.h" | 7 #include "ui/app_list/app_list_constants.h" |
| 8 #include "ui/app_list/search_result_observer.h" | 8 #include "ui/app_list/search_result_observer.h" |
| 9 | 9 |
| 10 namespace app_list { | 10 namespace app_list { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 observers_, | 69 observers_, |
| 70 OnPercentDownloadedChanged()); | 70 OnPercentDownloadedChanged()); |
| 71 } | 71 } |
| 72 | 72 |
| 73 int SearchResult::GetPreferredIconDimension() const { | 73 int SearchResult::GetPreferredIconDimension() const { |
| 74 switch (display_type_) { | 74 switch (display_type_) { |
| 75 case DISPLAY_TILE: | 75 case DISPLAY_TILE: |
| 76 return kTileIconSize; | 76 return kTileIconSize; |
| 77 case DISPLAY_LIST: | 77 case DISPLAY_LIST: |
| 78 return kListIconSize; | 78 return kListIconSize; |
| 79 case DISPLAY_NONE: |
| 80 return 0; |
| 79 } | 81 } |
| 80 NOTREACHED(); | 82 NOTREACHED(); |
| 81 return 0; | 83 return 0; |
| 82 } | 84 } |
| 83 | 85 |
| 84 void SearchResult::NotifyItemInstalled() { | 86 void SearchResult::NotifyItemInstalled() { |
| 85 FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnItemInstalled()); | 87 FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnItemInstalled()); |
| 86 } | 88 } |
| 87 | 89 |
| 88 void SearchResult::NotifyItemUninstalled() { | 90 void SearchResult::NotifyItemUninstalled() { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 101 } | 103 } |
| 102 | 104 |
| 103 void SearchResult::InvokeAction(int action_index, int event_flags) { | 105 void SearchResult::InvokeAction(int action_index, int event_flags) { |
| 104 } | 106 } |
| 105 | 107 |
| 106 ui::MenuModel* SearchResult::GetContextMenuModel() { | 108 ui::MenuModel* SearchResult::GetContextMenuModel() { |
| 107 return NULL; | 109 return NULL; |
| 108 } | 110 } |
| 109 | 111 |
| 110 } // namespace app_list | 112 } // namespace app_list |
| OLD | NEW |