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