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; | |
197 void OnAttachCompositor() override; | 196 void OnAttachCompositor() override; |
198 void OnDetachCompositor() override; | 197 void OnDetachCompositor() override; |
199 void OnVSync(base::TimeTicks frame_time, | 198 void OnVSync(base::TimeTicks frame_time, |
200 base::TimeDelta vsync_period) override; | 199 base::TimeDelta vsync_period) override; |
201 void OnAnimate(base::TimeTicks begin_frame_time) override; | 200 void OnAnimate(base::TimeTicks begin_frame_time) override; |
202 void OnActivityPaused() override; | |
203 void OnActivityResumed() override; | |
204 | 201 |
205 // DelegatedFrameEvictor implementation | 202 // DelegatedFrameEvictor implementation |
206 void EvictDelegatedFrame() override; | 203 void EvictDelegatedFrame() override; |
207 | 204 |
208 SkColorType PreferredReadbackFormat() override; | 205 SkColorType PreferredReadbackFormat() override; |
209 | 206 |
210 // StylusTextSelectorClient implementation. | 207 // StylusTextSelectorClient implementation. |
211 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; | 208 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; |
212 void OnStylusSelectUpdate(float x, float y) override; | 209 void OnStylusSelectUpdate(float x, float y) override; |
213 void OnStylusSelectEnd() override; | 210 void OnStylusSelectEnd() override; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 void SubmitFrame(scoped_ptr<cc::DelegatedFrameData> frame_data); | 283 void SubmitFrame(scoped_ptr<cc::DelegatedFrameData> frame_data); |
287 void SwapDelegatedFrame(uint32 output_surface_id, | 284 void SwapDelegatedFrame(uint32 output_surface_id, |
288 scoped_ptr<cc::DelegatedFrameData> frame_data); | 285 scoped_ptr<cc::DelegatedFrameData> frame_data); |
289 void SendDelegatedFrameAck(uint32 output_surface_id); | 286 void SendDelegatedFrameAck(uint32 output_surface_id); |
290 void SendReturnedDelegatedResources(uint32 output_surface_id); | 287 void SendReturnedDelegatedResources(uint32 output_surface_id); |
291 | 288 |
292 void OnFrameMetadataUpdated( | 289 void OnFrameMetadataUpdated( |
293 const cc::CompositorFrameMetadata& frame_metadata); | 290 const cc::CompositorFrameMetadata& frame_metadata); |
294 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); | 291 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); |
295 | 292 |
296 void ShowInternal(); | |
297 void HideInternal(bool hide_frontbuffer, bool stop_observing_root_window); | |
298 void AttachLayers(); | 293 void AttachLayers(); |
299 void RemoveLayers(); | 294 void RemoveLayers(); |
300 | 295 |
301 // Called after async screenshot task completes. Scales and crops the result | 296 // Called after async screenshot task completes. Scales and crops the result |
302 // of the copy. | 297 // of the copy. |
303 static void PrepareTextureCopyOutputResult( | 298 static void PrepareTextureCopyOutputResult( |
304 const gfx::Size& dst_size_in_pixel, | 299 const gfx::Size& dst_size_in_pixel, |
305 const SkColorType color_type, | 300 const SkColorType color_type, |
306 const base::TimeTicks& start_time, | 301 const base::TimeTicks& start_time, |
307 ReadbackRequestCallback& callback, | 302 ReadbackRequestCallback& callback, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 gfx::Vector2dF last_scroll_offset_; | 428 gfx::Vector2dF last_scroll_offset_; |
434 | 429 |
435 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 430 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
436 | 431 |
437 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 432 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
438 }; | 433 }; |
439 | 434 |
440 } // namespace content | 435 } // namespace content |
441 | 436 |
442 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 437 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |