#include "chrome/browser/enterprise/data_controls/desktop_data_controls_dialog.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/image_model.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/gfx/color_palette.h"
#include "ui/views/border.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout_view.h"
namespace data_controls {
namespace {
constexpr int kSpacingBetweenIconAndMessage = …;
constexpr int kBusinessIconSize = …;
DesktopDataControlsDialog::TestObserver* observer_for_testing_ = …;
}
DesktopDataControlsDialog::TestObserver::TestObserver() { … }
DesktopDataControlsDialog::TestObserver::~TestObserver() { … }
void DesktopDataControlsDialog::SetObserverForTesting(TestObserver* observer) { … }
void DesktopDataControlsDialog::Show(base::OnceClosure on_destructed) { … }
DesktopDataControlsDialog::~DesktopDataControlsDialog() { … }
std::u16string DesktopDataControlsDialog::GetWindowTitle() const { … }
views::View* DesktopDataControlsDialog::GetContentsView() { … }
views::Widget* DesktopDataControlsDialog::GetWidget() { … }
ui::mojom::ModalType DesktopDataControlsDialog::GetModalType() const { … }
bool DesktopDataControlsDialog::ShouldShowCloseButton() const { … }
void DesktopDataControlsDialog::OnWidgetInitialized() { … }
void DesktopDataControlsDialog::WebContentsDestroyed() { … }
void DesktopDataControlsDialog::PrimaryPageChanged(content::Page& page) { … }
DesktopDataControlsDialog::DesktopDataControlsDialog(
Type type,
content::WebContents* contents,
base::OnceCallback<void(bool bypassed)> callback)
: … { … }
std::unique_ptr<views::View> DesktopDataControlsDialog::CreateEnterpriseIcon()
const { … }
std::unique_ptr<views::Label> DesktopDataControlsDialog::CreateMessage() const { … }
}