Index: components/arc/common/arc_bridge.mojom |
diff --git a/components/arc/common/arc_bridge.mojom b/components/arc/common/arc_bridge.mojom |
index d6cdd7bc1ea44827a734ae6126e2927177d29abc..e46af7753bd31b6aeb44bebf2434d37f6070159d 100644 |
--- a/components/arc/common/arc_bridge.mojom |
+++ b/components/arc/common/arc_bridge.mojom |
@@ -140,6 +140,16 @@ interface ArcBridgeHost { |
// Acquire and release wake locks on the host side. |
OnAcquireDisplayWakeLock(DisplayWakeLockType type); |
OnReleaseDisplayWakeLock(DisplayWakeLockType type); |
+ |
+ // Called when the Android clipboard content is changed. This is |
+ // typically fired when a user initiates a "Copy" action. |
+ // |text| is the text being set in the Android Clipboard. |
+ OnSetClipboardContent(string text); |
Luis Héctor Chávez
2015/12/16 23:16:23
Can you split off this into its own interface?
cl
cnwan
2015/12/21 11:18:01
Will do once crrev.com/1541653002 is relanded.
Luis Héctor Chávez
2015/12/21 17:33:50
Will this only ever support text? Is copy/pasting
Luis Héctor Chávez
2015/12/23 00:07:01
Btw, please use OnClipboardInstanceReady@109.
|
+ |
+ // 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. |
+ OnGetClipboardContent(); |
}; |
interface ArcBridgeInstance { |
@@ -177,4 +187,8 @@ interface ArcBridgeInstance { |
// Sends an event from Chrome notification UI to Android. |
// |event| is a type of occured event. |
SendNotificationEventToAndroid(string key, ArcNotificationEvent event); |
+ |
+ // Sends the Chrome clipboard content to Android. |
+ // |text| is the clipboard content being sent. |
+ SendClipboardContentToAndroid(string text); |
}; |