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

Unified Diff: chrome/browser/ui/app_list/app_list_controller_delegate_views.cc

Issue 2582743002: Remove obsolete app_list Linux code. (Closed)
Patch Set: tapted comments. Created 4 years 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: chrome/browser/ui/app_list/app_list_controller_delegate_views.cc
diff --git a/chrome/browser/ui/app_list/app_list_controller_delegate_views.cc b/chrome/browser/ui/app_list/app_list_controller_delegate_views.cc
deleted file mode 100644
index 6b38b8ccd4f7ef1b35475d2000217f910a6b0bd3..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/app_list/app_list_controller_delegate_views.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/app_list/app_list_controller_delegate_views.h"
-
-#include "chrome/browser/ui/app_list/app_list_service_views.h"
-#include "ui/app_list/views/app_list_view.h"
-
-AppListControllerDelegateViews::AppListControllerDelegateViews(
- AppListServiceViews* service)
- : AppListControllerDelegateImpl(service),
- service_(service) {
-}
-
-AppListControllerDelegateViews::~AppListControllerDelegateViews() {}
-
-gfx::Rect AppListControllerDelegateViews::GetAppListBounds() {
- // We use the bounds of the app list view here because the bounds of the app
- // list window include the shadow behind it (and the shadow size varies across
- // platforms).
- app_list::AppListView* app_list_view = service_->shower().app_list();
- if (app_list_view)
- return app_list_view->GetBoundsInScreen();
- return gfx::Rect();
-}
-
-void AppListControllerDelegateViews::ViewClosing() {
- service_->OnViewBeingDestroyed();
-}
-
-void AppListControllerDelegateViews::OnShowChildDialog() {
- DCHECK(service_->shower().app_list());
- service_->shower().app_list()->SetAppListOverlayVisible(true);
- service_->set_can_dismiss(false);
-}
-
-void AppListControllerDelegateViews::OnCloseChildDialog() {
- // If the app list is closed while a child dialog is open (for example,
- // through an OS-level close command), then the app list view will already
- // have been cleared from the shower by
- // AppListShower::HandleViewBeingDestroyed().
- if (service_->shower().app_list())
- service_->shower().app_list()->SetAppListOverlayVisible(false);
- service_->set_can_dismiss(true);
-}
-
-bool AppListControllerDelegateViews::CanDoCreateShortcutsFlow() {
- return true;
-}

Powered by Google App Engine
This is Rietveld 408576698