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