#ifndef ASH_SHELL_SHELF_DELEGATE_IMPL_H_
#define ASH_SHELL_SHELF_DELEGATE_IMPL_H_
#include "ash/shelf/shelf_delegate.h"
#include "base/compiler_specific.h"
namespace aura {
class Window;
}
namespace ash {
namespace shell {
class WindowWatcher;
class ShelfDelegateImpl : public ShelfDelegate {
public:
explicit ShelfDelegateImpl(WindowWatcher* watcher);
virtual ~ShelfDelegateImpl();
void set_watcher(WindowWatcher* watcher) { watcher_ = watcher; }
virtual void OnShelfCreated(Shelf* shelf) OVERRIDE;
virtual void OnShelfDestroyed(Shelf* shelf) OVERRIDE;
virtual ShelfID GetShelfIDForAppID(const std::string& app_id) OVERRIDE;
virtual const std::string& GetAppIDForShelfID(ShelfID id) OVERRIDE;
virtual void PinAppWithID(const std::string& app_id) OVERRIDE;
virtual bool IsAppPinned(const std::string& app_id) OVERRIDE;
virtual bool CanPin() const OVERRIDE;
virtual void UnpinAppWithID(const std::string& app_id) OVERRIDE;
private:
WindowWatcher* watcher_;
DISALLOW_COPY_AND_ASSIGN(ShelfDelegateImpl);
};
}
}
#endif