[Mac] Remove NSApplication from the renderer.
[chromium-blink-merge.git] / ash / shell / shelf_delegate_impl.h
blobcb78836e2be79dfa51866a56c7497dd1e08001df
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"
11 namespace aura {
12 class Window;
15 namespace ash {
16 namespace shell {
18 class WindowWatcher;
20 class ShelfDelegateImpl : public ShelfDelegate {
21 public:
22 explicit ShelfDelegateImpl(WindowWatcher* watcher);
23 virtual ~ShelfDelegateImpl();
25 void set_watcher(WindowWatcher* watcher) { watcher_ = watcher; }
27 // ShelfDelegate overrides:
28 virtual void OnShelfCreated(Shelf* shelf) OVERRIDE;
29 virtual void OnShelfDestroyed(Shelf* shelf) OVERRIDE;
30 virtual ShelfID GetShelfIDForAppID(const std::string& app_id) OVERRIDE;
31 virtual const std::string& GetAppIDForShelfID(ShelfID id) OVERRIDE;
32 virtual void PinAppWithID(const std::string& app_id) OVERRIDE;
33 virtual bool IsAppPinned(const std::string& app_id) OVERRIDE;
34 virtual bool CanPin() const OVERRIDE;
35 virtual void UnpinAppWithID(const std::string& app_id) OVERRIDE;
37 private:
38 // Used to update Launcher. Owned by main.
39 WindowWatcher* watcher_;
41 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateImpl);
44 } // namespace shell
45 } // namespace ash
47 #endif // ASH_SHELL_SHELF_DELEGATE_IMPL_H_