#include "chrome/browser/ui/views/controls/site_icon_text_and_origin_view.h"
#include <memory>
#include <string>
#include "base/functional/callback_helpers.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/web_apps/web_app_views_utils.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/web_modal/web_contents_modal_dialog_manager.h"
#include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/controls/textfield/textfield_controller.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/layout/layout_types.h"
#include "ui/views/layout/table_layout.h"
#include "ui/views/view.h"
#include "ui/views/view_class_properties.h"
#include "url/gurl.h"
namespace {
std::u16string NormalizeSuggestedTitle(std::u16string title) { … }
std::u16string GetTrimmedTitle(std::u16string title) { … }
}
SiteIconTextAndOriginView::SiteIconTextAndOriginView(
const gfx::ImageSkia& icon,
std::u16string initial_title,
std::u16string accessible_title,
const GURL& url,
content::WebContents* web_contents,
base::RepeatingCallback<void(const std::u16string&)> text_tracker_callback)
: … { … }
SiteIconTextAndOriginView::~SiteIconTextAndOriginView() = default;
void SiteIconTextAndOriginView::ContentsChanged(
views::Textfield* sender,
const std::u16string& new_contents) { … }
BEGIN_METADATA(…)