#include "chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h"
#include <memory>
#include <utility>
#include "chrome/browser/defaults.h"
#include "chrome/browser/ui/aura/tab_contents/web_drag_bookmark_handler_aura.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/sad_tab_helper.h"
#include "chrome/browser/ui/tab_contents/chrome_web_contents_menu_helper.h"
#include "chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.h"
#include "chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.h"
#include "chrome/browser/ui/views/sad_tab_view.h"
#include "chrome/browser/ui/views/tab_contents/chrome_web_contents_view_focus_helper.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/drop_data.h"
#include "ui/views/widget/widget.h"
ChromeWebContentsViewDelegateViews::ChromeWebContentsViewDelegateViews(
content::WebContents* web_contents)
: … { … }
ChromeWebContentsViewDelegateViews::~ChromeWebContentsViewDelegateViews() =
default;
gfx::NativeWindow ChromeWebContentsViewDelegateViews::GetNativeWindow() { … }
content::WebDragDestDelegate*
ChromeWebContentsViewDelegateViews::GetDragDestDelegate() { … }
ChromeWebContentsViewFocusHelper*
ChromeWebContentsViewDelegateViews::GetFocusHelper() const { … }
bool ChromeWebContentsViewDelegateViews::Focus() { … }
bool ChromeWebContentsViewDelegateViews::TakeFocus(bool reverse) { … }
void ChromeWebContentsViewDelegateViews::StoreFocus() { … }
bool ChromeWebContentsViewDelegateViews::RestoreFocus() { … }
void ChromeWebContentsViewDelegateViews::ResetStoredFocus() { … }
std::unique_ptr<RenderViewContextMenuBase>
ChromeWebContentsViewDelegateViews::BuildMenu(
content::RenderFrameHost& render_frame_host,
const content::ContextMenuParams& params) { … }
void ChromeWebContentsViewDelegateViews::ShowMenu(
std::unique_ptr<RenderViewContextMenuBase> menu) { … }
void ChromeWebContentsViewDelegateViews::ShowContextMenu(
content::RenderFrameHost& render_frame_host,
const content::ContextMenuParams& params) { … }
void ChromeWebContentsViewDelegateViews::ExecuteCommandForTesting(
int command_id,
int event_flags) { … }
void ChromeWebContentsViewDelegateViews::OnPerformingDrop(
const content::DropData& drop_data,
DropCompletionCallback callback) { … }
std::unique_ptr<content::WebContentsViewDelegate> CreateWebContentsViewDelegate(
content::WebContents* web_contents) { … }