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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_
8 #include "chrome/browser/ui/app_list/app_list_controller_delegate_impl.h"
10 class AppListServiceViews;
12 // Conveys messages from a views-backed app list to the AppListService that
14 class AppListControllerDelegateViews : public AppListControllerDelegateImpl {
16 explicit AppListControllerDelegateViews(AppListServiceViews* service);
17 ~AppListControllerDelegateViews() override;
19 // AppListControllerDelegate overrides:
20 gfx::Rect GetAppListBounds() override;
21 void ViewClosing() override;
22 void OnShowChildDialog() override;
23 void OnCloseChildDialog() override;
24 bool CanDoCreateShortcutsFlow() override;
27 AppListServiceViews* service_; // Weak. Owns us.
29 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateViews);
32 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_