OLD | NEW |
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_render_view_host.h" | 5 #include "content/test/test_render_view_host.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 const NativeWebKeyboardEvent& event) { | 173 const NativeWebKeyboardEvent& event) { |
174 return false; | 174 return false; |
175 } | 175 } |
176 | 176 |
177 #endif | 177 #endif |
178 | 178 |
179 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { | 179 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { |
180 return gfx::Rect(); | 180 return gfx::Rect(); |
181 } | 181 } |
182 | 182 |
183 #if defined(TOOLKIT_GTK) | |
184 GdkEventButton* TestRenderWidgetHostView::GetLastMouseDown() { | |
185 return NULL; | |
186 } | |
187 | |
188 gfx::NativeView TestRenderWidgetHostView::BuildInputMethodsGtkMenu() { | |
189 return NULL; | |
190 } | |
191 #endif // defined(TOOLKIT_GTK) | |
192 | |
193 void TestRenderWidgetHostView::OnSwapCompositorFrame( | 183 void TestRenderWidgetHostView::OnSwapCompositorFrame( |
194 uint32 output_surface_id, | 184 uint32 output_surface_id, |
195 scoped_ptr<cc::CompositorFrame> frame) { | 185 scoped_ptr<cc::CompositorFrame> frame) { |
196 did_swap_compositor_frame_ = true; | 186 did_swap_compositor_frame_ = true; |
197 } | 187 } |
198 | 188 |
199 | 189 |
200 gfx::GLSurfaceHandle TestRenderWidgetHostView::GetCompositingSurface() { | 190 gfx::GLSurfaceHandle TestRenderWidgetHostView::GetCompositingSurface() { |
201 return gfx::GLSurfaceHandle(); | 191 return gfx::GLSurfaceHandle(); |
202 } | 192 } |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 390 |
401 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { | 391 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { |
402 return static_cast<TestRenderFrameHost*>(main_rfh()); | 392 return static_cast<TestRenderFrameHost*>(main_rfh()); |
403 } | 393 } |
404 | 394 |
405 TestWebContents* RenderViewHostImplTestHarness::contents() { | 395 TestWebContents* RenderViewHostImplTestHarness::contents() { |
406 return static_cast<TestWebContents*>(web_contents()); | 396 return static_cast<TestWebContents*>(web_contents()); |
407 } | 397 } |
408 | 398 |
409 } // namespace content | 399 } // namespace content |
OLD | NEW |