| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 void RemoveLayers(); | 282 void RemoveLayers(); |
| 283 | 283 |
| 284 void UpdateBackgroundColor(SkColor color); | 284 void UpdateBackgroundColor(SkColor color); |
| 285 | 285 |
| 286 // Called after async screenshot task completes. Scales and crops the result | 286 // Called after async screenshot task completes. Scales and crops the result |
| 287 // of the copy. | 287 // of the copy. |
| 288 static void PrepareTextureCopyOutputResult( | 288 static void PrepareTextureCopyOutputResult( |
| 289 const gfx::Size& dst_size_in_pixel, | 289 const gfx::Size& dst_size_in_pixel, |
| 290 SkColorType color_type, | 290 SkColorType color_type, |
| 291 const base::TimeTicks& start_time, | 291 const base::TimeTicks& start_time, |
| 292 scoped_refptr<cc::Layer> layer, |
| 292 const ReadbackRequestCallback& callback, | 293 const ReadbackRequestCallback& callback, |
| 293 scoped_ptr<cc::CopyOutputResult> result); | 294 scoped_ptr<cc::CopyOutputResult> result); |
| 294 | 295 |
| 295 // DevTools ScreenCast support for Android WebView. | 296 // DevTools ScreenCast support for Android WebView. |
| 296 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, | 297 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, |
| 297 const gfx::Size& dst_size_in_pixel, | 298 const gfx::Size& dst_size_in_pixel, |
| 298 const ReadbackRequestCallback& callback, | 299 const ReadbackRequestCallback& callback, |
| 299 const SkColorType color_type); | 300 const SkColorType color_type); |
| 300 | 301 |
| 301 // If we have locks on a frame during a ContentViewCore swap or a context | 302 // If we have locks on a frame during a ContentViewCore swap or a context |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 gfx::Vector2dF last_scroll_offset_; | 409 gfx::Vector2dF last_scroll_offset_; |
| 409 | 410 |
| 410 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 411 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 411 | 412 |
| 412 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 413 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 413 }; | 414 }; |
| 414 | 415 |
| 415 } // namespace content | 416 } // namespace content |
| 416 | 417 |
| 417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |