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.
5 #include "content/test/test_web_contents_view.h"
9 TestWebContentsView::TestWebContentsView() {
12 TestWebContentsView::~TestWebContentsView() {
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) {
23 void TestWebContentsView::UpdateDragCursor(blink::WebDragOperation operation) {
26 void TestWebContentsView::GotFocus() {
29 void TestWebContentsView::TakeFocus(bool reverse) {
32 gfx::NativeView TestWebContentsView::GetNativeView() const {
33 return gfx::NativeView();
36 gfx::NativeView TestWebContentsView::GetContentNativeView() const {
37 return gfx::NativeView();
40 gfx::NativeWindow TestWebContentsView::GetTopLevelNativeWindow() const {
41 return gfx::NativeWindow();
44 void TestWebContentsView::GetContainerBounds(gfx::Rect *out) const {
47 void TestWebContentsView::OnTabCrashed(base::TerminationStatus status,
51 void TestWebContentsView::SizeContents(const gfx::Size& size) {
54 void TestWebContentsView::Focus() {
57 void TestWebContentsView::SetInitialFocus() {
60 void TestWebContentsView::StoreFocus() {
63 void TestWebContentsView::RestoreFocus() {
66 DropData* TestWebContentsView::GetDropData() const {
70 gfx::Rect TestWebContentsView::GetViewBounds() const {
74 #if defined(OS_MACOSX)
75 void TestWebContentsView::SetAllowOverlappingViews(bool overlapping) {
78 bool TestWebContentsView::GetAllowOverlappingViews() const {
82 void TestWebContentsView::SetOverlayView(
83 WebContentsView* overlay, const gfx::Point& offset) {
86 void TestWebContentsView::RemoveOverlayView() {
90 void TestWebContentsView::CreateView(const gfx::Size& initial_size,
91 gfx::NativeView context) {
94 RenderWidgetHostView* TestWebContentsView::CreateViewForWidget(
95 RenderWidgetHost* render_widget_host) {
99 RenderWidgetHostView* TestWebContentsView::CreateViewForPopupWidget(
100 RenderWidgetHost* render_widget_host) {
104 void TestWebContentsView::SetPageTitle(const base::string16& title) {
107 void TestWebContentsView::RenderViewCreated(RenderViewHost* host) {
110 void TestWebContentsView::RenderViewSwappedIn(RenderViewHost* host) {
113 void TestWebContentsView::SetOverscrollControllerEnabled(bool enabled) {
116 #if defined(OS_MACOSX)
117 bool TestWebContentsView::IsEventTracking() const {
121 void TestWebContentsView::CloseTabAfterEventTracking() {
125 } // namespace content