Home | History | Annotate | Download | only in app_list
      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   virtual ~AppListControllerDelegateViews();
     18 
     19   // AppListControllerDelegate overrides:
     20   virtual gfx::Rect GetAppListBounds() OVERRIDE;
     21   virtual void ViewClosing() OVERRIDE;
     22   virtual void OnShowChildDialog() OVERRIDE;
     23   virtual void OnCloseChildDialog() OVERRIDE;
     24   virtual 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_
     33