| 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 16 matching lines...) Expand all Loading... |
| 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 why scanning failed because Bluetooth is off. | 31 // Show help page explaining why scanning failed because Bluetooth is off. |
| 32 SHOW_ADAPTER_OFF_HELP, | 32 SHOW_ADAPTER_OFF_HELP, |
| 33 // Show help page explaining why Chromium needs the Location permission to | 33 // Show help page explaining why Chromium needs the Location permission to |
| 34 // scan for Bluetooth devices. Only used on Android. | 34 // scan for Bluetooth devices. Only used on Android. |
| 35 SHOW_NEED_LOCATION_HELP, | 35 SHOW_NEED_LOCATION_HELP, |
| 36 | 36 |
| 37 // Adapter discovering changed |
| 38 ADAPTER_DISCOVERING_CHANGED, |
| 39 |
| 37 // As the dialog implementations grow more user-visible buttons and knobs, | 40 // As the dialog implementations grow more user-visible buttons and knobs, |
| 38 // we'll add enumerators here to support them. | 41 // we'll add enumerators here to support them. |
| 39 }; | 42 }; |
| 40 | 43 |
| 41 // Chooser implementations are constructed with an |EventHandler| and report | 44 // Chooser implementations are constructed with an |EventHandler| and report |
| 42 // user interaction with the chooser through it. |opt_device_id| is an empty | 45 // user interaction with the chooser through it. |opt_device_id| is an empty |
| 43 // string except for Event::SELECTED. | 46 // string except for Event::SELECTED. |
| 44 // | 47 // |
| 45 // The EventHandler won't be called after the chooser object is destroyed. | 48 // The EventHandler won't be called after the chooser object is destroyed. |
| 46 // | 49 // |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 int signal_strength_level) {} | 88 int signal_strength_level) {} |
| 86 | 89 |
| 87 // Tells the chooser that a device is no longer available. The chooser should | 90 // Tells the chooser that a device is no longer available. The chooser should |
| 88 // not call DeviceSelected() for a device that's been removed. | 91 // not call DeviceSelected() for a device that's been removed. |
| 89 virtual void RemoveDevice(const std::string& device_id) {} | 92 virtual void RemoveDevice(const std::string& device_id) {} |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 } // namespace content | 95 } // namespace content |
| 93 | 96 |
| 94 #endif // CONTENT_PUBLIC_BROWSER_BLUETOOTH_CHOOSER_H_ | 97 #endif // CONTENT_PUBLIC_BROWSER_BLUETOOTH_CHOOSER_H_ |
| OLD | NEW |