| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // without having side-effects. | 58 // without having side-effects. |
| 59 class TestRenderWidgetHostView : public RenderWidgetHostViewBase { | 59 class TestRenderWidgetHostView : public RenderWidgetHostViewBase { |
| 60 public: | 60 public: |
| 61 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh); | 61 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh); |
| 62 ~TestRenderWidgetHostView() override; | 62 ~TestRenderWidgetHostView() override; |
| 63 | 63 |
| 64 // RenderWidgetHostView implementation. | 64 // RenderWidgetHostView implementation. |
| 65 void InitAsChild(gfx::NativeView parent_view) override {} | 65 void InitAsChild(gfx::NativeView parent_view) override {} |
| 66 RenderWidgetHost* GetRenderWidgetHost() const override; | 66 RenderWidgetHost* GetRenderWidgetHost() const override; |
| 67 void SetSize(const gfx::Size& size) override {} | 67 void SetSize(const gfx::Size& size) override {} |
| 68 void SetBounds(const gfx::Rect& rect) override {} | |
| 69 gfx::Vector2dF GetLastScrollOffset() const override; | 68 gfx::Vector2dF GetLastScrollOffset() const override; |
| 70 gfx::NativeView GetNativeView() const override; | 69 gfx::NativeView GetNativeView() const override; |
| 71 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 70 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 72 ui::TextInputClient* GetTextInputClient() override; | 71 ui::TextInputClient* GetTextInputClient() override; |
| 73 bool HasFocus() const override; | 72 bool HasFocus() const override; |
| 74 bool IsSurfaceAvailableForCopy() const override; | 73 bool IsSurfaceAvailableForCopy() const override; |
| 75 void Show() override; | 74 void Show() override; |
| 76 void Hide() override; | 75 void Hide() override; |
| 77 bool IsShowing() override; | 76 bool IsShowing() override; |
| 78 void WasUnOccluded() override; | 77 void WasUnOccluded() override; |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 private: | 301 private: |
| 303 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> | 302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 304 ScopedSetSupportedScaleFactors; | 303 ScopedSetSupportedScaleFactors; |
| 305 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
| 306 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 307 }; | 306 }; |
| 308 | 307 |
| 309 } // namespace content | 308 } // namespace content |
| 310 | 309 |
| 311 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |