Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: content/test/test_web_contents_view.cc

Issue 16267002: Re-fix http://crbug.com/87176, and add a test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Second round of creis comments Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/test/test_web_contents_view.h" 5 #include "content/test/test_web_contents_view.h"
6 6
7 #include "content/browser/renderer_host/test_render_view_host.h"
8
7 namespace content { 9 namespace content {
8 10
9 TestWebContentsView::TestWebContentsView() { 11 TestWebContentsView::TestWebContentsView() {
10 } 12 }
11 13
12 TestWebContentsView::~TestWebContentsView() { 14 TestWebContentsView::~TestWebContentsView() {
13 } 15 }
14 16
15 void TestWebContentsView::ShowContextMenu(const ContextMenuParams& params, 17 void TestWebContentsView::ShowContextMenu(const ContextMenuParams& params,
16 ContextMenuSourceType type) { 18 ContextMenuSourceType type) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void TestWebContentsView::SetAllowOverlappingViews(bool overlapping) { 90 void TestWebContentsView::SetAllowOverlappingViews(bool overlapping) {
89 } 91 }
90 #endif 92 #endif
91 93
92 void TestWebContentsView::CreateView(const gfx::Size& initial_size, 94 void TestWebContentsView::CreateView(const gfx::Size& initial_size,
93 gfx::NativeView context) { 95 gfx::NativeView context) {
94 } 96 }
95 97
96 RenderWidgetHostView* TestWebContentsView::CreateViewForWidget( 98 RenderWidgetHostView* TestWebContentsView::CreateViewForWidget(
97 RenderWidgetHost* render_widget_host) { 99 RenderWidgetHost* render_widget_host) {
98 return NULL; 100 return new TestRenderWidgetHostView(render_widget_host);
99 } 101 }
100 102
101 RenderWidgetHostView* TestWebContentsView::CreateViewForPopupWidget( 103 RenderWidgetHostView* TestWebContentsView::CreateViewForPopupWidget(
102 RenderWidgetHost* render_widget_host) { 104 RenderWidgetHost* render_widget_host) {
103 return NULL; 105 return new TestRenderWidgetHostView(render_widget_host);
104 } 106 }
105 107
106 void TestWebContentsView::SetPageTitle(const string16& title) { 108 void TestWebContentsView::SetPageTitle(const string16& title) {
107 } 109 }
108 110
109 void TestWebContentsView::RenderViewCreated(RenderViewHost* host) { 111 void TestWebContentsView::RenderViewCreated(RenderViewHost* host) {
110 } 112 }
111 113
112 void TestWebContentsView::RenderViewSwappedIn(RenderViewHost* host) { 114 void TestWebContentsView::RenderViewSwappedIn(RenderViewHost* host) {
113 } 115 }
114 116
115 void TestWebContentsView::SetOverscrollControllerEnabled(bool enabled) { 117 void TestWebContentsView::SetOverscrollControllerEnabled(bool enabled) {
116 } 118 }
117 119
118 #if defined(OS_MACOSX) 120 #if defined(OS_MACOSX)
119 bool TestWebContentsView::IsEventTracking() const { 121 bool TestWebContentsView::IsEventTracking() const {
120 return false; 122 return false;
121 } 123 }
122 124
123 void TestWebContentsView::CloseTabAfterEventTracking() { 125 void TestWebContentsView::CloseTabAfterEventTracking() {
124 } 126 }
125 #endif 127 #endif
126 128
127 } // namespace content 129 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698