Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / app_list / app_list_controller_delegate_views.h
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.
4
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_
7
8 #include "chrome/browser/ui/app_list/app_list_controller_delegate_impl.h"
9
10 class AppListServiceViews;
11
12 // Conveys messages from a views-backed app list to the AppListService that
13 // created it.
14 class AppListControllerDelegateViews : public AppListControllerDelegateImpl {
15  public:
16   explicit AppListControllerDelegateViews(AppListServiceViews* service);
17   ~AppListControllerDelegateViews() override;
18
19   // AppListControllerDelegate overrides:
20   gfx::Rect GetAppListBounds() override;
21   void ViewClosing() override;
22   void OnShowChildDialog() override;
23   void OnCloseChildDialog() override;
24   bool CanDoCreateShortcutsFlow() override;
25
26  private:
27   AppListServiceViews* service_;  // Weak. Owns us.
28
29   DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateViews);
30 };
31
32 #endif  // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_