| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_STATE_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_STATE_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_STATE_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_STATE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ash/public/interfaces/tray_action.mojom.h" | 8 #include "chrome/browser/chromeos/lock_screen_apps/types.h" |
| 9 | 9 |
| 10 namespace lock_screen_apps { | 10 namespace lock_screen_apps { |
| 11 | 11 |
| 12 // Interface that can be used to observe lock screen apps state. | 12 // Interface that can be used to observe lock screen apps state. |
| 13 class StateObserver { | 13 class StateObserver { |
| 14 public: | 14 public: |
| 15 virtual ~StateObserver() {} | 15 virtual ~StateObserver() {} |
| 16 | 16 |
| 17 // Invoked when the state of support for app provided lock screen actions | 17 // Invoked when the state of support for app provided lock screen actions |
| 18 // changes. | 18 // changes. |
| 19 virtual void OnLockScreenNoteStateChanged( | 19 // |states|: Maps actions supported by the platform to their current state. |
| 20 ash::mojom::TrayActionState state) = 0; | 20 virtual void OnLockScreenAppsStateChanged(Action action, |
| 21 ActionState state) = 0; |
| 21 }; | 22 }; |
| 22 | 23 |
| 23 } // namespace lock_screen_apps | 24 } // namespace lock_screen_apps |
| 24 | 25 |
| 25 #endif // CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_STATE_OBSERVER_H_ | 26 #endif // CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_STATE_OBSERVER_H_ |
| OLD | NEW |