Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: ash/shell/shelf_delegate_impl.h

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shutdown
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/shelf/shelf_widget_unittest.cc ('k') | ash/shell/shelf_delegate_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // TODO(jamescook): Replace with TestShelfDelegate so we don't have to maintain
16 // two stub implementations.
15 class ShelfDelegateImpl : public ShelfDelegate { 17 class ShelfDelegateImpl : public ShelfDelegate {
16 public: 18 public:
17 ShelfDelegateImpl(); 19 ShelfDelegateImpl();
18 ~ShelfDelegateImpl() override; 20 ~ShelfDelegateImpl() override;
19 21
20 // ShelfDelegate overrides: 22 // ShelfDelegate overrides:
21 void OnShelfCreated(Shelf* shelf) override; 23 void OnShelfCreated(Shelf* shelf) override;
22 void OnShelfDestroyed(Shelf* shelf) override; 24 void OnShelfDestroyed(Shelf* shelf) override;
23 void OnShelfAlignmentChanged(Shelf* shelf) override; 25 void OnShelfAlignmentChanged(Shelf* shelf) override;
24 void OnShelfAutoHideBehaviorChanged(Shelf* shelf) override; 26 void OnShelfAutoHideBehaviorChanged(Shelf* shelf) override;
27 void OnShelfAutoHideStateChanged(Shelf* shelf) override;
28 void OnShelfVisibilityStateChanged(Shelf* shelf) override;
25 ShelfID GetShelfIDForAppID(const std::string& app_id) override; 29 ShelfID GetShelfIDForAppID(const std::string& app_id) override;
26 bool HasShelfIDToAppIDMapping(ShelfID id) const override; 30 bool HasShelfIDToAppIDMapping(ShelfID id) const override;
27 const std::string& GetAppIDForShelfID(ShelfID id) override; 31 const std::string& GetAppIDForShelfID(ShelfID id) override;
28 void PinAppWithID(const std::string& app_id) override; 32 void PinAppWithID(const std::string& app_id) override;
29 bool IsAppPinned(const std::string& app_id) override; 33 bool IsAppPinned(const std::string& app_id) override;
30 void UnpinAppWithID(const std::string& app_id) override; 34 void UnpinAppWithID(const std::string& app_id) override;
31 35
32 private: 36 private:
33 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateImpl); 37 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateImpl);
34 }; 38 };
35 39
36 } // namespace shell 40 } // namespace shell
37 } // namespace ash 41 } // namespace ash
38 42
39 #endif // ASH_SHELL_SHELF_DELEGATE_IMPL_H_ 43 #endif // ASH_SHELL_SHELF_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_widget_unittest.cc ('k') | ash/shell/shelf_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698