| OLD | NEW |
| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } | 104 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } |
| 105 virtual void Destroy() OVERRIDE {} | 105 virtual void Destroy() OVERRIDE {} |
| 106 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} | 106 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} |
| 107 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 107 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
| 108 virtual void CopyFromCompositingSurface( | 108 virtual void CopyFromCompositingSurface( |
| 109 const gfx::Rect& src_subrect, | 109 const gfx::Rect& src_subrect, |
| 110 const gfx::Size& dst_size, | 110 const gfx::Size& dst_size, |
| 111 const base::Callback<void(bool)>& callback, | 111 const base::Callback<void(bool)>& callback, |
| 112 skia::PlatformCanvas* output) OVERRIDE; | 112 skia::PlatformCanvas* output) OVERRIDE; |
| 113 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 113 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| 114 virtual void AcceleratedSurfaceBuffersSwapped( | |
| 115 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | |
| 116 int gpu_host_id) OVERRIDE; | |
| 117 virtual void AcceleratedSurfacePostSubBuffer( | |
| 118 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | |
| 119 int gpu_host_id) OVERRIDE; | |
| 120 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 114 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 121 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 115 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
| 122 #if defined(OS_MACOSX) | 116 #if defined(OS_MACOSX) |
| 123 virtual void AboutToWaitForBackingStoreMsg() OVERRIDE; | 117 virtual void AboutToWaitForBackingStoreMsg() OVERRIDE; |
| 124 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; | 118 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; |
| 125 virtual void StartPluginIme() OVERRIDE; | 119 virtual void StartPluginIme() OVERRIDE; |
| 126 virtual bool PostProcessEventForPluginIme( | 120 virtual bool PostProcessEventForPluginIme( |
| 127 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 121 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 128 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( | 122 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( |
| 129 bool opaque, | 123 bool opaque, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 148 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} | 142 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE {} |
| 149 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; | 143 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; |
| 150 #endif | 144 #endif |
| 151 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, | 145 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, |
| 152 bool processed) OVERRIDE { } | 146 bool processed) OVERRIDE { } |
| 153 virtual void SetHasHorizontalScrollbar( | 147 virtual void SetHasHorizontalScrollbar( |
| 154 bool has_horizontal_scrollbar) OVERRIDE { } | 148 bool has_horizontal_scrollbar) OVERRIDE { } |
| 155 virtual void SetScrollOffsetPinning( | 149 virtual void SetScrollOffsetPinning( |
| 156 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE { } | 150 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE { } |
| 157 | 151 |
| 158 #if defined(USE_AURA) | |
| 159 virtual void AcceleratedSurfaceNew( | |
| 160 int32 width, int32 height, uint64 surface_id) OVERRIDE { } | |
| 161 virtual void AcceleratedSurfaceRelease(uint64 surface_id) OVERRIDE { } | |
| 162 #endif | |
| 163 | |
| 164 #if defined(TOOLKIT_GTK) | 152 #if defined(TOOLKIT_GTK) |
| 165 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE { } | 153 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) OVERRIDE { } |
| 166 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE { } | 154 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) OVERRIDE { } |
| 167 #endif // defined(TOOLKIT_GTK) | 155 #endif // defined(TOOLKIT_GTK) |
| 168 | 156 |
| 169 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | |
| 170 | |
| 171 virtual bool LockMouse() OVERRIDE; | 157 virtual bool LockMouse() OVERRIDE; |
| 172 virtual void UnlockMouse() OVERRIDE; | 158 virtual void UnlockMouse() OVERRIDE; |
| 173 | 159 |
| 174 bool is_showing() const { return is_showing_; } | 160 bool is_showing() const { return is_showing_; } |
| 175 | 161 |
| 176 protected: | 162 protected: |
| 177 RenderWidgetHostImpl* rwh_; | 163 RenderWidgetHostImpl* rwh_; |
| 178 | 164 |
| 179 private: | 165 private: |
| 180 bool is_showing_; | 166 bool is_showing_; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 TestRenderViewHost* active_test_rvh(); | 325 TestRenderViewHost* active_test_rvh(); |
| 340 TestWebContents* contents(); | 326 TestWebContents* contents(); |
| 341 | 327 |
| 342 private: | 328 private: |
| 343 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 329 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 344 }; | 330 }; |
| 345 | 331 |
| 346 } // namespace content | 332 } // namespace content |
| 347 | 333 |
| 348 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 334 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |