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

Side by Side Diff: ash/common/shelf/shelf_delegate.h

Issue 2177663002: mash: Move ownership of ShelfDelegate to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix wallpaper tests again Created 4 years, 5 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/ash.gyp ('k') | ash/common/wm_shell.h » ('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_SHELF_SHELF_DELEGATE_H_ 5 #ifndef ASH_COMMON_SHELF_SHELF_DELEGATE_H_
6 #define ASH_SHELF_SHELF_DELEGATE_H_ 6 #define ASH_COMMON_SHELF_SHELF_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/shelf/shelf_item_types.h" 9 #include "ash/common/shelf/shelf_item_types.h"
10 10
11 namespace ash { 11 namespace ash {
12 class Shelf; 12 class Shelf;
13 13
14 // Delegate for the Shelf. 14 // Delegate shared by all shelf instances.
15 class ASH_EXPORT ShelfDelegate { 15 class ASH_EXPORT ShelfDelegate {
16 public: 16 public:
17 // Shelf owns the delegate.
18 virtual ~ShelfDelegate() {} 17 virtual ~ShelfDelegate() {}
19 18
20 // Callback used to allow delegate to perform initialization actions that 19 // Callback used to allow delegate to perform initialization actions that
21 // depend on the Shelf being in a known state. 20 // depend on the Shelf being in a known state.
22 virtual void OnShelfCreated(Shelf* shelf) = 0; 21 virtual void OnShelfCreated(Shelf* shelf) = 0;
23 22
24 // Callback used to inform the delegate that a specific shelf no longer 23 // Callback used to inform the delegate that a specific shelf no longer
25 // exists. 24 // exists.
26 virtual void OnShelfDestroyed(Shelf* shelf) = 0; 25 virtual void OnShelfDestroyed(Shelf* shelf) = 0;
27 26
(...skipping 27 matching lines...) Expand all
55 54
56 // Check if the app with |app_id_| is pinned to the shelf. 55 // Check if the app with |app_id_| is pinned to the shelf.
57 virtual bool IsAppPinned(const std::string& app_id) = 0; 56 virtual bool IsAppPinned(const std::string& app_id) = 0;
58 57
59 // Unpins app item with |app_id|. 58 // Unpins app item with |app_id|.
60 virtual void UnpinAppWithID(const std::string& app_id) = 0; 59 virtual void UnpinAppWithID(const std::string& app_id) = 0;
61 }; 60 };
62 61
63 } // namespace ash 62 } // namespace ash
64 63
65 #endif // ASH_SHELF_SHELF_DELEGATE_H_ 64 #endif // ASH_COMMON_SHELF_SHELF_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698