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

Unified Diff: components/arc/arc_bridge_service.h

Issue 1475563002: arc-bridge: Implement IPC message for app launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased (change to use switch for arc) Created 5 years, 1 month 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
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);

Powered by Google App Engine
This is Rietveld 408576698