| 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 <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 void SetTextSurroundingSelectionCallback( | 256 void SetTextSurroundingSelectionCallback( |
| 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 output_surface_id); | 265 void CheckOutputSurfaceChanged(uint32 output_surface_id); |
| 266 void SubmitFrame(scoped_ptr<cc::DelegatedFrameData> frame_data); | 266 void SubmitFrame(scoped_ptr<cc::CompositorFrame> frame_data); |
| 267 void SwapDelegatedFrame(uint32 output_surface_id, | 267 void SwapDelegatedFrame(uint32 output_surface_id, |
| 268 scoped_ptr<cc::DelegatedFrameData> frame_data); | 268 scoped_ptr<cc::CompositorFrame> frame_data); |
| 269 void SendDelegatedFrameAck(uint32 output_surface_id); | 269 void SendDelegatedFrameAck(uint32 output_surface_id); |
| 270 void SendReturnedDelegatedResources(uint32 output_surface_id); | 270 void SendReturnedDelegatedResources(uint32 output_surface_id); |
| 271 | 271 |
| 272 void OnFrameMetadataUpdated( | 272 void OnFrameMetadataUpdated( |
| 273 const cc::CompositorFrameMetadata& frame_metadata); | 273 const cc::CompositorFrameMetadata& frame_metadata); |
| 274 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); | 274 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); |
| 275 | 275 |
| 276 void ShowInternal(); | 276 void ShowInternal(); |
| 277 void HideInternal(bool hide_frontbuffer, bool stop_observing_root_window); | 277 void HideInternal(bool hide_frontbuffer, bool stop_observing_root_window); |
| 278 void AttachLayers(); | 278 void AttachLayers(); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 gfx::Vector2dF last_scroll_offset_; | 415 gfx::Vector2dF last_scroll_offset_; |
| 416 | 416 |
| 417 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 417 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 418 | 418 |
| 419 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 419 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 420 }; | 420 }; |
| 421 | 421 |
| 422 } // namespace content | 422 } // namespace content |
| 423 | 423 |
| 424 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 424 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |