| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 virtual void Destroy() OVERRIDE {} | 95 virtual void Destroy() OVERRIDE {} |
| 96 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} | 96 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} |
| 97 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 97 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
| 98 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 98 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| 99 virtual void AcceleratedSurfaceBuffersSwapped( | 99 virtual void AcceleratedSurfaceBuffersSwapped( |
| 100 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 100 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 101 int gpu_host_id) OVERRIDE; | 101 int gpu_host_id) OVERRIDE; |
| 102 virtual void AcceleratedSurfacePostSubBuffer( | 102 virtual void AcceleratedSurfacePostSubBuffer( |
| 103 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 103 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 104 int gpu_host_id) OVERRIDE; | 104 int gpu_host_id) OVERRIDE; |
| 105 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 105 #if defined(OS_MACOSX) | 106 #if defined(OS_MACOSX) |
| 106 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} | 107 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE {} |
| 107 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; | 108 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; |
| 108 virtual void SetActive(bool active) OVERRIDE; | 109 virtual void SetActive(bool active) OVERRIDE; |
| 109 virtual void SetWindowVisibility(bool visible) OVERRIDE {} | 110 virtual void SetWindowVisibility(bool visible) OVERRIDE {} |
| 110 virtual void WindowFrameChanged() OVERRIDE {} | 111 virtual void WindowFrameChanged() OVERRIDE {} |
| 111 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; | 112 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; |
| 112 virtual void StartPluginIme() OVERRIDE; | 113 virtual void StartPluginIme() OVERRIDE; |
| 113 virtual bool PostProcessEventForPluginIme( | 114 virtual bool PostProcessEventForPluginIme( |
| 114 const NativeWebKeyboardEvent& event) OVERRIDE; | 115 const NativeWebKeyboardEvent& event) OVERRIDE; |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 MockRenderProcessHostFactory rph_factory_; | 344 MockRenderProcessHostFactory rph_factory_; |
| 344 TestRenderViewHostFactory rvh_factory_; | 345 TestRenderViewHostFactory rvh_factory_; |
| 345 | 346 |
| 346 private: | 347 private: |
| 347 scoped_ptr<TestTabContents> contents_; | 348 scoped_ptr<TestTabContents> contents_; |
| 348 | 349 |
| 349 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 350 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 350 }; | 351 }; |
| 351 | 352 |
| 352 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 353 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |