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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void SetTooltipText(const base::string16& tooltip_text) override {} | 104 void SetTooltipText(const base::string16& tooltip_text) override {} |
105 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 105 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
106 gfx::Rect GetBoundsInRootWindow() override; | 106 gfx::Rect GetBoundsInRootWindow() override; |
107 bool LockMouse() override; | 107 bool LockMouse() override; |
108 void UnlockMouse() override; | 108 void UnlockMouse() override; |
109 cc::FrameSinkId GetFrameSinkId() override; | 109 cc::FrameSinkId GetFrameSinkId() override; |
110 | 110 |
111 bool is_showing() const { return is_showing_; } | 111 bool is_showing() const { return is_showing_; } |
112 bool is_occluded() const { return is_occluded_; } | 112 bool is_occluded() const { return is_occluded_; } |
113 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } | 113 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } |
| 114 void reset_did_swap_compositor_frame() { did_swap_compositor_frame_ = false; } |
114 | 115 |
115 protected: | 116 protected: |
116 RenderWidgetHostImpl* rwh_; | 117 RenderWidgetHostImpl* rwh_; |
117 cc::FrameSinkId frame_sink_id_; | 118 cc::FrameSinkId frame_sink_id_; |
118 | 119 |
119 private: | 120 private: |
120 bool is_showing_; | 121 bool is_showing_; |
121 bool is_occluded_; | 122 bool is_occluded_; |
122 bool did_swap_compositor_frame_; | 123 bool did_swap_compositor_frame_; |
123 ui::DummyTextInputClient text_input_client_; | 124 ui::DummyTextInputClient text_input_client_; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 private: | 292 private: |
292 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> | 293 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> |
293 ScopedSetSupportedScaleFactors; | 294 ScopedSetSupportedScaleFactors; |
294 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 295 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
295 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 296 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
296 }; | 297 }; |
297 | 298 |
298 } // namespace content | 299 } // namespace content |
299 | 300 |
300 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 301 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |