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

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: Rebased to catch arc++ notification cl 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 3f57f67f37a672eae4a97d1c9b0e55b030f3642a..a7638482d37475031d0676c17f7b79fd307d926c 100644
--- a/components/arc/arc_bridge_service_impl.h
+++ b/components/arc/arc_bridge_service_impl.h
@@ -53,6 +53,9 @@ class ArcBridgeServiceImpl : public ArcBridgeService,
const std::string& activity,
ScaleFactor scale_factor) override;
+ // Sends the Chrome clipboard content to Android side.
+ bool SendClipboardContentToAndroid(const ClipboardData data);
elijahtaylor1 2015/12/04 20:36:51 should this be passed by reference?
+
private:
friend class ArcBridgeTest;
FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, Basic);
@@ -84,11 +87,21 @@ class ArcBridgeServiceImpl : public ArcBridgeService,
// Called when the instance has reached a boot phase
void OnInstanceBootPhase(InstanceBootPhase phase);
+
// Handler for ArcInstanceHostMsg_NotificationPosted message.
void OnNotificationPostedFromAndroid(const ArcNotificationData& data);
// Handler for ArcInstanceHostMsg_NotificationRemoved message.
void OnNotificationRemovedFromAndroid(const std::string& key);
+ // Called whenever the Android clipboard content is changed. This is
+ // typically fired when a user initiates a "Copy" action.
+ void OnSetClipboardContent(const ClipboardData& data);
+
+ // Called whenever the Android clipboard decides to update its content.
+ // This is typical triggered when a "Paste" action is fired or an app
+ // or service tries to retrieve the android clipboard content.
+ void OnGetClipboardContent();
+
// Called whenever ARC sends information about available apps.
void OnAppListRefreshed(const std::vector<arc::AppInfo>& apps);

Powered by Google App Engine
This is Rietveld 408576698