Lines Matching full:application
31 // implementation of the CastV2 application control protocol to launch receiver
39 // application messages asking about application availability are received and
41 // may request the LAUNCH of an Application (and later a STOP).
44 // application is running. In addition, it attempts to launch an "idle screen"
45 // Application whenever no other Application is running. The "idle screen"
46 // Application is usually some kind of screen saver or wallpaper/clock display.
47 // Registering the "idle screen" Application is optional, and if it's not
55 class Application {
57 // Returns the one or more application IDs that are supported. This list
58 // must not mutate while the Application is registered.
61 // Launches the application and returns true if successful. |app_id| is the
64 // provided). If the Application wishes to send/receive messages, it uses
71 // These reflect the current state of the application, and the data is used
77 // Stops the application, if running.
81 virtual ~Application();
94 // Registers an Application for launching by this agent. |app| must outlive
96 void RegisterApplication(Application* app,
98 void UnregisterApplication(Application* app);
104 void StopApplicationIfRunning(Application* app);
135 // Stops the currently-running Application and attempts to launch the
136 // Application referred to by |app_id|. If this fails, the "idle screen"
137 // Application will be automatically launched as a failure fall-back. |socket|
138 // is non-null only when the application switch was caused by a remote LAUNCH
144 // Stops the currently-running Application and launches the "idle screen."
153 // Application LAUNCH or STOP.
161 std::map<std::string, Application*> registered_applications_;
162 Application* idle_screen_app_ = nullptr;
165 Application* launched_app_ = nullptr;