| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 // Android MotionEvent's) and touch event acks. | 353 // Android MotionEvent's) and touch event acks. |
| 354 ui::FilteredGestureProvider gesture_provider_; | 354 ui::FilteredGestureProvider gesture_provider_; |
| 355 | 355 |
| 356 // Handles gesture based text selection | 356 // Handles gesture based text selection |
| 357 StylusTextSelector stylus_text_selector_; | 357 StylusTextSelector stylus_text_selector_; |
| 358 | 358 |
| 359 // Manages selection handle rendering and manipulation. | 359 // Manages selection handle rendering and manipulation. |
| 360 // This will always be NULL if |content_view_core_| is NULL. | 360 // This will always be NULL if |content_view_core_| is NULL. |
| 361 std::unique_ptr<ui::TouchSelectionController> selection_controller_; | 361 std::unique_ptr<ui::TouchSelectionController> selection_controller_; |
| 362 | 362 |
| 363 // Size to use if we have no backing ContentViewCore | 363 // Bounds to use if we have no backing ContentViewCore |
| 364 gfx::Size default_size_; | 364 gfx::Rect default_bounds_; |
| 365 | 365 |
| 366 const bool using_browser_compositor_; | 366 const bool using_browser_compositor_; |
| 367 std::unique_ptr<SynchronousCompositorHost> sync_compositor_; | 367 std::unique_ptr<SynchronousCompositorHost> sync_compositor_; |
| 368 | 368 |
| 369 std::unique_ptr<DelegatedFrameEvictor> frame_evictor_; | 369 std::unique_ptr<DelegatedFrameEvictor> frame_evictor_; |
| 370 | 370 |
| 371 size_t locks_on_frame_count_; | 371 size_t locks_on_frame_count_; |
| 372 bool observing_root_window_; | 372 bool observing_root_window_; |
| 373 | 373 |
| 374 struct LastFrameInfo { | 374 struct LastFrameInfo { |
| 375 LastFrameInfo(uint32_t output_id, cc::CompositorFrame output_frame); | 375 LastFrameInfo(uint32_t output_id, cc::CompositorFrame output_frame); |
| 376 ~LastFrameInfo(); | 376 ~LastFrameInfo(); |
| 377 uint32_t output_surface_id; | 377 uint32_t output_surface_id; |
| 378 cc::CompositorFrame frame; | 378 cc::CompositorFrame frame; |
| 379 }; | 379 }; |
| 380 | 380 |
| 381 std::unique_ptr<LastFrameInfo> last_frame_info_; | 381 std::unique_ptr<LastFrameInfo> last_frame_info_; |
| 382 | 382 |
| 383 // The last scroll offset of the view. | 383 // The last scroll offset of the view. |
| 384 gfx::Vector2dF last_scroll_offset_; | 384 gfx::Vector2dF last_scroll_offset_; |
| 385 | 385 |
| 386 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 386 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 387 | 387 |
| 388 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 388 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 389 }; | 389 }; |
| 390 | 390 |
| 391 } // namespace content | 391 } // namespace content |
| 392 | 392 |
| 393 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 393 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |