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

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

Issue 8591006: Reland 110355 - Use shared D3D9 texture to transport the compositor's backing buffer to the brows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void DidUpdateBackingStore( 81 virtual void DidUpdateBackingStore(
82 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, 82 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy,
83 const std::vector<gfx::Rect>& rects) OVERRIDE {} 83 const std::vector<gfx::Rect>& rects) OVERRIDE {}
84 virtual void RenderViewGone(base::TerminationStatus status, 84 virtual void RenderViewGone(base::TerminationStatus status,
85 int error_code) OVERRIDE; 85 int error_code) OVERRIDE;
86 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } 86 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { }
87 virtual void Destroy() OVERRIDE {} 87 virtual void Destroy() OVERRIDE {}
88 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} 88 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {}
89 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 89 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
90 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 90 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
91 virtual void AcceleratedSurfaceBuffersSwapped(
92 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
93 int gpu_host_id) OVERRIDE;
91 #if defined(OS_MACOSX) 94 #if defined(OS_MACOSX)
92 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} 95 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {}
93 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; 96 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE;
94 virtual void SetActive(bool active) OVERRIDE; 97 virtual void SetActive(bool active) OVERRIDE;
95 virtual void SetWindowVisibility(bool visible) OVERRIDE {} 98 virtual void SetWindowVisibility(bool visible) OVERRIDE {}
96 virtual void WindowFrameChanged() OVERRIDE {} 99 virtual void WindowFrameChanged() OVERRIDE {}
97 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; 100 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE;
98 virtual void StartPluginIme() OVERRIDE; 101 virtual void StartPluginIme() OVERRIDE;
99 virtual bool PostProcessEventForPluginIme( 102 virtual bool PostProcessEventForPluginIme(
100 const NativeWebKeyboardEvent& event) OVERRIDE; 103 const NativeWebKeyboardEvent& event) OVERRIDE;
101 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( 104 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(
102 bool opaque, 105 bool opaque,
103 bool root) OVERRIDE; 106 bool root) OVERRIDE;
104 virtual void DestroyFakePluginWindowHandle( 107 virtual void DestroyFakePluginWindowHandle(
105 gfx::PluginWindowHandle window) OVERRIDE; 108 gfx::PluginWindowHandle window) OVERRIDE;
106 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, 109 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window,
107 int32 width, 110 int32 width,
108 int32 height, 111 int32 height,
109 uint64 surface_id) OVERRIDE; 112 uint64 surface_id) OVERRIDE;
110 virtual void AcceleratedSurfaceSetTransportDIB( 113 virtual void AcceleratedSurfaceSetTransportDIB(
111 gfx::PluginWindowHandle window, 114 gfx::PluginWindowHandle window,
112 int32 width, 115 int32 width,
113 int32 height, 116 int32 height,
114 TransportDIB::Handle transport_dib) OVERRIDE; 117 TransportDIB::Handle transport_dib) OVERRIDE;
115 virtual void AcceleratedSurfaceBuffersSwapped(
116 gfx::PluginWindowHandle window,
117 uint64 surface_id,
118 int renderer_id,
119 int32 route_id,
120 int gpu_host_id) OVERRIDE;
121 #elif defined(OS_WIN) 118 #elif defined(OS_WIN)
122 virtual void WillWmDestroy() OVERRIDE; 119 virtual void WillWmDestroy() OVERRIDE;
123 #endif 120 #endif
124 #if defined(OS_POSIX) || defined(USE_AURA) 121 #if defined(OS_POSIX) || defined(USE_AURA)
125 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} 122 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {}
126 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; 123 virtual gfx::Rect GetRootWindowBounds() OVERRIDE;
127 #endif 124 #endif
128 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { } 125 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate) { }
129 virtual void UnhandledWheelEvent( 126 virtual void UnhandledWheelEvent(
130 const WebKit::WebMouseWheelEvent& event) { } 127 const WebKit::WebMouseWheelEvent& event) { }
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 MockRenderProcessHostFactory rph_factory_; 330 MockRenderProcessHostFactory rph_factory_;
334 TestRenderViewHostFactory rvh_factory_; 331 TestRenderViewHostFactory rvh_factory_;
335 332
336 private: 333 private:
337 scoped_ptr<TestTabContents> contents_; 334 scoped_ptr<TestTabContents> contents_;
338 335
339 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 336 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
340 }; 337 };
341 338
342 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 339 #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