| 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_TEST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const ReadbackRequestCallback& callback, | 110 const ReadbackRequestCallback& callback, |
| 111 const SkColorType preferred_color_type) override; | 111 const SkColorType preferred_color_type) override; |
| 112 void CopyFromCompositingSurfaceToVideoFrame( | 112 void CopyFromCompositingSurfaceToVideoFrame( |
| 113 const gfx::Rect& src_subrect, | 113 const gfx::Rect& src_subrect, |
| 114 const scoped_refptr<media::VideoFrame>& target, | 114 const scoped_refptr<media::VideoFrame>& target, |
| 115 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 115 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 116 bool CanCopyToVideoFrame() const override; | 116 bool CanCopyToVideoFrame() const override; |
| 117 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 117 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 118 void LockCompositingSurface() override {} | 118 void LockCompositingSurface() override {} |
| 119 void UnlockCompositingSurface() override {} | 119 void UnlockCompositingSurface() override {} |
| 120 void GetScreenInfo(blink::WebScreenInfo* results) override {} | |
| 121 gfx::Rect GetBoundsInRootWindow() override; | 120 gfx::Rect GetBoundsInRootWindow() override; |
| 122 bool LockMouse() override; | 121 bool LockMouse() override; |
| 123 void UnlockMouse() override; | 122 void UnlockMouse() override; |
| 124 uint32_t GetSurfaceClientId() override; | 123 uint32_t GetSurfaceClientId() override; |
| 125 | 124 |
| 126 bool is_showing() const { return is_showing_; } | 125 bool is_showing() const { return is_showing_; } |
| 127 bool is_occluded() const { return is_occluded_; } | 126 bool is_occluded() const { return is_occluded_; } |
| 128 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } | 127 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } |
| 129 | 128 |
| 130 protected: | 129 protected: |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 private: | 300 private: |
| 302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> | 301 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 303 ScopedSetSupportedScaleFactors; | 302 ScopedSetSupportedScaleFactors; |
| 304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 303 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
| 305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 304 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 306 }; | 305 }; |
| 307 | 306 |
| 308 } // namespace content | 307 } // namespace content |
| 309 | 308 |
| 310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 309 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |