| Index: components/arc/arc_bridge_service.h
|
| diff --git a/components/arc/arc_bridge_service.h b/components/arc/arc_bridge_service.h
|
| index c1ffad1da0e7f6083f7c07bb5f754767b12fce92..8c9c31348fb66cf81221b63f529099940a8780c7 100644
|
| --- a/components/arc/arc_bridge_service.h
|
| +++ b/components/arc/arc_bridge_service.h
|
| @@ -74,6 +74,15 @@ class ArcBridgeService {
|
| // Called whenever ARC's availability has changed for this system.
|
| virtual void OnAvailableChanged(bool available) {}
|
|
|
| + // Called whenever ARC sends information about available apps.
|
| + virtual void OnAppsRefreshed(const std::vector<AppInfo>& apps) {}
|
| +
|
| + // Called whenever ARC sends app icon data for specific scale factor.
|
| + virtual void OnAppIcon(const std::string& package,
|
| + const std::string& activity,
|
| + int scale_factor,
|
| + const std::vector<uint8_t>& icon_png_data) {}
|
| +
|
| protected:
|
| virtual ~Observer() {}
|
| };
|
| @@ -125,6 +134,18 @@ class ArcBridgeService {
|
| const std::string& device_type,
|
| base::ScopedFD fd) = 0;
|
|
|
| + // Requests to refresh an app list.
|
| + virtual bool RefreshApps() = 0;
|
| +
|
| + // Requests to launch an app.
|
| + virtual bool LaunchApp(const std::string& package,
|
| + const std::string& activity) = 0;
|
| +
|
| + // Request to load icon of specific scale_factor.
|
| + virtual bool RequestIcon(const std::string& package,
|
| + const std::string& activity,
|
| + int scale_factor) = 0;
|
| +
|
| protected:
|
| // Changes the current state and notifies all observers.
|
| void SetState(State state);
|
|
|