| 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; } | |
| 115 | 114 |
| 116 protected: | 115 protected: |
| 117 RenderWidgetHostImpl* rwh_; | 116 RenderWidgetHostImpl* rwh_; |
| 118 cc::FrameSinkId frame_sink_id_; | 117 cc::FrameSinkId frame_sink_id_; |
| 119 | 118 |
| 120 private: | 119 private: |
| 121 bool is_showing_; | 120 bool is_showing_; |
| 122 bool is_occluded_; | 121 bool is_occluded_; |
| 123 bool did_swap_compositor_frame_; | 122 bool did_swap_compositor_frame_; |
| 124 ui::DummyTextInputClient text_input_client_; | 123 ui::DummyTextInputClient text_input_client_; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 private: | 291 private: |
| 293 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> | 292 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 294 ScopedSetSupportedScaleFactors; | 293 ScopedSetSupportedScaleFactors; |
| 295 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 294 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
| 296 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 295 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 297 }; | 296 }; |
| 298 | 297 |
| 299 } // namespace content | 298 } // namespace content |
| 300 | 299 |
| 301 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 300 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |