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

Unified Diff: ui/app_list/views/all_apps_tile_item_view.cc

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: addressed msw@'s comments. 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 side-by-side diff with in-line comments
Download patch
Index: ui/app_list/views/all_apps_tile_item_view.cc
diff --git a/ui/app_list/views/all_apps_tile_item_view.cc b/ui/app_list/views/all_apps_tile_item_view.cc
index 1cc2690ec7b2ea1b26ea94d42bf7443597848941..f4366fe73c786907a2e154a364860e593b09a00f 100644
--- a/ui/app_list/views/all_apps_tile_item_view.cc
+++ b/ui/app_list/views/all_apps_tile_item_view.cc
@@ -6,7 +6,9 @@
#include "base/metrics/histogram_macros.h"
#include "ui/app_list/app_list_constants.h"
+#include "ui/app_list/app_list_features.h"
#include "ui/app_list/resources/grit/app_list_resources.h"
+#include "ui/app_list/views/app_list_view.h"
#include "ui/app_list/views/contents_view.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -39,8 +41,9 @@ class AllAppsImageSource : public gfx::CanvasImageSource {
} // namespace
-AllAppsTileItemView::AllAppsTileItemView(ContentsView* contents_view)
- : contents_view_(contents_view) {
+AllAppsTileItemView::AllAppsTileItemView(ContentsView* contents_view,
+ AppListView* app_list_view)
+ : contents_view_(contents_view), app_list_view_(app_list_view) {
SetTitle(l10n_util::GetStringUTF16(IDS_APP_LIST_ALL_APPS));
SetHoverStyle(TileItemView::HOVER_STYLE_ANIMATE_SHADOW);
UpdateIcon();
@@ -65,6 +68,8 @@ void AllAppsTileItemView::ButtonPressed(views::Button* sender,
AppListModel::STATE_LAST);
contents_view_->SetActiveState(AppListModel::STATE_APPS);
+ if (features::IsFullscreenAppListEnabled())
+ app_list_view_->SetState(AppListView::FULLSCREEN);
}
} // namespace app_list

Powered by Google App Engine
This is Rietveld 408576698