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

Unified Diff: components/arc/arc_bridge_service_impl.h

Issue 1495723004: Minimum implementation of ARC clipboard Bridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the fakes Created 5 years 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_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;

Powered by Google App Engine
This is Rietveld 408576698