| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 void UnusedResourcesAreAvailable() override; | 168 void UnusedResourcesAreAvailable() override; |
| 169 | 169 |
| 170 // cc::SurfaceFactoryClient implementation. | 170 // cc::SurfaceFactoryClient implementation. |
| 171 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 171 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 172 | 172 |
| 173 // ui::GestureProviderClient implementation. | 173 // ui::GestureProviderClient implementation. |
| 174 void OnGestureEvent(const ui::GestureEventData& gesture) override; | 174 void OnGestureEvent(const ui::GestureEventData& gesture) override; |
| 175 | 175 |
| 176 // ui::WindowAndroidObserver implementation. | 176 // ui::WindowAndroidObserver implementation. |
| 177 void OnCompositingDidCommit() override; | 177 void OnCompositingDidCommit() override; |
| 178 void OnRootWindowVisibilityChanged(bool visible) override; |
| 178 void OnAttachCompositor() override; | 179 void OnAttachCompositor() override; |
| 179 void OnDetachCompositor() override; | 180 void OnDetachCompositor() override; |
| 180 void OnVSync(base::TimeTicks frame_time, | 181 void OnVSync(base::TimeTicks frame_time, |
| 181 base::TimeDelta vsync_period) override; | 182 base::TimeDelta vsync_period) override; |
| 182 void OnAnimate(base::TimeTicks begin_frame_time) override; | 183 void OnAnimate(base::TimeTicks begin_frame_time) override; |
| 184 void OnActivityPaused() override; |
| 185 void OnActivityResumed() override; |
| 183 | 186 |
| 184 // DelegatedFrameEvictor implementation | 187 // DelegatedFrameEvictor implementation |
| 185 void EvictDelegatedFrame() override; | 188 void EvictDelegatedFrame() override; |
| 186 | 189 |
| 187 // StylusTextSelectorClient implementation. | 190 // StylusTextSelectorClient implementation. |
| 188 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; | 191 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; |
| 189 void OnStylusSelectUpdate(float x, float y) override; | 192 void OnStylusSelectUpdate(float x, float y) override; |
| 190 void OnStylusSelectEnd() override; | 193 void OnStylusSelectEnd() override; |
| 191 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override; | 194 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override; |
| 192 | 195 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 void SubmitFrame(scoped_ptr<cc::DelegatedFrameData> frame_data); | 265 void SubmitFrame(scoped_ptr<cc::DelegatedFrameData> frame_data); |
| 263 void SwapDelegatedFrame(uint32 output_surface_id, | 266 void SwapDelegatedFrame(uint32 output_surface_id, |
| 264 scoped_ptr<cc::DelegatedFrameData> frame_data); | 267 scoped_ptr<cc::DelegatedFrameData> frame_data); |
| 265 void SendDelegatedFrameAck(uint32 output_surface_id); | 268 void SendDelegatedFrameAck(uint32 output_surface_id); |
| 266 void SendReturnedDelegatedResources(uint32 output_surface_id); | 269 void SendReturnedDelegatedResources(uint32 output_surface_id); |
| 267 | 270 |
| 268 void OnFrameMetadataUpdated( | 271 void OnFrameMetadataUpdated( |
| 269 const cc::CompositorFrameMetadata& frame_metadata); | 272 const cc::CompositorFrameMetadata& frame_metadata); |
| 270 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); | 273 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); |
| 271 | 274 |
| 275 void ShowInternal(); |
| 276 void HideInternal(bool hide_frontbuffer, bool stop_observing_root_window); |
| 272 void AttachLayers(); | 277 void AttachLayers(); |
| 273 void RemoveLayers(); | 278 void RemoveLayers(); |
| 274 | 279 |
| 275 // Called after async screenshot task completes. Scales and crops the result | 280 // Called after async screenshot task completes. Scales and crops the result |
| 276 // of the copy. | 281 // of the copy. |
| 277 static void PrepareTextureCopyOutputResult( | 282 static void PrepareTextureCopyOutputResult( |
| 278 const gfx::Size& dst_size_in_pixel, | 283 const gfx::Size& dst_size_in_pixel, |
| 279 SkColorType color_type, | 284 SkColorType color_type, |
| 280 const base::TimeTicks& start_time, | 285 const base::TimeTicks& start_time, |
| 281 ReadbackRequestCallback& callback, | 286 ReadbackRequestCallback& callback, |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 gfx::Vector2dF last_scroll_offset_; | 413 gfx::Vector2dF last_scroll_offset_; |
| 409 | 414 |
| 410 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 415 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 411 | 416 |
| 412 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 417 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 413 }; | 418 }; |
| 414 | 419 |
| 415 } // namespace content | 420 } // namespace content |
| 416 | 421 |
| 417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 422 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |