| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 const SkColorType preferred_color_type) override; | 119 const SkColorType preferred_color_type) override; |
| 120 void CopyFromCompositingSurfaceToVideoFrame( | 120 void CopyFromCompositingSurfaceToVideoFrame( |
| 121 const gfx::Rect& src_subrect, | 121 const gfx::Rect& src_subrect, |
| 122 const scoped_refptr<media::VideoFrame>& target, | 122 const scoped_refptr<media::VideoFrame>& target, |
| 123 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 123 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 124 bool CanCopyToVideoFrame() const override; | 124 bool CanCopyToVideoFrame() const override; |
| 125 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 125 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 126 void LockCompositingSurface() override {} | 126 void LockCompositingSurface() override {} |
| 127 void UnlockCompositingSurface() override {} | 127 void UnlockCompositingSurface() override {} |
| 128 void GetScreenInfo(blink::WebScreenInfo* results) override {} | 128 void GetScreenInfo(blink::WebScreenInfo* results) override {} |
| 129 bool GetScreenColorProfile(std::vector<char>* color_profile) override; | |
| 130 gfx::Rect GetBoundsInRootWindow() override; | 129 gfx::Rect GetBoundsInRootWindow() override; |
| 131 bool LockMouse() override; | 130 bool LockMouse() override; |
| 132 void UnlockMouse() override; | 131 void UnlockMouse() override; |
| 133 uint32_t GetSurfaceIdNamespace() override; | 132 uint32_t GetSurfaceIdNamespace() override; |
| 134 | 133 |
| 135 bool is_showing() const { return is_showing_; } | 134 bool is_showing() const { return is_showing_; } |
| 136 bool is_occluded() const { return is_occluded_; } | 135 bool is_occluded() const { return is_occluded_; } |
| 137 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } | 136 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } |
| 138 | 137 |
| 139 protected: | 138 protected: |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 private: | 309 private: |
| 311 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> | 310 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 312 ScopedSetSupportedScaleFactors; | 311 ScopedSetSupportedScaleFactors; |
| 313 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 312 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
| 314 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 313 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 315 }; | 314 }; |
| 316 | 315 |
| 317 } // namespace content | 316 } // namespace content |
| 318 | 317 |
| 319 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 318 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |