| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 gfx::Vector2dF GetLastScrollOffset() const override; | 62 gfx::Vector2dF GetLastScrollOffset() const override; |
| 63 gfx::NativeView GetNativeView() const override; | 63 gfx::NativeView GetNativeView() const override; |
| 64 gfx::NativeViewId GetNativeViewId() const override; | 64 gfx::NativeViewId GetNativeViewId() const override; |
| 65 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 65 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 66 ui::TextInputClient* GetTextInputClient() override; | 66 ui::TextInputClient* GetTextInputClient() override; |
| 67 bool HasFocus() const override; | 67 bool HasFocus() const override; |
| 68 bool IsSurfaceAvailableForCopy() const override; | 68 bool IsSurfaceAvailableForCopy() const override; |
| 69 void Show() override; | 69 void Show() override; |
| 70 void Hide() override; | 70 void Hide() override; |
| 71 bool IsShowing() override; | 71 bool IsShowing() override; |
| 72 void WasUnOccluded() override; |
| 73 void WasOccluded() override; |
| 72 gfx::Rect GetViewBounds() const override; | 74 gfx::Rect GetViewBounds() const override; |
| 73 #if defined(OS_MACOSX) | 75 #if defined(OS_MACOSX) |
| 74 void SetActive(bool active) override; | 76 void SetActive(bool active) override; |
| 75 void SetWindowVisibility(bool visible) override {} | 77 void SetWindowVisibility(bool visible) override {} |
| 76 void WindowFrameChanged() override {} | 78 void WindowFrameChanged() override {} |
| 77 void ShowDefinitionForSelection() override {} | 79 void ShowDefinitionForSelection() override {} |
| 78 bool SupportsSpeech() const override; | 80 bool SupportsSpeech() const override; |
| 79 void SpeakSelection() override; | 81 void SpeakSelection() override; |
| 80 bool IsSpeaking() const override; | 82 bool IsSpeaking() const override; |
| 81 void StopSpeaking() override; | 83 void StopSpeaking() override; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 gfx::GLSurfaceHandle GetCompositingSurface() override; | 132 gfx::GLSurfaceHandle GetCompositingSurface() override; |
| 131 bool LockMouse() override; | 133 bool LockMouse() override; |
| 132 void UnlockMouse() override; | 134 void UnlockMouse() override; |
| 133 #if defined(OS_WIN) | 135 #if defined(OS_WIN) |
| 134 virtual void SetParentNativeViewAccessible( | 136 virtual void SetParentNativeViewAccessible( |
| 135 gfx::NativeViewAccessible accessible_parent) override; | 137 gfx::NativeViewAccessible accessible_parent) override; |
| 136 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const override; | 138 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const override; |
| 137 #endif | 139 #endif |
| 138 | 140 |
| 139 bool is_showing() const { return is_showing_; } | 141 bool is_showing() const { return is_showing_; } |
| 142 bool is_occluded() const { return is_occluded_; } |
| 140 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } | 143 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } |
| 141 | 144 |
| 142 protected: | 145 protected: |
| 143 RenderWidgetHostImpl* rwh_; | 146 RenderWidgetHostImpl* rwh_; |
| 144 | 147 |
| 145 private: | 148 private: |
| 146 bool is_showing_; | 149 bool is_showing_; |
| 150 bool is_occluded_; |
| 147 bool did_swap_compositor_frame_; | 151 bool did_swap_compositor_frame_; |
| 148 ui::DummyTextInputClient text_input_client_; | 152 ui::DummyTextInputClient text_input_client_; |
| 149 }; | 153 }; |
| 150 | 154 |
| 151 #if defined(COMPILER_MSVC) | 155 #if defined(COMPILER_MSVC) |
| 152 // See comment for same warning on RenderViewHostImpl. | 156 // See comment for same warning on RenderViewHostImpl. |
| 153 #pragma warning(push) | 157 #pragma warning(push) |
| 154 #pragma warning(disable: 4250) | 158 #pragma warning(disable: 4250) |
| 155 #endif | 159 #endif |
| 156 | 160 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 private: | 319 private: |
| 316 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 320 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 317 ScopedSetSupportedScaleFactors; | 321 ScopedSetSupportedScaleFactors; |
| 318 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 322 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
| 319 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 323 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 320 }; | 324 }; |
| 321 | 325 |
| 322 } // namespace content | 326 } // namespace content |
| 323 | 327 |
| 324 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 328 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |