blob: 7685edba7c615047940ed35f978539f124d77602 [file] [log] [blame]
// 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.
#ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_
#define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_
#include "chrome/browser/ui/app_list/app_list_controller_delegate_impl.h"
class AppListServiceViews;
// Conveys messages from a views-backed app list to the AppListService that
// created it.
class AppListControllerDelegateViews : public AppListControllerDelegateImpl {
public:
explicit AppListControllerDelegateViews(AppListServiceViews* service);
virtual ~AppListControllerDelegateViews();
// AppListControllerDelegate overrides:
virtual gfx::Rect GetAppListBounds() override;
virtual void ViewClosing() override;
virtual void OnShowChildDialog() override;
virtual void OnCloseChildDialog() override;
virtual bool CanDoCreateShortcutsFlow() override;
private:
AppListServiceViews* service_; // Weak. Owns us.
DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateViews);
};
#endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_VIEWS_H_