blob: 2d061786e745ee4fb4eb5a889dd4494c3d3ec30f [file] [log] [blame]
// Copyright (c) 2012 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_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_
#define CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
#include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h"
class AppListControllerDelegateAsh : public AppListControllerDelegate {
public:
AppListControllerDelegateAsh();
~AppListControllerDelegateAsh() override;
private:
// AppListControllerDelegate overrides:
void DismissView() override;
gfx::NativeWindow GetAppListWindow() override;
gfx::Rect GetAppListBounds() override;
gfx::ImageSkia GetWindowIcon() override;
bool IsAppPinned(const std::string& extension_id) override;
void PinApp(const std::string& extension_id) override;
void UnpinApp(const std::string& extension_id) override;
Pinnable GetPinnable() override;
void OnShowChildDialog() override;
void OnCloseChildDialog() override;
bool CanDoCreateShortcutsFlow() override;
void DoCreateShortcutsFlow(Profile* profile,
const std::string& extension_id) override;
void CreateNewWindow(Profile* profile, bool incognito) override;
void OpenURL(Profile* profile,
const GURL& url,
ui::PageTransition transition,
WindowOpenDisposition disposition) override;
void ActivateApp(Profile* profile,
const extensions::Extension* extension,
AppListSource source,
int event_flags) override;
void LaunchApp(Profile* profile,
const extensions::Extension* extension,
AppListSource source,
int event_flags) override;
void ShowForProfileByPath(const base::FilePath& profile_path) override;
bool ShouldShowUserIcon() override;
ash::LaunchSource AppListSourceToLaunchSource(AppListSource source);
DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAsh);
};
#endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_