| 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_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 #endif | 110 #endif |
| 111 virtual void DidUpdateBackingStore( | 111 virtual void DidUpdateBackingStore( |
| 112 const gfx::Rect& scroll_rect, | 112 const gfx::Rect& scroll_rect, |
| 113 const gfx::Vector2d& scroll_delta, | 113 const gfx::Vector2d& scroll_delta, |
| 114 const std::vector<gfx::Rect>& rects, | 114 const std::vector<gfx::Rect>& rects, |
| 115 const ui::LatencyInfo& latency_info) OVERRIDE {} | 115 const ui::LatencyInfo& latency_info) OVERRIDE {} |
| 116 virtual void RenderProcessGone(base::TerminationStatus status, | 116 virtual void RenderProcessGone(base::TerminationStatus status, |
| 117 int error_code) OVERRIDE; | 117 int error_code) OVERRIDE; |
| 118 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } | 118 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } |
| 119 virtual void Destroy() OVERRIDE; | 119 virtual void Destroy() OVERRIDE; |
| 120 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} | 120 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE {} |
| 121 virtual void SelectionBoundsChanged( | 121 virtual void SelectionBoundsChanged( |
| 122 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE {} | 122 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE {} |
| 123 virtual void ScrollOffsetChanged() OVERRIDE {} | 123 virtual void ScrollOffsetChanged() OVERRIDE {} |
| 124 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 124 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
| 125 virtual void CopyFromCompositingSurface( | 125 virtual void CopyFromCompositingSurface( |
| 126 const gfx::Rect& src_subrect, | 126 const gfx::Rect& src_subrect, |
| 127 const gfx::Size& dst_size, | 127 const gfx::Size& dst_size, |
| 128 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 128 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
| 129 virtual void CopyFromCompositingSurfaceToVideoFrame( | 129 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 130 const gfx::Rect& src_subrect, | 130 const gfx::Rect& src_subrect, |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // If set, navigations will appear to have cleared the history list in the | 305 // If set, navigations will appear to have cleared the history list in the |
| 306 // RenderView (ViewHostMsg_FrameNavigate_Params::history_list_was_cleared). | 306 // RenderView (ViewHostMsg_FrameNavigate_Params::history_list_was_cleared). |
| 307 // False by default. | 307 // False by default. |
| 308 void set_simulate_history_list_was_cleared(bool cleared); | 308 void set_simulate_history_list_was_cleared(bool cleared); |
| 309 | 309 |
| 310 // The opener route id passed to CreateRenderView(). | 310 // The opener route id passed to CreateRenderView(). |
| 311 int opener_route_id() const { return opener_route_id_; } | 311 int opener_route_id() const { return opener_route_id_; } |
| 312 | 312 |
| 313 // RenderViewHost overrides -------------------------------------------------- | 313 // RenderViewHost overrides -------------------------------------------------- |
| 314 | 314 |
| 315 virtual bool CreateRenderView(const string16& frame_name, | 315 virtual bool CreateRenderView(const base::string16& frame_name, |
| 316 int opener_route_id, | 316 int opener_route_id, |
| 317 int32 max_page_id) OVERRIDE; | 317 int32 max_page_id) OVERRIDE; |
| 318 virtual bool IsRenderViewLive() const OVERRIDE; | 318 virtual bool IsRenderViewLive() const OVERRIDE; |
| 319 | 319 |
| 320 private: | 320 private: |
| 321 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); | 321 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); |
| 322 | 322 |
| 323 void SendNavigateWithTransitionAndResponseCode(int page_id, | 323 void SendNavigateWithTransitionAndResponseCode(int page_id, |
| 324 const GURL& url, | 324 const GURL& url, |
| 325 PageTransition transition, | 325 PageTransition transition, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 private: | 376 private: |
| 377 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 377 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 378 ScopedSetSupportedScaleFactors; | 378 ScopedSetSupportedScaleFactors; |
| 379 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 379 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
| 380 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 380 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 381 }; | 381 }; |
| 382 | 382 |
| 383 } // namespace content | 383 } // namespace content |
| 384 | 384 |
| 385 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 385 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |