Revert 199284 "[Downloads] Clear current_path_ when deleting int..."
[chromium-blink-merge.git] / content / test / test_web_contents_view.cc
blob49250b0c8b9c59d7c258628d8517fd6ca4a6e1fa
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::ShowContextMenu(const ContextMenuParams& params,
16 ContextMenuSourceType type) {
19 void TestWebContentsView::ShowPopupMenu(const gfx::Rect& bounds,
20 int item_height,
21 double item_font_size,
22 int selected_item,
23 const std::vector<WebMenuItem>& items,
24 bool right_aligned,
25 bool allow_multiple_selection) {
28 void TestWebContentsView::StartDragging(
29 const WebDropData& drop_data,
30 WebKit::WebDragOperationsMask allowed_ops,
31 const gfx::ImageSkia& image,
32 const gfx::Vector2d& image_offset,
33 const DragEventSourceInfo& event_info) {
36 void TestWebContentsView::UpdateDragCursor(WebKit::WebDragOperation operation) {
39 void TestWebContentsView::GotFocus() {
42 void TestWebContentsView::TakeFocus(bool reverse) {
45 gfx::NativeView TestWebContentsView::GetNativeView() const {
46 return gfx::NativeView();
49 gfx::NativeView TestWebContentsView::GetContentNativeView() const {
50 return gfx::NativeView();
53 gfx::NativeWindow TestWebContentsView::GetTopLevelNativeWindow() const {
54 return gfx::NativeWindow();
57 void TestWebContentsView::GetContainerBounds(gfx::Rect *out) const {
60 void TestWebContentsView::OnTabCrashed(base::TerminationStatus status,
61 int error_code) {
64 void TestWebContentsView::SizeContents(const gfx::Size& size) {
67 void TestWebContentsView::Focus() {
70 void TestWebContentsView::SetInitialFocus() {
73 void TestWebContentsView::StoreFocus() {
76 void TestWebContentsView::RestoreFocus() {
79 WebDropData* TestWebContentsView::GetDropData() const {
80 return NULL;
83 gfx::Rect TestWebContentsView::GetViewBounds() const {
84 return gfx::Rect();
87 #if defined(OS_MACOSX)
88 void TestWebContentsView::SetAllowOverlappingViews(bool overlapping) {
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