OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 package org.chromium.blimp.core; | 5 package org.chromium.blimp.core; |
6 | 6 |
7 import android.preference.PreferenceFragment; | 7 import android.preference.PreferenceFragment; |
8 | 8 |
9 import org.chromium.base.annotations.CalledByNative; | 9 import org.chromium.base.annotations.CalledByNative; |
10 import org.chromium.base.annotations.JNINamespace; | 10 import org.chromium.base.annotations.JNINamespace; |
11 import org.chromium.blimp_public.BlimpClientContext; | 11 import org.chromium.blimp_public.BlimpClientContext; |
12 import org.chromium.blimp_public.BlimpClientContextDelegate; | 12 import org.chromium.blimp_public.BlimpClientContextDelegate; |
13 import org.chromium.blimp_public.BlimpSettingsCallbacks; | |
14 import org.chromium.blimp_public.contents.BlimpContents; | 13 import org.chromium.blimp_public.contents.BlimpContents; |
15 | 14 |
16 /** | 15 /** |
17 * A dummy implementation of the {@link BlimpClientContext}. | 16 * A dummy implementation of the {@link BlimpClientContext}. |
18 */ | 17 */ |
19 @JNINamespace("blimp::client") | 18 @JNINamespace("blimp::client") |
20 public class DummyBlimpClientContext implements BlimpClientContext { | 19 public class DummyBlimpClientContext implements BlimpClientContext { |
21 @CalledByNative | 20 @CalledByNative |
22 private static DummyBlimpClientContext create(long nativeDummyBlimpClientCon
textAndroid) { | 21 private static DummyBlimpClientContext create(long nativeDummyBlimpClientCon
textAndroid) { |
23 return new DummyBlimpClientContext(nativeDummyBlimpClientContextAndroid)
; | 22 return new DummyBlimpClientContext(nativeDummyBlimpClientContextAndroid)
; |
(...skipping 28 matching lines...) Expand all Loading... |
52 public boolean isBlimpSupported() { | 51 public boolean isBlimpSupported() { |
53 return false; | 52 return false; |
54 } | 53 } |
55 | 54 |
56 @Override | 55 @Override |
57 public boolean isBlimpEnabled() { | 56 public boolean isBlimpEnabled() { |
58 return false; | 57 return false; |
59 } | 58 } |
60 | 59 |
61 @Override | 60 @Override |
62 public void attachBlimpPreferences( | 61 public void attachBlimpPreferences(PreferenceFragment fragment) {} |
63 PreferenceFragment fragment, BlimpSettingsCallbacks callbacks) {} | |
64 | 62 |
65 @Override | 63 @Override |
66 public void setDelegate(BlimpClientContextDelegate delegate) { | 64 public void setDelegate(BlimpClientContextDelegate delegate) {} |
67 } | |
68 | 65 |
69 @Override | 66 @Override |
70 public void connect() {} | 67 public void connect() {} |
71 } | 68 } |
OLD | NEW |