Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: ui/app_list/views/all_apps_tile_item_view.cc

Issue 2939693004: Added HALF, FULLSCREEN_ALL_APPS, and FULLSCREEN_SEARCH. (Closed)
Patch Set: rebased post revert. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/app_list/presenter/app_list_presenter_impl_unittest.cc ('k') | ui/app_list/views/app_list_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698