Index: components/arc/arc_bridge_service.h |
diff --git a/components/arc/arc_bridge_service.h b/components/arc/arc_bridge_service.h |
index c562b478111d2164479e106cc1395fa297d231b0..ca819ca852d2de1a41c1b1da24bdc87c01c16f4b 100644 |
--- a/components/arc/arc_bridge_service.h |
+++ b/components/arc/arc_bridge_service.h |
@@ -78,6 +78,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() {} |
}; |
@@ -133,6 +142,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); |