| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LAUNCHER_LAUNCHER_DELEGATE_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_DELEGATE_H_ |
| 6 #define ASH_LAUNCHER_LAUNCHER_DELEGATE_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_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 LauncherDelegate { | 19 class ASH_EXPORT LauncherDelegate { |
| 16 public: | 20 public: |
| 17 // Launcher owns the delegate. | 21 // Launcher owns the delegate. |
| 18 virtual ~LauncherDelegate() {} | 22 virtual ~LauncherDelegate() {} |
| 19 | 23 |
| 20 // Returns the id of the item associated with the specified window, or 0 if | 24 // Returns the id of the item associated with the specified window, or 0 if |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 // disallowed by policy in case there is a pre-defined set of pinned apps. | 53 // disallowed by policy in case there is a pre-defined set of pinned apps. |
| 50 virtual bool CanPin() const = 0; | 54 virtual bool CanPin() const = 0; |
| 51 | 55 |
| 52 // Unpins app item with |app_id|. | 56 // Unpins app item with |app_id|. |
| 53 virtual void UnpinAppWithID(const std::string& app_id) = 0; | 57 virtual void UnpinAppWithID(const std::string& app_id) = 0; |
| 54 }; | 58 }; |
| 55 | 59 |
| 56 } // namespace ash | 60 } // namespace ash |
| 57 | 61 |
| 58 #endif // ASH_LAUNCHER_LAUNCHER_DELEGATE_H_ | 62 #endif // ASH_LAUNCHER_LAUNCHER_DELEGATE_H_ |
| OLD | NEW |