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

Unified Diff: chrome/browser/chromeos/lock_screen_apps/types.h

Issue 2870473002: Revert of Introduce ash mojo interface for lock screen action handlers (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/lock_screen_apps/state_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/lock_screen_apps/types.h
diff --git a/chrome/browser/chromeos/lock_screen_apps/types.h b/chrome/browser/chromeos/lock_screen_apps/types.h
new file mode 100644
index 0000000000000000000000000000000000000000..f0cfc4b17a0ab70b3d58819cc76edb3b7617d286
--- /dev/null
+++ b/chrome/browser/chromeos/lock_screen_apps/types.h
@@ -0,0 +1,34 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_TYPES_H_
+#define CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_TYPES_H_
+
+namespace lock_screen_apps {
+
+// App provided actions supported on the lock screen.
+enum class Action {
+ kNewNote,
+};
+
+// State of surrpot for a lock screen action.
+enum class ActionState {
+ // There is no app registered to handle the action.
+ kNotSupported,
+ // There is an app registered to handle the action, but the action cannot be
+ // handled at the moment, e.g. due to the user session not being locked.
+ kNotAvailable,
+ // There is an app registered to handle the action.
+ kAvailable,
+ // A handler for the action is being launched.
+ kLaunching,
+ // The action is being handled.
+ kActive,
+ // The action is being handled, but the handler window has been hidden.
+ kHidden,
+};
+
+} // namespace lock_screen_apps
+
+#endif // CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_TYPES_H_
« no previous file with comments | « chrome/browser/chromeos/lock_screen_apps/state_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698