OLD | NEW |
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_SHELF_SHELF_DELEGATE_H_ |
6 #define ASH_SHELF_SHELF_DELEGATE_H_ | 6 #define ASH_SHELF_SHELF_DELEGATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/launcher/launcher_types.h" | 9 #include "ash/launcher/launcher_types.h" |
10 | 10 |
| 11 namespace aura { |
| 12 class Window; |
| 13 } |
| 14 |
11 namespace ash { | 15 namespace ash { |
12 class Launcher; | 16 class Launcher; |
13 | 17 |
14 // Delegate for the Launcher. | 18 // Delegate for the Launcher. |
15 class ASH_EXPORT ShelfDelegate { | 19 class ASH_EXPORT ShelfDelegate { |
16 public: | 20 public: |
17 // Launcher owns the delegate. | 21 // Launcher owns the delegate. |
18 virtual ~ShelfDelegate() {} | 22 virtual ~ShelfDelegate() {} |
19 | 23 |
20 // Callback used to allow delegate to perform initialization actions that | 24 // Callback used to allow delegate to perform initialization actions that |
(...skipping 17 matching lines...) Expand all Loading... |
38 | 42 |
39 // Check if the app with |app_id_| is pinned to the launcher. | 43 // Check if the app with |app_id_| is pinned to the launcher. |
40 virtual bool IsAppPinned(const std::string& app_id) = 0; | 44 virtual bool IsAppPinned(const std::string& app_id) = 0; |
41 | 45 |
42 // Checks whether the user is allowed to pin/unpin apps. Pinning may be | 46 // Checks whether the user is allowed to pin/unpin apps. Pinning may be |
43 // disallowed by policy in case there is a pre-defined set of pinned apps. | 47 // disallowed by policy in case there is a pre-defined set of pinned apps. |
44 virtual bool CanPin() const = 0; | 48 virtual bool CanPin() const = 0; |
45 | 49 |
46 // Unpins app item with |app_id|. | 50 // Unpins app item with |app_id|. |
47 virtual void UnpinAppWithID(const std::string& app_id) = 0; | 51 virtual void UnpinAppWithID(const std::string& app_id) = 0; |
| 52 |
| 53 // Returns |true| if the user is allowed to modify the shelf auto-hide |
| 54 // behavior on |root_window|. |
| 55 virtual bool CanUserModifyShelfAutoHideBehavior( |
| 56 aura::Window* root_window) const = 0; |
48 }; | 57 }; |
49 | 58 |
50 } // namespace ash | 59 } // namespace ash |
51 | 60 |
52 #endif // ASH_SHELF_SHELF_DELEGATE_H_ | 61 #endif // ASH_SHELF_SHELF_DELEGATE_H_ |
OLD | NEW |