| 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_public; | 5 package org.chromium.blimp_public; |
| 6 | 6 |
| 7 import android.preference.PreferenceFragment; | 7 import android.preference.PreferenceFragment; |
| 8 | 8 |
| 9 import org.chromium.blimp_public.contents.BlimpContents; | 9 import org.chromium.blimp_public.contents.BlimpContents; |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * {@link BlimpContents#destroy()} for destruction of the BlimpContents. | 21 * {@link BlimpContents#destroy()} for destruction of the BlimpContents. |
| 22 */ | 22 */ |
| 23 BlimpContents createBlimpContents(); | 23 BlimpContents createBlimpContents(); |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * @return If Blimp is supported with this build. | 26 * @return If Blimp is supported with this build. |
| 27 */ | 27 */ |
| 28 boolean isBlimpSupported(); | 28 boolean isBlimpSupported(); |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * @return If Blimp is enabled by the user. |
| 32 */ |
| 33 boolean isBlimpEnabled(); |
| 34 |
| 35 /** |
| 31 * Attach blimp settings UI to a {@link PreferenceFragment} | 36 * Attach blimp settings UI to a {@link PreferenceFragment} |
| 32 * @param fragment PreferenceFragment that blimp settings UI attached to. | 37 * @param fragment PreferenceFragment that blimp settings UI attached to. |
| 33 * @param callback Chrome layer callbacks that passed to Blimp. | 38 * @param callback Chrome layer callbacks that passed to Blimp. |
| 34 */ | 39 */ |
| 35 void attachBlimpPreferences(PreferenceFragment fragment, BlimpSettingsCallba
cks callback); | 40 void attachBlimpPreferences(PreferenceFragment fragment, BlimpSettingsCallba
cks callback); |
| 36 | 41 |
| 37 /** | 42 /** |
| 38 * Set the {@link BlimpClientContextDelegate}, functions in this interface s
hould be used in | 43 * Set the {@link BlimpClientContextDelegate}, functions in this interface s
hould be used in |
| 39 * Java Blimp code only. | 44 * Java Blimp code only. |
| 40 */ | 45 */ |
| 41 void setDelegate(BlimpClientContextDelegate delegate); | 46 void setDelegate(BlimpClientContextDelegate delegate); |
| 42 } | 47 } |
| OLD | NEW |