#include "chrome/browser/extensions/device_permissions_dialog_controller.h"
#include "base/not_fatal_until.h"
#include "chrome/browser/chooser_controller/title_util.h"
#include "chrome/grit/generated_resources.h"
#include "components/strings/grit/components_strings.h"
#include "extensions/strings/grit/extensions_strings.h"
#include "ui/base/l10n/l10n_util.h"
DevicePermissionsDialogController::DevicePermissionsDialogController(
content::RenderFrameHost* owner,
scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt)
: … { … }
DevicePermissionsDialogController::~DevicePermissionsDialogController() { … }
bool DevicePermissionsDialogController::ShouldShowHelpButton() const { … }
bool DevicePermissionsDialogController::AllowMultipleSelection() const { … }
std::u16string DevicePermissionsDialogController::GetNoOptionsText() const { … }
std::u16string DevicePermissionsDialogController::GetOkButtonLabel() const { … }
std::pair<std::u16string, std::u16string>
DevicePermissionsDialogController::GetThrobberLabelAndTooltip() const { … }
size_t DevicePermissionsDialogController::NumOptions() const { … }
std::u16string DevicePermissionsDialogController::GetOption(
size_t index) const { … }
void DevicePermissionsDialogController::Select(
const std::vector<size_t>& indices) { … }
void DevicePermissionsDialogController::Cancel() { … }
void DevicePermissionsDialogController::Close() { … }
void DevicePermissionsDialogController::OpenHelpCenterUrl() const { … }
void DevicePermissionsDialogController::OnDevicesInitialized() { … }
void DevicePermissionsDialogController::OnDeviceAdded(
size_t index,
const std::u16string& device_name) { … }
void DevicePermissionsDialogController::OnDeviceRemoved(
size_t index,
const std::u16string& device_name) { … }