| OLD | NEW |
| 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 #ifndef CONTENT_PUBLIC_BROWSER_BLUETOOTH_CHOOSER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BLUETOOTH_CHOOSER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BLUETOOTH_CHOOSER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BLUETOOTH_CHOOSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // Chromium can't ask for permission to scan for Bluetooth devices. | 21 // Chromium can't ask for permission to scan for Bluetooth devices. |
| 22 DENIED_PERMISSION, | 22 DENIED_PERMISSION, |
| 23 // The user cancelled the chooser instead of selecting a device. | 23 // The user cancelled the chooser instead of selecting a device. |
| 24 CANCELLED, | 24 CANCELLED, |
| 25 // The user selected device |opt_device_id|. | 25 // The user selected device |opt_device_id|. |
| 26 SELECTED, | 26 SELECTED, |
| 27 // The user asked for a new Bluetooth discovery session to start. | 27 // The user asked for a new Bluetooth discovery session to start. |
| 28 RESCAN, | 28 RESCAN, |
| 29 // Show overview page for Bluetooth. | 29 // Show overview page for Bluetooth. |
| 30 SHOW_OVERVIEW_HELP, | 30 SHOW_OVERVIEW_HELP, |
| 31 // Show help page explaining what Bluetooth pairing means. | |
| 32 SHOW_PAIRING_HELP, | |
| 33 // Show help page explaining why scanning failed because Bluetooth is off. | 31 // Show help page explaining why scanning failed because Bluetooth is off. |
| 34 SHOW_ADAPTER_OFF_HELP, | 32 SHOW_ADAPTER_OFF_HELP, |
| 35 // Show help page explaining why Chromium needs the Location permission to | 33 // Show help page explaining why Chromium needs the Location permission to |
| 36 // scan for Bluetooth devices. Only used on Android. | 34 // scan for Bluetooth devices. Only used on Android. |
| 37 SHOW_NEED_LOCATION_HELP, | 35 SHOW_NEED_LOCATION_HELP, |
| 38 | 36 |
| 39 // As the dialog implementations grow more user-visible buttons and knobs, | 37 // As the dialog implementations grow more user-visible buttons and knobs, |
| 40 // we'll add enumerators here to support them. | 38 // we'll add enumerators here to support them. |
| 41 }; | 39 }; |
| 42 | 40 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 const base::string16& device_name) {} | 73 const base::string16& device_name) {} |
| 76 | 74 |
| 77 // Tells the chooser that a device is no longer available. The chooser should | 75 // Tells the chooser that a device is no longer available. The chooser should |
| 78 // not call DeviceSelected() for a device that's been removed. | 76 // not call DeviceSelected() for a device that's been removed. |
| 79 virtual void RemoveDevice(const std::string& device_id) {} | 77 virtual void RemoveDevice(const std::string& device_id) {} |
| 80 }; | 78 }; |
| 81 | 79 |
| 82 } // namespace content | 80 } // namespace content |
| 83 | 81 |
| 84 #endif // CONTENT_PUBLIC_BROWSER_BLUETOOTH_CHOOSER_H_ | 82 #endif // CONTENT_PUBLIC_BROWSER_BLUETOOTH_CHOOSER_H_ |
| OLD | NEW |