| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/all_apps_tile_item_view.h" | 5 #include "ui/app_list/views/all_apps_tile_item_view.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram_macros.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "ui/app_list/app_list_constants.h" | 8 #include "ui/app_list/app_list_constants.h" |
| 9 #include "ui/app_list/app_list_features.h" | 9 #include "ui/app_list/app_list_features.h" |
| 10 #include "ui/app_list/resources/grit/app_list_resources.h" | 10 #include "ui/app_list/resources/grit/app_list_resources.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 SetIcon(image); | 61 SetIcon(image); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void AllAppsTileItemView::ButtonPressed(views::Button* sender, | 64 void AllAppsTileItemView::ButtonPressed(views::Button* sender, |
| 65 const ui::Event& event) { | 65 const ui::Event& event) { |
| 66 UMA_HISTOGRAM_ENUMERATION(kPageOpenedHistogram, AppListModel::STATE_APPS, | 66 UMA_HISTOGRAM_ENUMERATION(kPageOpenedHistogram, AppListModel::STATE_APPS, |
| 67 AppListModel::STATE_LAST); | 67 AppListModel::STATE_LAST); |
| 68 | 68 |
| 69 contents_view_->SetActiveState(AppListModel::STATE_APPS); | 69 contents_view_->SetActiveState(AppListModel::STATE_APPS); |
| 70 if (features::IsFullscreenAppListEnabled()) | 70 if (features::IsFullscreenAppListEnabled()) |
| 71 app_list_view_->SetState(AppListView::FULLSCREEN); | 71 app_list_view_->SetState(AppListView::FULLSCREEN_ALL_APPS); |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace app_list | 74 } // namespace app_list |
| OLD | NEW |