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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java

Issue 2102813002: If location services are turned off, have the BT chooser prompt the user to turn them on. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-fix-testing
Patch Set: Address tedchoc's comments Created 4 years, 5 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 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 package org.chromium.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.app.Dialog; 8 import android.app.Dialog;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.DialogInterface; 10 import android.content.DialogInterface;
(...skipping 22 matching lines...) Expand all
33 import org.chromium.ui.base.DeviceFormFactor; 33 import org.chromium.ui.base.DeviceFormFactor;
34 import org.chromium.ui.widget.TextViewWithClickableSpans; 34 import org.chromium.ui.widget.TextViewWithClickableSpans;
35 35
36 import java.util.HashMap; 36 import java.util.HashMap;
37 import java.util.HashSet; 37 import java.util.HashSet;
38 import java.util.Map; 38 import java.util.Map;
39 import java.util.Set; 39 import java.util.Set;
40 40
41 /** 41 /**
42 * A general-purpose dialog for presenting a list of things to pick from. 42 * A general-purpose dialog for presenting a list of things to pick from.
43 *
44 * The dialog is shown by the ItemChooserDialog constructor, and always calls
45 * ItemSelectedCallback.onItemSelected() as it's closing.
43 */ 46 */
44 public class ItemChooserDialog { 47 public class ItemChooserDialog {
45 /** 48 /**
46 * An interface to implement to get a callback when something has been 49 * An interface to implement to get a callback when something has been
47 * selected. 50 * selected.
48 */ 51 */
49 public interface ItemSelectedCallback { 52 public interface ItemSelectedCallback {
50 /** 53 /**
51 * Returns the user selection. 54 * Returns the user selection.
52 * 55 *
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 } 491 }
489 492
490 /** 493 /**
491 * Returns the ItemAdapter associated with this class. For use with tests on ly. 494 * Returns the ItemAdapter associated with this class. For use with tests on ly.
492 */ 495 */
493 @VisibleForTesting 496 @VisibleForTesting
494 public ItemAdapter getItemAdapterForTesting() { 497 public ItemAdapter getItemAdapterForTesting() {
495 return mItemAdapter; 498 return mItemAdapter;
496 } 499 }
497 } 500 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698