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