#include "chrome/browser/ui/views/page_info/about_this_site_side_panel_coordinator.h"
#include "base/functional/bind.h"
#include "chrome/browser/page_info/page_info_features.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
#include "chrome/browser/ui/page_info/about_this_site_side_panel.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/page_info/about_this_site_side_panel_view.h"
#include "chrome/browser/ui/views/page_info/page_info_view_factory.h"
#include "chrome/browser/ui/views/side_panel/side_panel_entry.h"
#include "chrome/browser/ui/views/side_panel/side_panel_registry.h"
#include "chrome/browser/ui/views/side_panel/side_panel_ui.h"
#include "components/page_info/core/about_this_site_service.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "net/base/url_util.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/vector_icons.h"
namespace {
content::OpenURLParams CreateOpenUrlParams(const GURL& url) { … }
}
void ShowAboutThisSiteSidePanel(content::WebContents* web_contents,
const GURL& more_about_url) { … }
void RegisterAboutThisSiteSidePanel(content::WebContents* web_contents,
const GURL& more_about_url) { … }
AboutThisSideSidePanelCoordinator::AboutThisSideSidePanelCoordinator(
content::WebContents* web_contents)
: … { … }
AboutThisSideSidePanelCoordinator::~AboutThisSideSidePanelCoordinator() =
default;
void AboutThisSideSidePanelCoordinator::RegisterEntry(
const GURL& more_about_url) { … }
void AboutThisSideSidePanelCoordinator::RegisterEntryAndShow(
const GURL& more_about_url) { … }
void AboutThisSideSidePanelCoordinator::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
std::unique_ptr<views::View>
AboutThisSideSidePanelCoordinator::CreateAboutThisSiteWebView() { … }
BrowserView* AboutThisSideSidePanelCoordinator::GetBrowserView() const { … }
SidePanelUI* AboutThisSideSidePanelCoordinator::GetSidePanelUI() { … }
GURL AboutThisSideSidePanelCoordinator::GetOpenInNewTabUrl() { … }
WEB_CONTENTS_USER_DATA_KEY_IMPL(AboutThisSideSidePanelCoordinator);