| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 void OnDetachCompositor() override; | 198 void OnDetachCompositor() override; |
| 199 void OnVSync(base::TimeTicks frame_time, | 199 void OnVSync(base::TimeTicks frame_time, |
| 200 base::TimeDelta vsync_period) override; | 200 base::TimeDelta vsync_period) override; |
| 201 void OnAnimate(base::TimeTicks begin_frame_time) override; | 201 void OnAnimate(base::TimeTicks begin_frame_time) override; |
| 202 void OnActivityPaused() override; | 202 void OnActivityPaused() override; |
| 203 void OnActivityResumed() override; | 203 void OnActivityResumed() override; |
| 204 | 204 |
| 205 // DelegatedFrameEvictor implementation | 205 // DelegatedFrameEvictor implementation |
| 206 void EvictDelegatedFrame() override; | 206 void EvictDelegatedFrame() override; |
| 207 | 207 |
| 208 SkColorType PreferredReadbackFormat() override; | |
| 209 | |
| 210 // StylusTextSelectorClient implementation. | 208 // StylusTextSelectorClient implementation. |
| 211 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; | 209 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; |
| 212 void OnStylusSelectUpdate(float x, float y) override; | 210 void OnStylusSelectUpdate(float x, float y) override; |
| 213 void OnStylusSelectEnd() override; | 211 void OnStylusSelectEnd() override; |
| 214 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override; | 212 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override; |
| 215 | 213 |
| 216 // ui::TouchSelectionControllerClient implementation. | 214 // ui::TouchSelectionControllerClient implementation. |
| 217 bool SupportsAnimation() const override; | 215 bool SupportsAnimation() const override; |
| 218 void SetNeedsAnimate() override; | 216 void SetNeedsAnimate() override; |
| 219 void MoveCaret(const gfx::PointF& position) override; | 217 void MoveCaret(const gfx::PointF& position) override; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 292 |
| 295 void ShowInternal(); | 293 void ShowInternal(); |
| 296 void HideInternal(bool hide_frontbuffer, bool stop_observing_root_window); | 294 void HideInternal(bool hide_frontbuffer, bool stop_observing_root_window); |
| 297 void AttachLayers(); | 295 void AttachLayers(); |
| 298 void RemoveLayers(); | 296 void RemoveLayers(); |
| 299 | 297 |
| 300 // Called after async screenshot task completes. Scales and crops the result | 298 // Called after async screenshot task completes. Scales and crops the result |
| 301 // of the copy. | 299 // of the copy. |
| 302 static void PrepareTextureCopyOutputResult( | 300 static void PrepareTextureCopyOutputResult( |
| 303 const gfx::Size& dst_size_in_pixel, | 301 const gfx::Size& dst_size_in_pixel, |
| 304 const SkColorType color_type, | 302 SkColorType color_type, |
| 305 const base::TimeTicks& start_time, | 303 const base::TimeTicks& start_time, |
| 306 ReadbackRequestCallback& callback, | 304 ReadbackRequestCallback& callback, |
| 307 scoped_ptr<cc::CopyOutputResult> result); | 305 scoped_ptr<cc::CopyOutputResult> result); |
| 308 static void PrepareTextureCopyOutputResultForDelegatedReadback( | 306 static void PrepareTextureCopyOutputResultForDelegatedReadback( |
| 309 const gfx::Size& dst_size_in_pixel, | 307 const gfx::Size& dst_size_in_pixel, |
| 310 const SkColorType color_type, | 308 SkColorType color_type, |
| 311 const base::TimeTicks& start_time, | 309 const base::TimeTicks& start_time, |
| 312 scoped_refptr<cc::Layer> readback_layer, | 310 scoped_refptr<cc::Layer> readback_layer, |
| 313 ReadbackRequestCallback& callback, | 311 ReadbackRequestCallback& callback, |
| 314 scoped_ptr<cc::CopyOutputResult> result); | 312 scoped_ptr<cc::CopyOutputResult> result); |
| 315 | 313 |
| 316 // DevTools ScreenCast support for Android WebView. | 314 // DevTools ScreenCast support for Android WebView. |
| 317 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, | 315 void SynchronousCopyContents(const gfx::Rect& src_subrect_in_pixel, |
| 318 const gfx::Size& dst_size_in_pixel, | 316 const gfx::Size& dst_size_in_pixel, |
| 319 ReadbackRequestCallback& callback, | 317 ReadbackRequestCallback& callback, |
| 320 const SkColorType color_type); | 318 const SkColorType color_type); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 gfx::Vector2dF last_scroll_offset_; | 430 gfx::Vector2dF last_scroll_offset_; |
| 433 | 431 |
| 434 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 432 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 435 | 433 |
| 436 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 434 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 437 }; | 435 }; |
| 438 | 436 |
| 439 } // namespace content | 437 } // namespace content |
| 440 | 438 |
| 441 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 439 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |