#include "ui/views/controls/message_box_view.h"
#include <stddef.h>
#include <memory>
#include <numeric>
#include <utility>
#include "base/functional/bind.h"
#include "base/i18n/rtl.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/clipboard/clipboard.h"
#include "ui/base/clipboard/scoped_clipboard_writer.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/views/accessibility/accessibility_paint_checks.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/checkbox.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/layout/box_layout_view.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/client_view.h"
#include "ui/views/window/dialog_delegate.h"
namespace {
constexpr int kDefaultMessageWidth = …;
bool IsParagraphSeparator(char16_t c) { … }
void SplitStringIntoParagraphs(const std::u16string& text,
std::vector<std::u16string>* paragraphs) { … }
}
namespace views {
MessageBoxView::MessageBoxView(const std::u16string& message,
bool detect_directionality)
: … { … }
MessageBoxView::~MessageBoxView() = default;
views::Textfield* MessageBoxView::GetVisiblePromptField() { … }
std::u16string MessageBoxView::GetInputText() { … }
bool MessageBoxView::HasVisibleCheckBox() const { … }
bool MessageBoxView::IsCheckBoxSelected() { … }
void MessageBoxView::SetCheckBoxLabel(const std::u16string& label) { … }
void MessageBoxView::SetCheckBoxSelected(bool selected) { … }
void MessageBoxView::SetLink(const std::u16string& text,
Link::ClickedCallback callback) { … }
void MessageBoxView::SetInterRowVerticalSpacing(int spacing) { … }
void MessageBoxView::SetMessageWidth(int width) { … }
void MessageBoxView::SetPromptField(const std::u16string& default_prompt) { … }
gfx::Size MessageBoxView::CalculatePreferredSize(
const SizeBounds& available_size) const { … }
void MessageBoxView::ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) { … }
bool MessageBoxView::AcceleratorPressed(const ui::Accelerator& accelerator) { … }
void MessageBoxView::ResetLayoutManager() { … }
gfx::Insets MessageBoxView::GetHorizontalInsets(
const LayoutProvider* provider) { … }
BEGIN_METADATA(…)
}