1 // Copyright 2013 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.
5 #ifndef ASH_SHELL_SHELF_DELEGATE_IMPL_H_
6 #define ASH_SHELL_SHELF_DELEGATE_IMPL_H_
8 #include "ash/shelf/shelf_delegate.h"
9 #include "base/compiler_specific.h"
20 class ShelfDelegateImpl
: public ShelfDelegate
{
22 explicit ShelfDelegateImpl(WindowWatcher
* watcher
);
23 ~ShelfDelegateImpl() override
;
25 void set_watcher(WindowWatcher
* watcher
) { watcher_
= watcher
; }
27 // ShelfDelegate overrides:
28 void OnShelfCreated(Shelf
* shelf
) override
;
29 void OnShelfDestroyed(Shelf
* shelf
) override
;
30 ShelfID
GetShelfIDForAppID(const std::string
& app_id
) override
;
31 bool HasShelfIDToAppIDMapping(ShelfID id
) const override
;
32 const std::string
& GetAppIDForShelfID(ShelfID id
) override
;
33 void PinAppWithID(const std::string
& app_id
) override
;
34 bool IsAppPinned(const std::string
& app_id
) override
;
35 bool CanPin() const override
;
36 void UnpinAppWithID(const std::string
& app_id
) override
;
39 // Used to update Launcher. Owned by main.
40 WindowWatcher
* watcher_
;
42 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateImpl
);
48 #endif // ASH_SHELL_SHELF_DELEGATE_IMPL_H_