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    blink::WebDragOperationsMask allowed_ops,
27    const gfx::ImageSkia& image,
28    const gfx::Vector2d& image_offset,
29    const DragEventSourceInfo& event_info) {
30}
31
32void TestWebContentsView::UpdateDragCursor(blink::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
91void TestWebContentsView::SetOverlayView(
92    WebContentsView* overlay, const gfx::Point& offset) {
93}
94
95void TestWebContentsView::RemoveOverlayView() {
96}
97#endif
98
99void TestWebContentsView::CreateView(const gfx::Size& initial_size,
100                                     gfx::NativeView context) {
101}
102
103RenderWidgetHostView* TestWebContentsView::CreateViewForWidget(
104    RenderWidgetHost* render_widget_host) {
105  return NULL;
106}
107
108RenderWidgetHostView* TestWebContentsView::CreateViewForPopupWidget(
109    RenderWidgetHost* render_widget_host) {
110  return NULL;
111}
112
113void TestWebContentsView::SetPageTitle(const base::string16& title) {
114}
115
116void TestWebContentsView::RenderViewCreated(RenderViewHost* host) {
117}
118
119void TestWebContentsView::RenderViewSwappedIn(RenderViewHost* host) {
120}
121
122void TestWebContentsView::SetOverscrollControllerEnabled(bool enabled) {
123}
124
125#if defined(OS_MACOSX)
126bool TestWebContentsView::IsEventTracking() const {
127  return false;
128}
129
130void TestWebContentsView::CloseTabAfterEventTracking() {
131}
132#endif
133
134}  // namespace content
135