OLD | NEW |
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 Loading... |
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; | |
94 #if defined(OS_MACOSX) | 91 #if defined(OS_MACOSX) |
95 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} | 92 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} |
96 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; | 93 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; |
97 virtual void SetActive(bool active) OVERRIDE; | 94 virtual void SetActive(bool active) OVERRIDE; |
98 virtual void SetWindowVisibility(bool visible) OVERRIDE {} | 95 virtual void SetWindowVisibility(bool visible) OVERRIDE {} |
99 virtual void WindowFrameChanged() OVERRIDE {} | 96 virtual void WindowFrameChanged() OVERRIDE {} |
100 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; | 97 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; |
101 virtual void StartPluginIme() OVERRIDE; | 98 virtual void StartPluginIme() OVERRIDE; |
102 virtual bool PostProcessEventForPluginIme( | 99 virtual bool PostProcessEventForPluginIme( |
103 const NativeWebKeyboardEvent& event) OVERRIDE; | 100 const NativeWebKeyboardEvent& event) OVERRIDE; |
104 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( | 101 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( |
105 bool opaque, | 102 bool opaque, |
106 bool root) OVERRIDE; | 103 bool root) OVERRIDE; |
107 virtual void DestroyFakePluginWindowHandle( | 104 virtual void DestroyFakePluginWindowHandle( |
108 gfx::PluginWindowHandle window) OVERRIDE; | 105 gfx::PluginWindowHandle window) OVERRIDE; |
109 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 106 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
110 int32 width, | 107 int32 width, |
111 int32 height, | 108 int32 height, |
112 uint64 surface_id) OVERRIDE; | 109 uint64 surface_id) OVERRIDE; |
113 virtual void AcceleratedSurfaceSetTransportDIB( | 110 virtual void AcceleratedSurfaceSetTransportDIB( |
114 gfx::PluginWindowHandle window, | 111 gfx::PluginWindowHandle window, |
115 int32 width, | 112 int32 width, |
116 int32 height, | 113 int32 height, |
117 TransportDIB::Handle transport_dib) OVERRIDE; | 114 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; |
118 #elif defined(OS_WIN) | 121 #elif defined(OS_WIN) |
119 virtual void WillWmDestroy() OVERRIDE; | 122 virtual void WillWmDestroy() OVERRIDE; |
120 #endif | 123 #endif |
121 #if defined(OS_POSIX) || defined(USE_AURA) | 124 #if defined(OS_POSIX) || defined(USE_AURA) |
122 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} | 125 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} |
123 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; | 126 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; |
124 #endif | 127 #endif |
125 virtual void SetVisuallyDeemphasized(const SkColor* color, | 128 virtual void SetVisuallyDeemphasized(const SkColor* color, |
126 bool animate) OVERRIDE { } | 129 bool animate) OVERRIDE { } |
127 virtual void UnhandledWheelEvent( | 130 virtual void UnhandledWheelEvent( |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 MockRenderProcessHostFactory rph_factory_; | 334 MockRenderProcessHostFactory rph_factory_; |
332 TestRenderViewHostFactory rvh_factory_; | 335 TestRenderViewHostFactory rvh_factory_; |
333 | 336 |
334 private: | 337 private: |
335 scoped_ptr<TestTabContents> contents_; | 338 scoped_ptr<TestTabContents> contents_; |
336 | 339 |
337 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 340 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
338 }; | 341 }; |
339 | 342 |
340 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 343 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |