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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
186 void UnusedResourcesAreAvailable() override; | 186 void UnusedResourcesAreAvailable() override; |
187 | 187 |
188 // cc::SurfaceFactoryClient implementation. | 188 // cc::SurfaceFactoryClient implementation. |
189 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 189 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
190 | 190 |
191 // ui::GestureProviderClient implementation. | 191 // ui::GestureProviderClient implementation. |
192 void OnGestureEvent(const ui::GestureEventData& gesture) override; | 192 void OnGestureEvent(const ui::GestureEventData& gesture) override; |
193 | 193 |
194 // ui::WindowAndroidObserver implementation. | 194 // ui::WindowAndroidObserver implementation. |
195 void OnCompositingDidCommit() override; | 195 void OnCompositingDidCommit() override; |
196 void OnVisibilityChanged(bool visible) override; | |
jdduke (slow)
2015/03/18 20:16:50
OnVisibilityChanged is a little generic for me...
no sievers
2015/03/18 21:04:48
Maybe not 'Surface' since it's a bit overloaded al
| |
196 void OnAttachCompositor() override; | 197 void OnAttachCompositor() override; |
197 void OnDetachCompositor() override; | 198 void OnDetachCompositor() override; |
198 void OnVSync(base::TimeTicks frame_time, | 199 void OnVSync(base::TimeTicks frame_time, |
199 base::TimeDelta vsync_period) override; | 200 base::TimeDelta vsync_period) override; |
200 void OnAnimate(base::TimeTicks begin_frame_time) override; | 201 void OnAnimate(base::TimeTicks begin_frame_time) override; |
202 void OnActivityPaused() override; | |
203 void OnActivityResumed() override; | |
201 | 204 |
202 // DelegatedFrameEvictor implementation | 205 // DelegatedFrameEvictor implementation |
203 void EvictDelegatedFrame() override; | 206 void EvictDelegatedFrame() override; |
204 | 207 |
205 SkColorType PreferredReadbackFormat() override; | 208 SkColorType PreferredReadbackFormat() override; |
206 | 209 |
207 // StylusTextSelectorClient implementation. | 210 // StylusTextSelectorClient implementation. |
208 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; | 211 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; |
209 void OnStylusSelectUpdate(float x, float y) override; | 212 void OnStylusSelectUpdate(float x, float y) override; |
210 void OnStylusSelectEnd() override; | 213 void OnStylusSelectEnd() override; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 void SubmitFrame(scoped_ptr<cc::DelegatedFrameData> frame_data); | 286 void SubmitFrame(scoped_ptr<cc::DelegatedFrameData> frame_data); |
284 void SwapDelegatedFrame(uint32 output_surface_id, | 287 void SwapDelegatedFrame(uint32 output_surface_id, |
285 scoped_ptr<cc::DelegatedFrameData> frame_data); | 288 scoped_ptr<cc::DelegatedFrameData> frame_data); |
286 void SendDelegatedFrameAck(uint32 output_surface_id); | 289 void SendDelegatedFrameAck(uint32 output_surface_id); |
287 void SendReturnedDelegatedResources(uint32 output_surface_id); | 290 void SendReturnedDelegatedResources(uint32 output_surface_id); |
288 | 291 |
289 void OnFrameMetadataUpdated( | 292 void OnFrameMetadataUpdated( |
290 const cc::CompositorFrameMetadata& frame_metadata); | 293 const cc::CompositorFrameMetadata& frame_metadata); |
291 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); | 294 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); |
292 | 295 |
296 void ShowInternal(); | |
jdduke (slow)
2015/03/18 20:16:50
I'll definitely add some comments here should we d
| |
297 void HideInternal(bool hide_frontbuffer, bool stop_observing_root_window); | |
293 void AttachLayers(); | 298 void AttachLayers(); |
294 void RemoveLayers(); | 299 void RemoveLayers(); |
295 | 300 |
296 // Called after async screenshot task completes. Scales and crops the result | 301 // Called after async screenshot task completes. Scales and crops the result |
297 // of the copy. | 302 // of the copy. |
298 static void PrepareTextureCopyOutputResult( | 303 static void PrepareTextureCopyOutputResult( |
299 const gfx::Size& dst_size_in_pixel, | 304 const gfx::Size& dst_size_in_pixel, |
300 const SkColorType color_type, | 305 const SkColorType color_type, |
301 const base::TimeTicks& start_time, | 306 const base::TimeTicks& start_time, |
302 ReadbackRequestCallback& callback, | 307 ReadbackRequestCallback& callback, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
428 gfx::Vector2dF last_scroll_offset_; | 433 gfx::Vector2dF last_scroll_offset_; |
429 | 434 |
430 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 435 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
431 | 436 |
432 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 437 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
433 }; | 438 }; |
434 | 439 |
435 } // namespace content | 440 } // namespace content |
436 | 441 |
437 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 442 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |