1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "content/public/browser/web_contents_view_delegate.h" 6 7 #include <stddef.h> 8 #include <utility> 9 10 #include "base/callback.h" 11 #include "content/public/common/drop_data.h" 12 13 namespace content { 14 ~WebContentsViewDelegate()15WebContentsViewDelegate::~WebContentsViewDelegate() { 16 } 17 GetNativeWindow()18gfx::NativeWindow WebContentsViewDelegate::GetNativeWindow() { 19 return nullptr; 20 } 21 GetDragDestDelegate()22WebDragDestDelegate* WebContentsViewDelegate::GetDragDestDelegate() { 23 return nullptr; 24 } 25 ShowContextMenu(RenderFrameHost * render_frame_host,const ContextMenuParams & params)26void WebContentsViewDelegate::ShowContextMenu( 27 RenderFrameHost* render_frame_host, 28 const ContextMenuParams& params) { 29 } 30 StoreFocus()31void WebContentsViewDelegate::StoreFocus() { 32 } 33 RestoreFocus()34bool WebContentsViewDelegate::RestoreFocus() { 35 return false; 36 } 37 ResetStoredFocus()38void WebContentsViewDelegate::ResetStoredFocus() {} 39 Focus()40bool WebContentsViewDelegate::Focus() { 41 return false; 42 } 43 TakeFocus(bool reverse)44bool WebContentsViewDelegate::TakeFocus(bool reverse) { 45 return false; 46 } 47 CreateRenderWidgetHostViewDelegate(RenderWidgetHost * render_widget_host,bool is_popup)48void* WebContentsViewDelegate::CreateRenderWidgetHostViewDelegate( 49 RenderWidgetHost* render_widget_host, 50 bool is_popup) { 51 return nullptr; 52 } 53 OnPerformDrop(const DropData & drop_data,DropCompletionCallback callback)54void WebContentsViewDelegate::OnPerformDrop(const DropData& drop_data, 55 DropCompletionCallback callback) { 56 return std::move(callback).Run(DropCompletionResult::kContinue); 57 } 58 59 } // namespace content 60