| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_SHELL_SHELF_DELEGATE_IMPL_H_ | 5 #ifndef ASH_SHELL_SHELF_DELEGATE_IMPL_H_ |
| 6 #define ASH_SHELL_SHELF_DELEGATE_IMPL_H_ | 6 #define ASH_SHELL_SHELF_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include "ash/shelf/shelf_delegate.h" | 8 #include "ash/shelf/shelf_delegate.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 namespace ash { | 12 namespace ash { |
| 13 namespace shell { | 13 namespace shell { |
| 14 | 14 |
| 15 class ShelfDelegateImpl : public ShelfDelegate { | 15 class ShelfDelegateImpl : public ShelfDelegate { |
| 16 public: | 16 public: |
| 17 ShelfDelegateImpl(); | 17 ShelfDelegateImpl(); |
| 18 ~ShelfDelegateImpl() override; | 18 ~ShelfDelegateImpl() override; |
| 19 | 19 |
| 20 // ShelfDelegate overrides: | 20 // ShelfDelegate overrides: |
| 21 void OnShelfCreated(Shelf* shelf) override; | 21 void OnShelfCreated(Shelf* shelf) override; |
| 22 void OnShelfDestroyed(Shelf* shelf) override; | 22 void OnShelfDestroyed(Shelf* shelf) override; |
| 23 void OnShelfAlignmentChanged(Shelf* shelf) override; |
| 24 void OnShelfAutoHideBehaviorChanged(Shelf* shelf) override; |
| 23 ShelfID GetShelfIDForAppID(const std::string& app_id) override; | 25 ShelfID GetShelfIDForAppID(const std::string& app_id) override; |
| 24 bool HasShelfIDToAppIDMapping(ShelfID id) const override; | 26 bool HasShelfIDToAppIDMapping(ShelfID id) const override; |
| 25 const std::string& GetAppIDForShelfID(ShelfID id) override; | 27 const std::string& GetAppIDForShelfID(ShelfID id) override; |
| 26 void PinAppWithID(const std::string& app_id) override; | 28 void PinAppWithID(const std::string& app_id) override; |
| 27 bool IsAppPinned(const std::string& app_id) override; | 29 bool IsAppPinned(const std::string& app_id) override; |
| 28 void UnpinAppWithID(const std::string& app_id) override; | 30 void UnpinAppWithID(const std::string& app_id) override; |
| 29 | 31 |
| 30 private: | 32 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateImpl); | 33 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateImpl); |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 } // namespace shell | 36 } // namespace shell |
| 35 } // namespace ash | 37 } // namespace ash |
| 36 | 38 |
| 37 #endif // ASH_SHELL_SHELF_DELEGATE_IMPL_H_ | 39 #endif // ASH_SHELL_SHELF_DELEGATE_IMPL_H_ |
| OLD | NEW |