1// Copyright (c) 2012 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/test/test_web_contents_view.h" 6 7namespace content { 8 9TestWebContentsView::TestWebContentsView() { 10} 11 12TestWebContentsView::~TestWebContentsView() { 13} 14 15void TestWebContentsView::ShowPopupMenu(const gfx::Rect& bounds, 16 int item_height, 17 double item_font_size, 18 int selected_item, 19 const std::vector<MenuItem>& items, 20 bool right_aligned, 21 bool allow_multiple_selection) { 22} 23 24void TestWebContentsView::StartDragging( 25 const DropData& drop_data, 26 WebKit::WebDragOperationsMask allowed_ops, 27 const gfx::ImageSkia& image, 28 const gfx::Vector2d& image_offset, 29 const DragEventSourceInfo& event_info) { 30} 31 32void TestWebContentsView::UpdateDragCursor(WebKit::WebDragOperation operation) { 33} 34 35void TestWebContentsView::GotFocus() { 36} 37 38void TestWebContentsView::TakeFocus(bool reverse) { 39} 40 41gfx::NativeView TestWebContentsView::GetNativeView() const { 42 return gfx::NativeView(); 43} 44 45gfx::NativeView TestWebContentsView::GetContentNativeView() const { 46 return gfx::NativeView(); 47} 48 49gfx::NativeWindow TestWebContentsView::GetTopLevelNativeWindow() const { 50 return gfx::NativeWindow(); 51} 52 53void TestWebContentsView::GetContainerBounds(gfx::Rect *out) const { 54} 55 56void TestWebContentsView::OnTabCrashed(base::TerminationStatus status, 57 int error_code) { 58} 59 60void TestWebContentsView::SizeContents(const gfx::Size& size) { 61} 62 63void TestWebContentsView::Focus() { 64} 65 66void TestWebContentsView::SetInitialFocus() { 67} 68 69void TestWebContentsView::StoreFocus() { 70} 71 72void TestWebContentsView::RestoreFocus() { 73} 74 75DropData* TestWebContentsView::GetDropData() const { 76 return NULL; 77} 78 79gfx::Rect TestWebContentsView::GetViewBounds() const { 80 return gfx::Rect(); 81} 82 83#if defined(OS_MACOSX) 84void TestWebContentsView::SetAllowOverlappingViews(bool overlapping) { 85} 86 87bool TestWebContentsView::GetAllowOverlappingViews() const { 88 return false; 89} 90#endif 91 92void TestWebContentsView::CreateView(const gfx::Size& initial_size, 93 gfx::NativeView context) { 94} 95 96RenderWidgetHostView* TestWebContentsView::CreateViewForWidget( 97 RenderWidgetHost* render_widget_host) { 98 return NULL; 99} 100 101RenderWidgetHostView* TestWebContentsView::CreateViewForPopupWidget( 102 RenderWidgetHost* render_widget_host) { 103 return NULL; 104} 105 106void TestWebContentsView::SetPageTitle(const string16& title) { 107} 108 109void TestWebContentsView::RenderViewCreated(RenderViewHost* host) { 110} 111 112void TestWebContentsView::RenderViewSwappedIn(RenderViewHost* host) { 113} 114 115void TestWebContentsView::SetOverscrollControllerEnabled(bool enabled) { 116} 117 118#if defined(OS_MACOSX) 119bool TestWebContentsView::IsEventTracking() const { 120 return false; 121} 122 123void TestWebContentsView::CloseTabAfterEventTracking() { 124} 125#endif 126 127} // namespace content 128