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

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

Issue 2290603002: Enhance chrome.app.window API for shelf integration with pinning support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: LauncherItemController Unit Tests Fix after Rebase Created 4 years, 3 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/common/shelf/shelf_delegate.h ('k') | ash/mus/shelf_delegate_mus.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 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 private: 27 private:
28 // ShelfDelegate: 28 // ShelfDelegate:
29 void OnShelfCreated(WmShelf* shelf) override; 29 void OnShelfCreated(WmShelf* shelf) override;
30 void OnShelfDestroyed(WmShelf* shelf) override; 30 void OnShelfDestroyed(WmShelf* shelf) override;
31 void OnShelfAlignmentChanged(WmShelf* shelf) override; 31 void OnShelfAlignmentChanged(WmShelf* shelf) override;
32 void OnShelfAutoHideBehaviorChanged(WmShelf* shelf) override; 32 void OnShelfAutoHideBehaviorChanged(WmShelf* shelf) override;
33 void OnShelfAutoHideStateChanged(WmShelf* shelf) override; 33 void OnShelfAutoHideStateChanged(WmShelf* shelf) override;
34 void OnShelfVisibilityStateChanged(WmShelf* shelf) override; 34 void OnShelfVisibilityStateChanged(WmShelf* shelf) override;
35 ShelfID GetShelfIDForAppID(const std::string& app_id) override; 35 ShelfID GetShelfIDForAppID(const std::string& app_id) override;
36 ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id,
37 const std::string& launch_id) override;
36 bool HasShelfIDToAppIDMapping(ShelfID id) const override; 38 bool HasShelfIDToAppIDMapping(ShelfID id) const override;
37 const std::string& GetAppIDForShelfID(ShelfID id) override; 39 const std::string& GetAppIDForShelfID(ShelfID id) override;
38 void PinAppWithID(const std::string& app_id) override; 40 void PinAppWithID(const std::string& app_id) override;
39 bool IsAppPinned(const std::string& app_id) override; 41 bool IsAppPinned(const std::string& app_id) override;
40 void UnpinAppWithID(const std::string& app_id) override; 42 void UnpinAppWithID(const std::string& app_id) override;
41 43
42 // mojom::ShelfController: 44 // mojom::ShelfController:
43 void AddObserver(mojom::ShelfObserverAssociatedPtrInfo observer) override; 45 void AddObserver(mojom::ShelfObserverAssociatedPtrInfo observer) override;
44 void SetAlignment(ShelfAlignment alignment, int64_t display_id) override; 46 void SetAlignment(ShelfAlignment alignment, int64_t display_id) override;
45 void SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide, 47 void SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide,
(...skipping 11 matching lines...) Expand all
57 59
58 std::map<std::string, ShelfID> app_id_to_shelf_id_; 60 std::map<std::string, ShelfID> app_id_to_shelf_id_;
59 std::map<ShelfID, std::string> shelf_id_to_app_id_; 61 std::map<ShelfID, std::string> shelf_id_to_app_id_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus); 63 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus);
62 }; 64 };
63 65
64 } // namespace ash 66 } // namespace ash
65 67
66 #endif // ASH_MUS_SHELF_DELEGATE_MUS_H_ 68 #endif // ASH_MUS_SHELF_DELEGATE_MUS_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/shelf_delegate.h ('k') | ash/mus/shelf_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698