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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const gfx::Rect& src_subrect, | 114 const gfx::Rect& src_subrect, |
115 const scoped_refptr<media::VideoFrame>& target, | 115 const scoped_refptr<media::VideoFrame>& target, |
116 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 116 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
117 bool CanCopyToVideoFrame() const override; | 117 bool CanCopyToVideoFrame() const override; |
118 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 118 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
119 void LockCompositingSurface() override {} | 119 void LockCompositingSurface() override {} |
120 void UnlockCompositingSurface() override {} | 120 void UnlockCompositingSurface() override {} |
121 gfx::Rect GetBoundsInRootWindow() override; | 121 gfx::Rect GetBoundsInRootWindow() override; |
122 bool LockMouse() override; | 122 bool LockMouse() override; |
123 void UnlockMouse() override; | 123 void UnlockMouse() override; |
124 uint32_t GetSurfaceClientId() override; | 124 cc::FrameSinkId GetFrameSinkId() override; |
125 | 125 |
126 bool is_showing() const { return is_showing_; } | 126 bool is_showing() const { return is_showing_; } |
127 bool is_occluded() const { return is_occluded_; } | 127 bool is_occluded() const { return is_occluded_; } |
128 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } | 128 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } |
129 | 129 |
130 protected: | 130 protected: |
131 RenderWidgetHostImpl* rwh_; | 131 RenderWidgetHostImpl* rwh_; |
132 | 132 |
133 private: | 133 private: |
134 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 134 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 private: | 301 private: |
302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> | 302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> |
303 ScopedSetSupportedScaleFactors; | 303 ScopedSetSupportedScaleFactors; |
304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
306 }; | 306 }; |
307 | 307 |
308 } // namespace content | 308 } // namespace content |
309 | 309 |
310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |