chromium/chrome/browser/ui/views/page_info/about_this_site_side_panel_view.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/page_info/about_this_site_side_panel_view.h"

#include <string_view>

#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/page_info/about_this_site_side_panel_throttle.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/page_info/about_this_site_side_panel.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "components/page_info/core/about_this_site_service.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.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/common/referrer.h"
#include "net/base/url_util.h"
#include "third_party/blink/public/common/loader/loader_constants.h"
#include "ui/base/window_open_disposition.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/layout/flex_layout_types.h"
#include "ui/views/layout/flex_layout_view.h"
#include "url/origin.h"

namespace {
std::unique_ptr<views::WebView> CreateWebView(
    views::View* host,
    content::BrowserContext* browser_context) {}
}  // namespace

constexpr char kStaticLoadingScreenURL[] =;

AboutThisSiteSidePanelView::AboutThisSiteSidePanelView(
    content::WebContents* parent_web_contents)
    :{}

void AboutThisSiteSidePanelView::LoadProgressChanged(double progress) {}

void AboutThisSiteSidePanelView::OpenUrl(const content::OpenURLParams& params) {}

// This method is called when the WebContents wants to open a link in a new
// tab. This delegate does not override AddNewContents(), so the webcontents
// is not actually created. Instead it forwards the parameters to the real
// browser.
void AboutThisSiteSidePanelView::DidOpenRequestedURL(
    content::WebContents* new_contents,
    content::RenderFrameHost* source_render_frame_host,
    const GURL& url,
    const content::Referrer& referrer,
    WindowOpenDisposition disposition,
    ui::PageTransition transition,
    bool started_from_context_menu,
    bool renderer_initiated) {}

// This function is called when the user opens a link in a new tab or window
// e.g. from the context menu or by middle-clicking on it. It forwards the
// params to the main browser and does not create a WebContents in the
// SidePanel.
content::WebContents* AboutThisSiteSidePanelView::OpenURLFromTab(
    content::WebContents* source,
    const content::OpenURLParams& params,
    base::OnceCallback<void(content::NavigationHandle&)>
        navigation_handle_callback) {}

bool AboutThisSiteSidePanelView::HandleKeyboardEvent(
    content::WebContents* source,
    const input::NativeWebKeyboardEvent& event) {}

BrowserView* AboutThisSiteSidePanelView::outer_browser_view() {}

content::WebContentsDelegate* AboutThisSiteSidePanelView::outer_delegate() {}

void AboutThisSiteSidePanelView::OpenUrlInBrowser(
    const content::OpenURLParams& params) {}

bool AboutThisSiteSidePanelView::IsNavigationAllowed(const GURL& new_url,
                                                     const GURL& old_url) {}

GURL AboutThisSiteSidePanelView::CleanUpQueryParams(const GURL& url) {}

void AboutThisSiteSidePanelView::SetContentVisible(bool visible) {}

AboutThisSiteSidePanelView::~AboutThisSiteSidePanelView() = default;