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

Side by Side Diff: ash/mus/shelf_delegate_mus.h

Issue 2341643002: Enhance chrome.app.window API for shelf integration with pinning support (cont.) (Closed)
Patch Set: Include AppLauncherId wrapper Created 4 years, 2 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MUS_SHELF_DELEGATE_MUS_H_ 5 #ifndef ASH_MUS_SHELF_DELEGATE_MUS_H_
6 #define ASH_MUS_SHELF_DELEGATE_MUS_H_ 6 #define ASH_MUS_SHELF_DELEGATE_MUS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/common/shelf/shelf_delegate.h" 10 #include "ash/common/shelf/shelf_delegate.h"
11 #include "ash/public/cpp/shelf_types.h" 11 #include "ash/public/cpp/shelf_types.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 // Manages communication between the mash shelf and the browser. 15 // Manages communication between the mash shelf and the browser.
16 class ShelfDelegateMus : public ShelfDelegate { 16 class ShelfDelegateMus : public ShelfDelegate {
17 public: 17 public:
18 ShelfDelegateMus(); 18 ShelfDelegateMus();
19 ~ShelfDelegateMus() override; 19 ~ShelfDelegateMus() override;
20 20
21 private: 21 private:
22 // ShelfDelegate: 22 // ShelfDelegate:
23 ShelfID GetShelfIDForAppID(const std::string& app_id) override; 23 ShelfID GetShelfIDForAppID(const std::string& app_id) override;
24 ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id, 24 ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id,
25 const std::string& launch_id) override; 25 const std::string& launch_id) override;
26 bool HasShelfIDToAppIDMapping(ShelfID id) const override; 26 bool HasShelfIDToAppIDMapping(ShelfID id) const override;
27 const std::string& GetAppIDForShelfID(ShelfID id) override; 27 const std::string& GetAppIDForShelfID(ShelfID id) override;
28 const std::string& GetLaunchIDForShelfID(ShelfID id) override;
28 void PinAppWithID(const std::string& app_id) override; 29 void PinAppWithID(const std::string& app_id) override;
29 bool IsAppPinned(const std::string& app_id) override; 30 bool IsAppPinned(const std::string& app_id) override;
30 void UnpinAppWithID(const std::string& app_id) override; 31 void UnpinAppWithID(const std::string& app_id) override;
31 32
32 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus); 33 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus);
33 }; 34 };
34 35
35 } // namespace ash 36 } // namespace ash
36 37
37 #endif // ASH_MUS_SHELF_DELEGATE_MUS_H_ 38 #endif // ASH_MUS_SHELF_DELEGATE_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698