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 #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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 skia::PlatformCanvas* output, | 105 skia::PlatformCanvas* output, |
106 base::Callback<void(bool)> callback) OVERRIDE; | 106 base::Callback<void(bool)> callback) OVERRIDE; |
107 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 107 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
108 virtual void AcceleratedSurfaceBuffersSwapped( | 108 virtual void AcceleratedSurfaceBuffersSwapped( |
109 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 109 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
110 int gpu_host_id) OVERRIDE; | 110 int gpu_host_id) OVERRIDE; |
111 virtual void AcceleratedSurfacePostSubBuffer( | 111 virtual void AcceleratedSurfacePostSubBuffer( |
112 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 112 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
113 int gpu_host_id) OVERRIDE; | 113 int gpu_host_id) OVERRIDE; |
114 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 114 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 115 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
115 #if defined(OS_MACOSX) | 116 #if defined(OS_MACOSX) |
116 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; | 117 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; |
117 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; | 118 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; |
118 virtual void StartPluginIme() OVERRIDE; | 119 virtual void StartPluginIme() OVERRIDE; |
119 virtual bool PostProcessEventForPluginIme( | 120 virtual bool PostProcessEventForPluginIme( |
120 const NativeWebKeyboardEvent& event) OVERRIDE; | 121 const NativeWebKeyboardEvent& event) OVERRIDE; |
121 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( | 122 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( |
122 bool opaque, | 123 bool opaque, |
123 bool root) OVERRIDE; | 124 bool root) OVERRIDE; |
124 virtual void DestroyFakePluginWindowHandle( | 125 virtual void DestroyFakePluginWindowHandle( |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 TestRenderViewHost* active_test_rvh(); | 313 TestRenderViewHost* active_test_rvh(); |
313 TestWebContents* contents(); | 314 TestWebContents* contents(); |
314 | 315 |
315 private: | 316 private: |
316 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 317 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
317 }; | 318 }; |
318 | 319 |
319 } // namespace content | 320 } // namespace content |
320 | 321 |
321 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 322 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |