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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, | 325 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, |
326 bool is_transparent); | 326 bool is_transparent); |
327 | 327 |
328 void ShowInternal(); | 328 void ShowInternal(); |
329 void HideInternal(); | 329 void HideInternal(); |
330 void AttachLayers(); | 330 void AttachLayers(); |
331 void RemoveLayers(); | 331 void RemoveLayers(); |
332 | 332 |
333 void UpdateBackgroundColor(SkColor color); | 333 void UpdateBackgroundColor(SkColor color); |
334 | 334 |
| 335 void EvictFrameIfNecessary(); |
| 336 |
335 // DevTools ScreenCast support for Android WebView. | 337 // DevTools ScreenCast support for Android WebView. |
336 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, | 338 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, |
337 const gfx::Size& dst_size_in_pixel, | 339 const gfx::Size& dst_size_in_pixel, |
338 const ReadbackRequestCallback& callback, | 340 const ReadbackRequestCallback& callback, |
339 const SkColorType color_type); | 341 const SkColorType color_type); |
340 | 342 |
341 void DestroyDelegatedContent(); | 343 void DestroyDelegatedContent(); |
342 void OnLostResources(); | 344 void OnLostResources(); |
343 | 345 |
344 enum BeginFrameRequestType { | 346 enum BeginFrameRequestType { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 MouseWheelPhaseHandler mouse_wheel_phase_handler_; | 465 MouseWheelPhaseHandler mouse_wheel_phase_handler_; |
464 | 466 |
465 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 467 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
466 | 468 |
467 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 469 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
468 }; | 470 }; |
469 | 471 |
470 } // namespace content | 472 } // namespace content |
471 | 473 |
472 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 474 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |