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

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

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: rebase for landing 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // RenderWidgetHostView implementation. 51 // RenderWidgetHostView implementation.
52 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE {} 52 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE {}
53 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; 53 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE;
54 virtual void SetSize(const gfx::Size& size) OVERRIDE {} 54 virtual void SetSize(const gfx::Size& size) OVERRIDE {}
55 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE {} 55 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE {}
56 virtual gfx::NativeView GetNativeView() const OVERRIDE; 56 virtual gfx::NativeView GetNativeView() const OVERRIDE;
57 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; 57 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE;
58 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 58 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
59 virtual bool HasFocus() const OVERRIDE; 59 virtual bool HasFocus() const OVERRIDE;
60 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE;
60 virtual void Show() OVERRIDE; 61 virtual void Show() OVERRIDE;
61 virtual void Hide() OVERRIDE; 62 virtual void Hide() OVERRIDE;
62 virtual bool IsShowing() OVERRIDE; 63 virtual bool IsShowing() OVERRIDE;
63 virtual gfx::Rect GetViewBounds() const OVERRIDE; 64 virtual gfx::Rect GetViewBounds() const OVERRIDE;
64 #if defined(OS_MACOSX) 65 #if defined(OS_MACOSX)
65 virtual void SetActive(bool active) OVERRIDE; 66 virtual void SetActive(bool active) OVERRIDE;
66 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} 67 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {}
67 virtual void SetWindowVisibility(bool visible) OVERRIDE {} 68 virtual void SetWindowVisibility(bool visible) OVERRIDE {}
68 virtual void WindowFrameChanged() OVERRIDE {} 69 virtual void WindowFrameChanged() OVERRIDE {}
69 #endif // defined(OS_MACOSX) 70 #endif // defined(OS_MACOSX)
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 TestRenderViewHost* active_test_rvh(); 317 TestRenderViewHost* active_test_rvh();
317 TestWebContents* contents(); 318 TestWebContents* contents();
318 319
319 private: 320 private:
320 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 321 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
321 }; 322 };
322 323
323 } // namespace content 324 } // namespace content
324 325
325 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 326 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | content/browser/renderer_host/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698