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 90e9b92e49757357e08a38bce2207e1ccdaeda47..f2729dff38452698214e09780f2b1db50cda403d 100644 |
--- a/components/arc/arc_bridge_service_impl.h |
+++ b/components/arc/arc_bridge_service_impl.h |
@@ -55,6 +55,9 @@ class ArcBridgeServiceImpl : public ArcBridgeService, |
const std::string& activity, |
ScaleFactor scale_factor) override; |
+ // Sends the Chrome clipboard content to Android. |
+ bool SendClipboardContentToAndroid(const std::string& text) override; |
+ |
private: |
friend class ArcBridgeTest; |
FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, Basic); |
@@ -76,6 +79,15 @@ class ArcBridgeServiceImpl : public ArcBridgeService, |
// Handler for ArcInstanceHostMsg_NotificationRemoved message. |
void OnNotificationRemoved(const mojo::String& key) override; |
+ // Called when the Android clipboard content is changed. This is |
+ // typically fired when a user initiates a "Copy" action. |
+ void OnSetClipboardContent(const mojo::String& text); |
+ |
+ // Called when the Android clipboard decides to update its content. |
+ // This is triggered when a "Paste" action is fired or an app |
+ // or a service tries to retrieve the Android clipboard content. |
+ void OnGetClipboardContent(); |
+ |
// Called whenever ARC sends information about available apps. |
void OnAppListRefreshed(mojo::Array<arc::AppInfoPtr> apps) override; |