OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef ASH_SHELL_SHELF_DELEGATE_IMPL_H_ | |
6 #define ASH_SHELL_SHELF_DELEGATE_IMPL_H_ | |
7 | |
8 #include "ash/common/shelf/shelf_delegate.h" | |
9 #include "base/compiler_specific.h" | |
10 #include "base/macros.h" | |
11 | |
12 namespace ash { | |
13 namespace shell { | |
14 | |
15 // TODO(jamescook): Replace with TestShelfDelegate so we don't have to maintain | |
16 // two stub implementations. | |
17 class ShelfDelegateImpl : public ShelfDelegate { | |
18 public: | |
19 ShelfDelegateImpl(); | |
20 ~ShelfDelegateImpl() override; | |
21 | |
22 // ShelfDelegate overrides: | |
23 void OnShelfCreated(Shelf* shelf) override; | |
24 void OnShelfDestroyed(Shelf* shelf) override; | |
25 void OnShelfAlignmentChanged(Shelf* shelf) override; | |
26 void OnShelfAutoHideBehaviorChanged(Shelf* shelf) override; | |
27 void OnShelfAutoHideStateChanged(Shelf* shelf) override; | |
28 void OnShelfVisibilityStateChanged(Shelf* shelf) override; | |
29 ShelfID GetShelfIDForAppID(const std::string& app_id) override; | |
30 bool HasShelfIDToAppIDMapping(ShelfID id) const override; | |
31 const std::string& GetAppIDForShelfID(ShelfID id) override; | |
32 void PinAppWithID(const std::string& app_id) override; | |
33 bool IsAppPinned(const std::string& app_id) override; | |
34 void UnpinAppWithID(const std::string& app_id) override; | |
35 | |
36 private: | |
37 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateImpl); | |
38 }; | |
39 | |
40 } // namespace shell | |
41 } // namespace ash | |
42 | |
43 #endif // ASH_SHELL_SHELF_DELEGATE_IMPL_H_ | |
OLD | NEW |