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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 const TextSurroundingSelectionCallback& callback); | 257 const TextSurroundingSelectionCallback& callback); |
258 | 258 |
259 static void OnContextLost(); | 259 static void OnContextLost(); |
260 | 260 |
261 private: | 261 private: |
262 void RunAckCallbacks(cc::SurfaceDrawStatus status); | 262 void RunAckCallbacks(cc::SurfaceDrawStatus status); |
263 | 263 |
264 void DestroyDelegatedContent(); | 264 void DestroyDelegatedContent(); |
265 void CheckOutputSurfaceChanged(uint32_t output_surface_id); | 265 void CheckOutputSurfaceChanged(uint32_t output_surface_id); |
266 void SubmitCompositorFrame(cc::CompositorFrame frame_data); | 266 void SubmitCompositorFrame(cc::CompositorFrame frame_data); |
267 void SendDelegatedFrameAck(uint32_t output_surface_id); | 267 void SendReclaimCompositorResources(uint32_t output_surface_id, |
268 void SendReturnedDelegatedResources(uint32_t output_surface_id); | 268 bool is_swap_ack); |
269 | 269 |
270 void OnFrameMetadataUpdated( | 270 void OnFrameMetadataUpdated( |
271 const cc::CompositorFrameMetadata& frame_metadata); | 271 const cc::CompositorFrameMetadata& frame_metadata); |
272 | 272 |
273 void ShowInternal(); | 273 void ShowInternal(); |
274 void HideInternal(); | 274 void HideInternal(); |
275 void AttachLayers(); | 275 void AttachLayers(); |
276 void RemoveLayers(); | 276 void RemoveLayers(); |
277 | 277 |
278 void UpdateBackgroundColor(SkColor color); | 278 void UpdateBackgroundColor(SkColor color); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 gfx::Vector2dF last_scroll_offset_; | 401 gfx::Vector2dF last_scroll_offset_; |
402 | 402 |
403 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 403 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
404 | 404 |
405 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 405 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
406 }; | 406 }; |
407 | 407 |
408 } // namespace content | 408 } // namespace content |
409 | 409 |
410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |