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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 16 #include "cc/surfaces/frame_sink_id.h" |
16 #include "cc/surfaces/surface_id_allocator.h" | 17 #include "cc/surfaces/surface_id_allocator.h" |
17 #include "content/browser/renderer_host/render_view_host_impl.h" | 18 #include "content/browser/renderer_host/render_view_host_impl.h" |
18 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 19 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
19 #include "content/public/common/web_preferences.h" | 20 #include "content/public/common/web_preferences.h" |
20 #include "content/public/test/mock_render_process_host.h" | 21 #include "content/public/test/mock_render_process_host.h" |
21 #include "content/public/test/test_renderer_host.h" | 22 #include "content/public/test/test_renderer_host.h" |
22 #include "ui/base/ime/dummy_text_input_client.h" | 23 #include "ui/base/ime/dummy_text_input_client.h" |
23 #include "ui/base/layout.h" | 24 #include "ui/base/layout.h" |
24 #include "ui/base/page_transition_types.h" | 25 #include "ui/base/page_transition_types.h" |
25 #include "ui/gfx/geometry/vector2d_f.h" | 26 #include "ui/gfx/geometry/vector2d_f.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 bool LockMouse() override; | 123 bool LockMouse() override; |
123 void UnlockMouse() override; | 124 void UnlockMouse() override; |
124 cc::FrameSinkId GetFrameSinkId() override; | 125 cc::FrameSinkId GetFrameSinkId() override; |
125 | 126 |
126 bool is_showing() const { return is_showing_; } | 127 bool is_showing() const { return is_showing_; } |
127 bool is_occluded() const { return is_occluded_; } | 128 bool is_occluded() const { return is_occluded_; } |
128 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } | 129 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } |
129 | 130 |
130 protected: | 131 protected: |
131 RenderWidgetHostImpl* rwh_; | 132 RenderWidgetHostImpl* rwh_; |
| 133 cc::FrameSinkId frame_sink_id_; |
132 | 134 |
133 private: | 135 private: |
134 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 136 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
135 bool is_showing_; | 137 bool is_showing_; |
136 bool is_occluded_; | 138 bool is_occluded_; |
137 bool did_swap_compositor_frame_; | 139 bool did_swap_compositor_frame_; |
138 ui::DummyTextInputClient text_input_client_; | 140 ui::DummyTextInputClient text_input_client_; |
139 }; | 141 }; |
140 | 142 |
141 #if defined(COMPILER_MSVC) | 143 #if defined(COMPILER_MSVC) |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 private: | 303 private: |
302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> | 304 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> |
303 ScopedSetSupportedScaleFactors; | 305 ScopedSetSupportedScaleFactors; |
304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 306 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 307 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
306 }; | 308 }; |
307 | 309 |
308 } // namespace content | 310 } // namespace content |
309 | 311 |
310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 312 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |