Refactor management of overview window copy lifetime into a separate class.
[chromium-blink-merge.git] / content / test / test_web_contents_view.cc
blobb732a01a61fce369b00c67305498a12de3f34521
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"
7 namespace content {
9 TestWebContentsView::TestWebContentsView() {
12 TestWebContentsView::~TestWebContentsView() {
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) {
24 void 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) {
32 void TestWebContentsView::UpdateDragCursor(WebKit::WebDragOperation operation) {
35 void TestWebContentsView::GotFocus() {
38 void TestWebContentsView::TakeFocus(bool reverse) {
41 gfx::NativeView TestWebContentsView::GetNativeView() const {
42 return gfx::NativeView();
45 gfx::NativeView TestWebContentsView::GetContentNativeView() const {
46 return gfx::NativeView();
49 gfx::NativeWindow TestWebContentsView::GetTopLevelNativeWindow() const {
50 return gfx::NativeWindow();
53 void TestWebContentsView::GetContainerBounds(gfx::Rect *out) const {
56 void TestWebContentsView::OnTabCrashed(base::TerminationStatus status,
57 int error_code) {
60 void TestWebContentsView::SizeContents(const gfx::Size& size) {
63 void TestWebContentsView::Focus() {
66 void TestWebContentsView::SetInitialFocus() {
69 void TestWebContentsView::StoreFocus() {
72 void TestWebContentsView::RestoreFocus() {
75 DropData* TestWebContentsView::GetDropData() const {
76 return NULL;
79 gfx::Rect TestWebContentsView::GetViewBounds() const {
80 return gfx::Rect();
83 #if defined(OS_MACOSX)
84 void TestWebContentsView::SetAllowOverlappingViews(bool overlapping) {
87 bool TestWebContentsView::GetAllowOverlappingViews() const {
88 return false;
90 #endif
92 void TestWebContentsView::CreateView(const gfx::Size& initial_size,
93 gfx::NativeView context) {
96 RenderWidgetHostView* TestWebContentsView::CreateViewForWidget(
97 RenderWidgetHost* render_widget_host) {
98 return NULL;
101 RenderWidgetHostView* TestWebContentsView::CreateViewForPopupWidget(
102 RenderWidgetHost* render_widget_host) {
103 return NULL;
106 void TestWebContentsView::SetPageTitle(const string16& title) {
109 void TestWebContentsView::RenderViewCreated(RenderViewHost* host) {
112 void TestWebContentsView::RenderViewSwappedIn(RenderViewHost* host) {
115 void TestWebContentsView::SetOverscrollControllerEnabled(bool enabled) {
118 #if defined(OS_MACOSX)
119 bool TestWebContentsView::IsEventTracking() const {
120 return false;
123 void TestWebContentsView::CloseTabAfterEventTracking() {
125 #endif
127 } // namespace content