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

Unified Diff: components/arc/clipboard/clipboard_bridge_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/clipboard/clipboard_bridge_impl.h
diff --git a/components/arc/clipboard/clipboard_bridge_impl.h b/components/arc/clipboard/clipboard_bridge_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..f498b7b4f1c5450ee0badf83c9fdfad7f29cb42b
--- /dev/null
+++ b/components/arc/clipboard/clipboard_bridge_impl.h
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
elijahtaylor1 2015/12/15 01:17:05 I think we've developed a bit of an anti-pattern i
cnwan 2015/12/21 11:18:01 I am OK with Service/Manager/Bridge/... I picked
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_ARC_CLIPBOARD_CLIPBOARD_BRIDGE_IMPL_H_
+#define COMPONENTS_ARC_CLIPBOARD_CLIPBOARD_BRIDGE_IMPL_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "components/arc/arc_bridge_service.h"
+#include "components/arc/clipboard/clipboard_bridge.h"
+#include "components/arc/common/arc_bridge.mojom.h"
+
+namespace arc {
+
+class ClipboardBridgeImpl : public ClipboardBridge,
+ public ArcBridgeService::ClipboardObserver {
Luis Héctor Chávez 2015/12/16 23:16:23 Can you make this inherit ArcBridgeService::Observ
+ public:
+ explicit ClipboardBridgeImpl(ArcBridgeService* bridge_service);
+ ~ClipboardBridgeImpl() override;
+
+ // Implements ArcBridgeService::ClipboardObserver:
+ void OnSetClipboardContent(const std::string& text) override;
+ void OnGetClipboardContent() override;
+
+ private:
+ ArcBridgeService* bridge_service_;
+
+ DISALLOW_COPY_AND_ASSIGN(ClipboardBridgeImpl);
+};
+
+} // namespace arc
+
+#endif // COMPONENTS_ARC_CLIPBOARD_CLIPBOARD_BRIDGE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698