| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 void ShowInternal(); | 277 void ShowInternal(); |
| 278 void HideInternal(); | 278 void HideInternal(); |
| 279 void AttachLayers(); | 279 void AttachLayers(); |
| 280 void RemoveLayers(); | 280 void RemoveLayers(); |
| 281 | 281 |
| 282 void UpdateBackgroundColor(SkColor color); | 282 void UpdateBackgroundColor(SkColor color); |
| 283 | 283 |
| 284 // Called after async screenshot task completes. Scales and crops the result | 284 // Called after async screenshot task completes. Scales and crops the result |
| 285 // of the copy. | 285 // of the copy. |
| 286 static void PrepareTextureCopyOutputResult( | 286 static void PrepareTextureCopyOutputResult( |
| 287 base::WeakPtr<RenderWidgetHostViewAndroid> rwhva, |
| 287 const gfx::Size& dst_size_in_pixel, | 288 const gfx::Size& dst_size_in_pixel, |
| 288 SkColorType color_type, | 289 SkColorType color_type, |
| 289 const base::TimeTicks& start_time, | 290 const base::TimeTicks& start_time, |
| 290 const ReadbackRequestCallback& callback, | 291 const ReadbackRequestCallback& callback, |
| 291 std::unique_ptr<cc::CopyOutputResult> result); | 292 std::unique_ptr<cc::CopyOutputResult> result); |
| 292 | 293 |
| 293 // DevTools ScreenCast support for Android WebView. | 294 // DevTools ScreenCast support for Android WebView. |
| 294 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, | 295 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, |
| 295 const gfx::Size& dst_size_in_pixel, | 296 const gfx::Size& dst_size_in_pixel, |
| 296 const ReadbackRequestCallback& callback, | 297 const ReadbackRequestCallback& callback, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 gfx::Vector2dF last_scroll_offset_; | 407 gfx::Vector2dF last_scroll_offset_; |
| 407 | 408 |
| 408 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 409 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 409 | 410 |
| 410 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 411 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 411 }; | 412 }; |
| 412 | 413 |
| 413 } // namespace content | 414 } // namespace content |
| 414 | 415 |
| 415 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 416 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |