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

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

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: Created 3 years, 7 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 5269ca10a1317692e62a3be7ea4514bb230c0f3d..e1f7ad03a2f9ecf7433431911ce9cff21c56d99e 100644
--- a/ui/app_list/views/all_apps_tile_item_view.cc
+++ b/ui/app_list/views/all_apps_tile_item_view.cc
@@ -6,6 +6,8 @@
#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/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"
@@ -13,6 +15,7 @@
#include "ui/gfx/image/canvas_image_source.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/strings/grit/ui_strings.h"
+#include "ui/views/widget/widget.h"
namespace app_list {
@@ -64,6 +67,11 @@ void AllAppsTileItemView::ButtonPressed(views::Button* sender,
AppListModel::STATE_LAST);
contents_view_->SetActiveState(AppListModel::STATE_APPS);
+ if(features::IsFullscreenAppListEnabled()){
vadimt 2017/05/22 23:36:57 Space before {? Git cl format?
newcomer 2017/05/25 23:10:51 Done.
+ AppListView *app_list_view =
+ (AppListView*)GetAncestorWithClassName("AppListView");
vadimt 2017/05/22 23:36:57 Please try properly plumbing AppListView as oppose
newcomer 2017/05/25 23:10:51 Done.
+ app_list_view->ToFullscreen();
+ }
}
} // namespace app_list

Powered by Google App Engine
This is Rietveld 408576698