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

Side by Side Diff: ash/test/test_shelf_delegate.h

Issue 2791463002: mash: Remove ShelfDelegate; move functions to ShelfModel. (Closed)
Patch Set: Address comment. Created 3 years, 8 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/test/shell_test_api.cc ('k') | ash/test/test_shelf_delegate.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_TEST_TEST_SHELF_DELEGATE_H_
6 #define ASH_TEST_TEST_SHELF_DELEGATE_H_
7
8 #include <string>
9
10 #include "ash/shelf/shelf_delegate.h"
11 #include "base/macros.h"
12
13 namespace ash {
14 namespace test {
15
16 // Test implementation of ShelfDelegate.
17 class TestShelfDelegate : public ShelfDelegate {
18 public:
19 TestShelfDelegate();
20 ~TestShelfDelegate() override;
21
22 static TestShelfDelegate* instance() { return instance_; }
23
24 // ShelfDelegate implementation.
25 ShelfID GetShelfIDForAppID(const std::string& app_id) override;
26 ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id,
27 const std::string& launch_id) override;
28 const std::string& GetAppIDForShelfID(ShelfID id) override;
29 void PinAppWithID(const std::string& app_id) override;
30 bool IsAppPinned(const std::string& app_id) override;
31 void UnpinAppWithID(const std::string& app_id) override;
32
33 private:
34 static TestShelfDelegate* instance_;
35
36 DISALLOW_COPY_AND_ASSIGN(TestShelfDelegate);
37 };
38
39 } // namespace test
40 } // namespace ash
41
42 #endif // ASH_TEST_TEST_SHELF_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/test/shell_test_api.cc ('k') | ash/test/test_shelf_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698