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

Side by Side Diff: components/arc/test/fake_arc_bridge_instance.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_INSTANCE_H_ 5 #ifndef COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_INSTANCE_H_
6 #define COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_INSTANCE_H_ 6 #define COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_INSTANCE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/arc/arc_bridge_service.h" 9 #include "components/arc/arc_bridge_service.h"
10 #include "components/arc/common/arc_bridge.mojom.h" 10 #include "components/arc/common/arc_bridge.mojom.h"
(...skipping 10 matching lines...) Expand all
21 // the host that the boot sequence has finished. 21 // the host that the boot sequence has finished.
22 void Bind(mojo::InterfaceRequest<ArcBridgeInstance> interface_request); 22 void Bind(mojo::InterfaceRequest<ArcBridgeInstance> interface_request);
23 23
24 // ArcBridgeInstance: 24 // ArcBridgeInstance:
25 void Init(ArcBridgeHostPtr host) override; 25 void Init(ArcBridgeHostPtr host) override;
26 void RegisterInputDevice(const mojo::String& name, 26 void RegisterInputDevice(const mojo::String& name,
27 const mojo::String& device_type, 27 const mojo::String& device_type,
28 mojo::ScopedHandle fd) override; 28 mojo::ScopedHandle fd) override;
29 void SendNotificationEventToAndroid(const mojo::String& key, 29 void SendNotificationEventToAndroid(const mojo::String& key,
30 ArcNotificationEvent event) override; 30 ArcNotificationEvent event) override;
31 void SendClipboardContentToAndroid(const mojo::String& text) override;
32
31 void RefreshAppList() override; 33 void RefreshAppList() override;
32 void LaunchApp(const mojo::String& package, 34 void LaunchApp(const mojo::String& package,
33 const mojo::String& activity) override; 35 const mojo::String& activity) override;
34 void RequestAppIcon(const mojo::String& package, 36 void RequestAppIcon(const mojo::String& package,
35 const mojo::String& activity, 37 const mojo::String& activity,
36 ScaleFactor scale_factor) override; 38 ScaleFactor scale_factor) override;
37 39
38 private: 40 private:
39 // Mojo endpoints. 41 // Mojo endpoints.
40 mojo::Binding<ArcBridgeInstance> binding_; 42 mojo::Binding<ArcBridgeInstance> binding_;
41 ArcBridgeHostPtr host_ptr_; 43 ArcBridgeHostPtr host_ptr_;
42 44
43 DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeInstance); 45 DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeInstance);
44 }; 46 };
45 47
46 } // namespace arc 48 } // namespace arc
47 49
48 #endif // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_INSTANCE_H_ 50 #endif // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698