| 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_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 void HideInternal(); | 264 void HideInternal(); |
| 265 void AttachLayers(); | 265 void AttachLayers(); |
| 266 void RemoveLayers(); | 266 void RemoveLayers(); |
| 267 | 267 |
| 268 void UpdateBackgroundColor(SkColor color); | 268 void UpdateBackgroundColor(SkColor color); |
| 269 | 269 |
| 270 // Called after async screenshot task completes. Scales and crops the result | 270 // Called after async screenshot task completes. Scales and crops the result |
| 271 // of the copy. | 271 // of the copy. |
| 272 static void PrepareTextureCopyOutputResult( | 272 static void PrepareTextureCopyOutputResult( |
| 273 base::WeakPtr<RenderWidgetHostViewAndroid> rwhva, | 273 base::WeakPtr<RenderWidgetHostViewAndroid> rwhva, |
| 274 scoped_refptr<cc::Layer> readback_layer, |
| 274 const gfx::Size& dst_size_in_pixel, | 275 const gfx::Size& dst_size_in_pixel, |
| 275 SkColorType color_type, | 276 SkColorType color_type, |
| 276 const base::TimeTicks& start_time, | 277 const base::TimeTicks& start_time, |
| 277 const ReadbackRequestCallback& callback, | 278 const ReadbackRequestCallback& callback, |
| 278 std::unique_ptr<cc::CopyOutputResult> result); | 279 std::unique_ptr<cc::CopyOutputResult> result); |
| 279 | 280 |
| 280 // DevTools ScreenCast support for Android WebView. | 281 // DevTools ScreenCast support for Android WebView. |
| 281 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, | 282 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, |
| 282 const gfx::Size& dst_size_in_pixel, | 283 const gfx::Size& dst_size_in_pixel, |
| 283 const ReadbackRequestCallback& callback, | 284 const ReadbackRequestCallback& callback, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 gfx::Vector2dF last_scroll_offset_; | 390 gfx::Vector2dF last_scroll_offset_; |
| 390 | 391 |
| 391 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 392 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 392 | 393 |
| 393 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 394 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 394 }; | 395 }; |
| 395 | 396 |
| 396 } // namespace content | 397 } // namespace content |
| 397 | 398 |
| 398 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |