| Index: components/arc/arc_bridge_service_impl.h
|
| diff --git a/components/arc/arc_bridge_service_impl.h b/components/arc/arc_bridge_service_impl.h
|
| index d0de3e3a6343a2d56ea6409fdce7b75f335947ca..969e0cb7792c4966c08de65dbcf39709878b1974 100644
|
| --- a/components/arc/arc_bridge_service_impl.h
|
| +++ b/components/arc/arc_bridge_service_impl.h
|
| @@ -24,6 +24,7 @@
|
|
|
| // Real IPC based ArcBridgeService that is used in production.
|
| class ArcBridgeServiceImpl : public ArcBridgeService,
|
| + public ArcBridgeHost,
|
| public ArcBridgeBootstrap::Delegate {
|
| public:
|
| explicit ArcBridgeServiceImpl(scoped_ptr<ArcBridgeBootstrap> bootstrap);
|
| @@ -34,6 +35,33 @@
|
| void HandleStartup() override;
|
|
|
| void Shutdown() override;
|
| +
|
| + bool RegisterInputDevice(const std::string& name,
|
| + const std::string& device_type,
|
| + base::ScopedFD fd) override;
|
| +
|
| + bool SendBroadcast(const std::string& action,
|
| + const std::string& package,
|
| + const std::string& clazz,
|
| + const base::DictionaryValue& extras) override;
|
| +
|
| + bool SendNotificationEventToAndroid(const std::string& key,
|
| + ArcNotificationEvent event) override;
|
| +
|
| + // Requests to refresh an app list.
|
| + bool RefreshAppList() override;
|
| +
|
| + // Requests to launch an app.
|
| + bool LaunchApp(const std::string& package,
|
| + const std::string& activity) override;
|
| +
|
| + // Requests to load an icon of specific scale_factor.
|
| + bool RequestAppIcon(const std::string& package,
|
| + const std::string& activity,
|
| + ScaleFactor scale_factor) override;
|
| +
|
| + // Requests ARC process list.
|
| + bool RequestProcessList() override;
|
|
|
| private:
|
| friend class ArcBridgeTest;
|
| @@ -48,6 +76,30 @@
|
|
|
| // Stops the running instance.
|
| void StopInstance();
|
| +
|
| + // Called when the instance has reached a boot phase
|
| + void OnInstanceBootPhase(InstanceBootPhase phase) override;
|
| + // Handler for ArcInstanceHostMsg_NotificationPosted message.
|
| + void OnNotificationPosted(ArcNotificationDataPtr data) override;
|
| + // Handler for ArcInstanceHostMsg_NotificationRemoved message.
|
| + void OnNotificationRemoved(const mojo::String& key) override;
|
| +
|
| + // Called whenever ARC sends information about available apps.
|
| + void OnAppListRefreshed(mojo::Array<arc::AppInfoPtr> apps) override;
|
| +
|
| + // Called whenever ARC sends app icon data for specific scale factor.
|
| + void OnAppIcon(const mojo::String& package,
|
| + const mojo::String& activity,
|
| + ScaleFactor scale_factor,
|
| + mojo::Array<uint8_t> icon_png_data) override;
|
| +
|
| + // Called when the latest process list is reported from ARC.
|
| + void OnUpdateProcessList(
|
| + mojo::Array<RunningAppProcessInfoPtr> processes_ptr) override;
|
| +
|
| + // Called when the instance requests wake lock services
|
| + void OnAcquireDisplayWakeLock(DisplayWakeLockType type) override;
|
| + void OnReleaseDisplayWakeLock(DisplayWakeLockType type) override;
|
|
|
| // ArcBridgeBootstrap::Delegate:
|
| void OnConnectionEstablished(ArcBridgeInstancePtr instance) override;
|
|
|