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

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

Issue 234533002: Remove a bunch of TOOLKIT_GTK in content/ and gpu/, as well as NPAPI plugins on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, skip changing browser_main_loop.cc because of presubmit issues, will follow up Created 6 years, 8 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
« no previous file with comments | « content/test/test_render_view_host.h ('k') | gpu/command_buffer/tests/gl_tests_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | gpu/command_buffer/tests/gl_tests_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698