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

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

Issue 2279533002: ash: Convert ShelfDelegate to use WmShelf* instead of Shelf* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: curlies Created 4 years, 4 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
(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_
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