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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void ImeCancelComposition() override {} | 104 void ImeCancelComposition() override {} |
105 void ImeCompositionRangeChanged( | 105 void ImeCompositionRangeChanged( |
106 const gfx::Range& range, | 106 const gfx::Range& range, |
107 const std::vector<gfx::Rect>& character_bounds) override {} | 107 const std::vector<gfx::Rect>& character_bounds) override {} |
108 void RenderProcessGone(base::TerminationStatus status, | 108 void RenderProcessGone(base::TerminationStatus status, |
109 int error_code) override; | 109 int error_code) override; |
110 void Destroy() override; | 110 void Destroy() override; |
111 void SetTooltipText(const base::string16& tooltip_text) override {} | 111 void SetTooltipText(const base::string16& tooltip_text) override {} |
112 void SelectionBoundsChanged( | 112 void SelectionBoundsChanged( |
113 const ViewHostMsg_SelectionBounds_Params& params) override {} | 113 const ViewHostMsg_SelectionBounds_Params& params) override {} |
114 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, | 114 void CopyFromCompositingSurface( |
115 const gfx::Size& dst_size, | 115 const gfx::Rect& src_subrect, |
116 ReadbackRequestCallback& callback, | 116 const gfx::Size& dst_size, |
117 const SkColorType color_type) override; | 117 ReadbackRequestCallback& callback, |
| 118 const SkColorType preferred_color_type) override; |
118 void CopyFromCompositingSurfaceToVideoFrame( | 119 void CopyFromCompositingSurfaceToVideoFrame( |
119 const gfx::Rect& src_subrect, | 120 const gfx::Rect& src_subrect, |
120 const scoped_refptr<media::VideoFrame>& target, | 121 const scoped_refptr<media::VideoFrame>& target, |
121 const base::Callback<void(bool)>& callback) override; | 122 const base::Callback<void(bool)>& callback) override; |
122 bool CanCopyToVideoFrame() const override; | 123 bool CanCopyToVideoFrame() const override; |
123 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 124 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
124 #if defined(OS_MACOSX) | 125 #if defined(OS_MACOSX) |
125 bool PostProcessEventForPluginIme( | 126 bool PostProcessEventForPluginIme( |
126 const NativeWebKeyboardEvent& event) override; | 127 const NativeWebKeyboardEvent& event) override; |
127 #endif | 128 #endif |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 private: | 314 private: |
314 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 315 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
315 ScopedSetSupportedScaleFactors; | 316 ScopedSetSupportedScaleFactors; |
316 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 317 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
317 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 318 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
318 }; | 319 }; |
319 | 320 |
320 } // namespace content | 321 } // namespace content |
321 | 322 |
322 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 323 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |