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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 bool HasFocus() const override; | 75 bool HasFocus() const override; |
76 bool IsSurfaceAvailableForCopy() const override; | 76 bool IsSurfaceAvailableForCopy() const override; |
77 void Show() override; | 77 void Show() override; |
78 void Hide() override; | 78 void Hide() override; |
79 bool IsShowing() override; | 79 bool IsShowing() override; |
80 void WasUnOccluded() override; | 80 void WasUnOccluded() override; |
81 void WasOccluded() override; | 81 void WasOccluded() override; |
82 gfx::Rect GetViewBounds() const override; | 82 gfx::Rect GetViewBounds() const override; |
83 #if defined(OS_MACOSX) | 83 #if defined(OS_MACOSX) |
84 void SetActive(bool active) override; | 84 void SetActive(bool active) override; |
85 void SetWindowVisibility(bool visible) override {} | |
86 void WindowFrameChanged() override {} | |
87 void ShowDefinitionForSelection() override {} | 85 void ShowDefinitionForSelection() override {} |
88 bool SupportsSpeech() const override; | 86 bool SupportsSpeech() const override; |
89 void SpeakSelection() override; | 87 void SpeakSelection() override; |
90 bool IsSpeaking() const override; | 88 bool IsSpeaking() const override; |
91 void StopSpeaking() override; | 89 void StopSpeaking() override; |
92 #endif // defined(OS_MACOSX) | 90 #endif // defined(OS_MACOSX) |
93 void OnSwapCompositorFrame(uint32_t output_surface_id, | 91 void OnSwapCompositorFrame(uint32_t output_surface_id, |
94 scoped_ptr<cc::CompositorFrame> frame) override; | 92 scoped_ptr<cc::CompositorFrame> frame) override; |
95 void ClearCompositorFrame() override {} | 93 void ClearCompositorFrame() override {} |
96 | 94 |
(...skipping 20 matching lines...) Expand all Loading... |
117 const gfx::Rect& src_subrect, | 115 const gfx::Rect& src_subrect, |
118 const gfx::Size& dst_size, | 116 const gfx::Size& dst_size, |
119 const ReadbackRequestCallback& callback, | 117 const ReadbackRequestCallback& callback, |
120 const SkColorType preferred_color_type) override; | 118 const SkColorType preferred_color_type) override; |
121 void CopyFromCompositingSurfaceToVideoFrame( | 119 void CopyFromCompositingSurfaceToVideoFrame( |
122 const gfx::Rect& src_subrect, | 120 const gfx::Rect& src_subrect, |
123 const scoped_refptr<media::VideoFrame>& target, | 121 const scoped_refptr<media::VideoFrame>& target, |
124 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 122 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
125 bool CanCopyToVideoFrame() const override; | 123 bool CanCopyToVideoFrame() const override; |
126 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 124 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
127 #if defined(OS_MACOSX) | |
128 bool PostProcessEventForPluginIme( | |
129 const NativeWebKeyboardEvent& event) override; | |
130 #endif | |
131 void LockCompositingSurface() override {} | 125 void LockCompositingSurface() override {} |
132 void UnlockCompositingSurface() override {} | 126 void UnlockCompositingSurface() override {} |
133 void GetScreenInfo(blink::WebScreenInfo* results) override {} | 127 void GetScreenInfo(blink::WebScreenInfo* results) override {} |
134 bool GetScreenColorProfile(std::vector<char>* color_profile) override; | 128 bool GetScreenColorProfile(std::vector<char>* color_profile) override; |
135 gfx::Rect GetBoundsInRootWindow() override; | 129 gfx::Rect GetBoundsInRootWindow() override; |
136 bool LockMouse() override; | 130 bool LockMouse() override; |
137 void UnlockMouse() override; | 131 void UnlockMouse() override; |
138 | 132 |
139 bool is_showing() const { return is_showing_; } | 133 bool is_showing() const { return is_showing_; } |
140 bool is_occluded() const { return is_occluded_; } | 134 bool is_occluded() const { return is_occluded_; } |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 private: | 307 private: |
314 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 308 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
315 ScopedSetSupportedScaleFactors; | 309 ScopedSetSupportedScaleFactors; |
316 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 310 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
317 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 311 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
318 }; | 312 }; |
319 | 313 |
320 } // namespace content | 314 } // namespace content |
321 | 315 |
322 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 316 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |