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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 10349013: Prevent browser thumbnailer from trying to read from frontbuffer (surface texture) when none exists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK protection against segfault. Created 8 years, 7 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/browser/renderer_host/test_backing_store.h" 5 #include "content/browser/renderer_host/test_backing_store.h"
6 #include "content/browser/renderer_host/test_render_view_host.h" 6 #include "content/browser/renderer_host/test_render_view_host.h"
7 #include "content/browser/site_instance_impl.h" 7 #include "content/browser/site_instance_impl.h"
8 #include "content/browser/web_contents/navigation_controller_impl.h" 8 #include "content/browser/web_contents/navigation_controller_impl.h"
9 #include "content/browser/web_contents/test_web_contents.h" 9 #include "content/browser/web_contents/test_web_contents.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 63
64 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() { 64 gfx::NativeViewAccessible TestRenderWidgetHostView::GetNativeViewAccessible() {
65 return NULL; 65 return NULL;
66 } 66 }
67 67
68 bool TestRenderWidgetHostView::HasFocus() const { 68 bool TestRenderWidgetHostView::HasFocus() const {
69 return true; 69 return true;
70 } 70 }
71 71
72 bool TestRenderWidgetHostView::IsSurfaceAvailableForCopy() const {
73 return true;
74 }
75
72 void TestRenderWidgetHostView::Show() { 76 void TestRenderWidgetHostView::Show() {
73 is_showing_ = true; 77 is_showing_ = true;
74 } 78 }
75 79
76 void TestRenderWidgetHostView::Hide() { 80 void TestRenderWidgetHostView::Hide() {
77 is_showing_ = false; 81 is_showing_ = false;
78 } 82 }
79 83
80 bool TestRenderWidgetHostView::IsShowing() { 84 bool TestRenderWidgetHostView::IsShowing() {
81 return is_showing_; 85 return is_showing_;
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 332
329 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 333 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
330 return static_cast<TestRenderViewHost*>(active_rvh()); 334 return static_cast<TestRenderViewHost*>(active_rvh());
331 } 335 }
332 336
333 TestWebContents* RenderViewHostImplTestHarness::contents() { 337 TestWebContents* RenderViewHostImplTestHarness::contents() {
334 return static_cast<TestWebContents*>(web_contents()); 338 return static_cast<TestWebContents*>(web_contents());
335 } 339 }
336 340
337 } // namespace content 341 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698