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