| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void FocusedNodeChanged(bool is_editable_node) override; | 114 void FocusedNodeChanged(bool is_editable_node) override; |
| 115 void RenderProcessGone(base::TerminationStatus status, | 115 void RenderProcessGone(base::TerminationStatus status, |
| 116 int error_code) override; | 116 int error_code) override; |
| 117 void Destroy() override; | 117 void Destroy() override; |
| 118 void SetTooltipText(const base::string16& tooltip_text) override; | 118 void SetTooltipText(const base::string16& tooltip_text) override; |
| 119 void SelectionChanged(const base::string16& text, | 119 void SelectionChanged(const base::string16& text, |
| 120 size_t offset, | 120 size_t offset, |
| 121 const gfx::Range& range) override; | 121 const gfx::Range& range) override; |
| 122 void SelectionBoundsChanged( | 122 void SelectionBoundsChanged( |
| 123 const ViewHostMsg_SelectionBounds_Params& params) override; | 123 const ViewHostMsg_SelectionBounds_Params& params) override; |
| 124 void AcceleratedSurfaceInitialized(int route_id) override; | |
| 125 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 124 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 126 void SetBackgroundColor(SkColor color) override; | 125 void SetBackgroundColor(SkColor color) override; |
| 127 void CopyFromCompositingSurface( | 126 void CopyFromCompositingSurface( |
| 128 const gfx::Rect& src_subrect, | 127 const gfx::Rect& src_subrect, |
| 129 const gfx::Size& dst_size, | 128 const gfx::Size& dst_size, |
| 130 ReadbackRequestCallback& callback, | 129 ReadbackRequestCallback& callback, |
| 131 const SkColorType preferred_color_type) override; | 130 const SkColorType preferred_color_type) override; |
| 132 void CopyFromCompositingSurfaceToVideoFrame( | 131 void CopyFromCompositingSurfaceToVideoFrame( |
| 133 const gfx::Rect& src_subrect, | 132 const gfx::Rect& src_subrect, |
| 134 const scoped_refptr<media::VideoFrame>& target, | 133 const scoped_refptr<media::VideoFrame>& target, |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 // Android MotionEvent's) and touch event acks. | 377 // Android MotionEvent's) and touch event acks. |
| 379 ui::FilteredGestureProvider gesture_provider_; | 378 ui::FilteredGestureProvider gesture_provider_; |
| 380 | 379 |
| 381 // Handles gesture based text selection | 380 // Handles gesture based text selection |
| 382 StylusTextSelector stylus_text_selector_; | 381 StylusTextSelector stylus_text_selector_; |
| 383 | 382 |
| 384 // Manages selection handle rendering and manipulation. | 383 // Manages selection handle rendering and manipulation. |
| 385 // This will always be NULL if |content_view_core_| is NULL. | 384 // This will always be NULL if |content_view_core_| is NULL. |
| 386 scoped_ptr<ui::TouchSelectionController> selection_controller_; | 385 scoped_ptr<ui::TouchSelectionController> selection_controller_; |
| 387 | 386 |
| 388 int accelerated_surface_route_id_; | |
| 389 | |
| 390 // Size to use if we have no backing ContentViewCore | 387 // Size to use if we have no backing ContentViewCore |
| 391 gfx::Size default_size_; | 388 gfx::Size default_size_; |
| 392 | 389 |
| 393 const bool using_browser_compositor_; | 390 const bool using_browser_compositor_; |
| 394 | 391 |
| 395 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; | 392 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; |
| 396 | 393 |
| 397 size_t locks_on_frame_count_; | 394 size_t locks_on_frame_count_; |
| 398 bool observing_root_window_; | 395 bool observing_root_window_; |
| 399 | 396 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 413 gfx::Vector2dF last_scroll_offset_; | 410 gfx::Vector2dF last_scroll_offset_; |
| 414 | 411 |
| 415 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 412 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 416 | 413 |
| 417 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 414 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 418 }; | 415 }; |
| 419 | 416 |
| 420 } // namespace content | 417 } // namespace content |
| 421 | 418 |
| 422 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 419 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |