| Index: ash/launcher/launcher_delegate_proxy.h
|
| diff --git a/ash/launcher/launcher_delegate_proxy.h b/ash/launcher/launcher_delegate_proxy.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..62b593e81b3f78fd2a40abcd885859b8eec746c9
|
| --- /dev/null
|
| +++ b/ash/launcher/launcher_delegate_proxy.h
|
| @@ -0,0 +1,43 @@
|
| +// Copyright 2013 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 ASH_LAUNCHER_LAUNCHER_DELEGATE_PROXY_H_
|
| +#define ASH_LAUNCHER_LAUNCHER_DELEGATE_PROXY_H_
|
| +
|
| +#include "ash/launcher/launcher_delegate.h"
|
| +#include "base/compiler_specific.h"
|
| +
|
| +namespace ash {
|
| +class LauncherItemDelegate;
|
| +
|
| +namespace internal {
|
| +
|
| +// Proxy LauncherDelegate for multiple LauncherDelegates.
|
| +class LauncherDelegateProxy : public ash::LauncherDelegate {
|
| + public:
|
| + LauncherDelegateProxy();
|
| + virtual ~LauncherDelegateProxy();
|
| +
|
| + // LauncherDelegate overrides:
|
| + virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE;
|
| + virtual void OnLauncherCreated(Launcher* launcher) OVERRIDE;
|
| + virtual void OnLauncherDestroyed(Launcher* launcher) OVERRIDE;
|
| + virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) OVERRIDE;
|
| + virtual void PinAppWithID(const std::string& app_id) OVERRIDE;
|
| + virtual bool IsAppPinned(const std::string& app_id) OVERRIDE;
|
| + virtual void UnpinAppsWithID(const std::string& app_id) OVERRIDE;
|
| + virtual LauncherItemDelegate* GetLauncherItemDelegate(
|
| + const LauncherItem& item) OVERRIDE;
|
| +
|
| + private:
|
| + scoped_ptr<LauncherDelegate> chrome_launcher_delegate_;
|
| + scoped_ptr<LauncherDelegate> ash_launcher_delegate_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(LauncherDelegateProxy);
|
| +};
|
| +
|
| +} // namespace internal
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_LAUNCHER_LAUNCHER_DELEGATE_PROXY_H_
|
|
|