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

Side by Side Diff: blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpClientContext.java

Issue 2261273002: Integrate UI with authentication flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Misc fixes/ Created 4 years, 3 months 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 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
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. 31 * @return If Blimp is enabled in settings UI by the user. Or if we have dev elopment mode
32 * command line arguments.
32 */ 33 */
33 boolean isBlimpEnabled(); 34 boolean isBlimpEnabled();
34 35
35 /** 36 /**
36 * Attach blimp settings UI to a {@link PreferenceFragment} 37 * Attach blimp settings UI to a {@link PreferenceFragment}
37 * @param fragment PreferenceFragment that blimp settings UI attached to. 38 * @param fragment PreferenceFragment that blimp settings UI attached to.
38 * @param callback Chrome layer callbacks that passed to Blimp.
39 */ 39 */
40 void attachBlimpPreferences(PreferenceFragment fragment, BlimpSettingsCallba cks callback); 40 void attachBlimpPreferences(PreferenceFragment fragment);
41 41
42 /** 42 /**
43 * 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
44 * Java Blimp code only. 44 * Java Blimp code only.
45 */ 45 */
46 void setDelegate(BlimpClientContextDelegate delegate); 46 void setDelegate(BlimpClientContextDelegate delegate);
47 47
48 /** 48 /**
49 * Start authentication flow and connection to engine. 49 * Start authentication flow and connection to engine.
50 * This must be called after AccountTrackerService.onSystemAccountsSeedingCo mplete, since the
51 * embedder may asynchronously seed account info to native layer, and revoke all OAuth2 refresh
52 * token during the request.
53 */ 50 */
54 void connect(); 51 void connect();
55 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698