OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "components/arc/test/fake_intent_helper_instance.h" | |
6 | |
7 namespace arc { | |
8 | |
9 FakeIntentHelperInstance::FakeIntentHelperInstance() {} | |
10 FakeIntentHelperInstance::~FakeIntentHelperInstance() {} | |
11 | |
12 void FakeIntentHelperInstance::AddPreferredPackage( | |
13 const mojo::String& package_name) { | |
14 } | |
15 | |
16 void FakeIntentHelperInstance::HandleUrl(const mojo::String& url, | |
17 const mojo::String& package_name) { | |
18 } | |
19 | |
20 void FakeIntentHelperInstance::HandleUrlList( | |
21 mojo::Array<mojom::UrlWithMimeTypePtr> urls, | |
22 mojom::ActivityNamePtr activity, | |
23 mojom::ActionType action) { | |
Luis Héctor Chávez
2016/09/02 15:58:48
Can you run git cl format / git cl lint?
Polina Bondarenko
2016/09/05 20:08:45
Done.
| |
24 } | |
25 | |
26 void FakeIntentHelperInstance::HandleUrlListDeprecated( | |
27 mojo::Array<mojom::UrlWithMimeTypePtr> urls, | |
28 const mojo::String& package_name, | |
29 mojom::ActionType action) { | |
30 } | |
31 | |
32 void FakeIntentHelperInstance::Init(mojom::IntentHelperHostPtr host_ptr) { | |
33 } | |
34 | |
35 | |
36 void FakeIntentHelperInstance::RequestActivityIcons( | |
37 mojo::Array<mojom::ActivityNamePtr> activities, | |
38 ::arc::mojom::ScaleFactor scale_factor, | |
39 const RequestActivityIconsCallback& callback) { | |
40 } | |
41 | |
42 void FakeIntentHelperInstance::RequestUrlHandlerList( | |
43 const mojo::String& url, | |
44 const RequestUrlHandlerListCallback& callback) { | |
45 } | |
46 | |
47 void FakeIntentHelperInstance::RequestUrlListHandlerList( | |
48 mojo::Array<mojom::UrlWithMimeTypePtr> urls, | |
49 const RequestUrlListHandlerListCallback& callback) { | |
50 } | |
51 | |
52 void FakeIntentHelperInstance::SendBroadcast( | |
53 const mojo::String& action, | |
54 const mojo::String& package_name, | |
55 const mojo::String& cls, | |
56 const mojo::String& extras) { | |
57 if (!callback_.is_null()) | |
58 callback_.Run(action, extras); | |
59 } | |
60 | |
61 } // namespace arc | |
62 | |
OLD | NEW |