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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual void DidUpdateBackingStore( | 82 virtual void DidUpdateBackingStore( |
83 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 83 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
84 const std::vector<gfx::Rect>& rects) OVERRIDE {} | 84 const std::vector<gfx::Rect>& rects) OVERRIDE {} |
85 virtual void RenderViewGone(base::TerminationStatus status, | 85 virtual void RenderViewGone(base::TerminationStatus status, |
86 int error_code) OVERRIDE; | 86 int error_code) OVERRIDE; |
87 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } | 87 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } |
88 virtual void Destroy() OVERRIDE {} | 88 virtual void Destroy() OVERRIDE {} |
89 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} | 89 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} |
90 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 90 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
91 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 91 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
92 virtual void AcceleratedSurfaceBuffersSwapped( | |
93 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | |
94 int gpu_host_id) OVERRIDE; | |
95 #if defined(OS_MACOSX) | 92 #if defined(OS_MACOSX) |
96 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} | 93 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} |
97 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; | 94 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; |
98 virtual void SetActive(bool active) OVERRIDE; | 95 virtual void SetActive(bool active) OVERRIDE; |
99 virtual void SetWindowVisibility(bool visible) OVERRIDE {} | 96 virtual void SetWindowVisibility(bool visible) OVERRIDE {} |
100 virtual void WindowFrameChanged() OVERRIDE {} | 97 virtual void WindowFrameChanged() OVERRIDE {} |
101 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; | 98 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; |
102 virtual void StartPluginIme() OVERRIDE; | 99 virtual void StartPluginIme() OVERRIDE; |
103 virtual bool PostProcessEventForPluginIme( | 100 virtual bool PostProcessEventForPluginIme( |
104 const NativeWebKeyboardEvent& event) OVERRIDE; | 101 const NativeWebKeyboardEvent& event) OVERRIDE; |
105 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( | 102 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( |
106 bool opaque, | 103 bool opaque, |
107 bool root) OVERRIDE; | 104 bool root) OVERRIDE; |
108 virtual void DestroyFakePluginWindowHandle( | 105 virtual void DestroyFakePluginWindowHandle( |
109 gfx::PluginWindowHandle window) OVERRIDE; | 106 gfx::PluginWindowHandle window) OVERRIDE; |
110 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 107 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
111 int32 width, | 108 int32 width, |
112 int32 height, | 109 int32 height, |
113 uint64 surface_id) OVERRIDE; | 110 uint64 surface_id) OVERRIDE; |
114 virtual void AcceleratedSurfaceSetTransportDIB( | 111 virtual void AcceleratedSurfaceSetTransportDIB( |
115 gfx::PluginWindowHandle window, | 112 gfx::PluginWindowHandle window, |
116 int32 width, | 113 int32 width, |
117 int32 height, | 114 int32 height, |
118 TransportDIB::Handle transport_dib) OVERRIDE; | 115 TransportDIB::Handle transport_dib) OVERRIDE; |
| 116 virtual void AcceleratedSurfaceBuffersSwapped( |
| 117 gfx::PluginWindowHandle window, |
| 118 uint64 surface_id, |
| 119 int renderer_id, |
| 120 int32 route_id, |
| 121 int gpu_host_id) OVERRIDE; |
119 #elif defined(OS_WIN) | 122 #elif defined(OS_WIN) |
120 virtual void WillWmDestroy() OVERRIDE; | 123 virtual void WillWmDestroy() OVERRIDE; |
121 #endif | 124 #endif |
122 #if defined(OS_POSIX) || defined(USE_AURA) | 125 #if defined(OS_POSIX) || defined(USE_AURA) |
123 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} | 126 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} |
124 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; | 127 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; |
125 #endif | 128 #endif |
126 virtual void SetVisuallyDeemphasized(const SkColor* color, | 129 virtual void SetVisuallyDeemphasized(const SkColor* color, |
127 bool animate) OVERRIDE { } | 130 bool animate) OVERRIDE { } |
128 virtual void UnhandledWheelEvent( | 131 virtual void UnhandledWheelEvent( |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 MockRenderProcessHostFactory rph_factory_; | 336 MockRenderProcessHostFactory rph_factory_; |
334 TestRenderViewHostFactory rvh_factory_; | 337 TestRenderViewHostFactory rvh_factory_; |
335 | 338 |
336 private: | 339 private: |
337 scoped_ptr<TestTabContents> contents_; | 340 scoped_ptr<TestTabContents> contents_; |
338 | 341 |
339 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 342 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
340 }; | 343 }; |
341 | 344 |
342 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 345 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |