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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 bool HasFocus() const override; | 100 bool HasFocus() const override; |
101 bool IsSurfaceAvailableForCopy() const override; | 101 bool IsSurfaceAvailableForCopy() const override; |
102 void Show() override; | 102 void Show() override; |
103 void Hide() override; | 103 void Hide() override; |
104 bool IsShowing() override; | 104 bool IsShowing() override; |
105 gfx::Rect GetViewBounds() const override; | 105 gfx::Rect GetViewBounds() const override; |
106 gfx::Size GetVisibleViewportSize() const override; | 106 gfx::Size GetVisibleViewportSize() const override; |
107 gfx::Size GetPhysicalBackingSize() const override; | 107 gfx::Size GetPhysicalBackingSize() const override; |
108 bool DoTopControlsShrinkBlinkSize() const override; | 108 bool DoTopControlsShrinkBlinkSize() const override; |
109 float GetTopControlsHeight() const override; | 109 float GetTopControlsHeight() const override; |
| 110 float GetBottomControlsHeight() const override; |
110 void UpdateCursor(const WebCursor& cursor) override; | 111 void UpdateCursor(const WebCursor& cursor) override; |
111 void SetIsLoading(bool is_loading) override; | 112 void SetIsLoading(bool is_loading) override; |
112 void TextInputStateChanged(const TextInputState& params) override; | 113 void TextInputStateChanged(const TextInputState& params) override; |
113 void ImeCancelComposition() override; | 114 void ImeCancelComposition() override; |
114 void ImeCompositionRangeChanged( | 115 void ImeCompositionRangeChanged( |
115 const gfx::Range& range, | 116 const gfx::Range& range, |
116 const std::vector<gfx::Rect>& character_bounds) override; | 117 const std::vector<gfx::Rect>& character_bounds) override; |
117 void FocusedNodeChanged(bool is_editable_node) override; | 118 void FocusedNodeChanged(bool is_editable_node) override; |
118 void RenderProcessGone(base::TerminationStatus status, | 119 void RenderProcessGone(base::TerminationStatus status, |
119 int error_code) override; | 120 int error_code) override; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 // Body background color of the underlying document. | 333 // Body background color of the underlying document. |
333 SkColor cached_background_color_; | 334 SkColor cached_background_color_; |
334 | 335 |
335 mutable ui::ViewAndroid view_; | 336 mutable ui::ViewAndroid view_; |
336 | 337 |
337 std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_; | 338 std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_; |
338 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 339 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
339 cc::SurfaceId surface_id_; | 340 cc::SurfaceId surface_id_; |
340 gfx::Size current_surface_size_; | 341 gfx::Size current_surface_size_; |
341 cc::ReturnedResourceArray surface_returned_resources_; | 342 cc::ReturnedResourceArray surface_returned_resources_; |
342 gfx::Vector2dF location_bar_content_translation_; | 343 float top_bar_shown_ratio_; |
| 344 float bottom_bar_shown_ratio_; |
343 cc::Selection<gfx::SelectionBound> current_viewport_selection_; | 345 cc::Selection<gfx::SelectionBound> current_viewport_selection_; |
344 | 346 |
345 // The most recent texture size that was pushed to the texture layer. | 347 // The most recent texture size that was pushed to the texture layer. |
346 gfx::Size texture_size_in_layer_; | 348 gfx::Size texture_size_in_layer_; |
347 | 349 |
348 // The output surface id of the last received frame. | 350 // The output surface id of the last received frame. |
349 uint32_t last_output_surface_id_; | 351 uint32_t last_output_surface_id_; |
350 | 352 |
351 | 353 |
352 std::queue<base::Closure> ack_callbacks_; | 354 std::queue<base::Closure> ack_callbacks_; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 gfx::Vector2dF last_scroll_offset_; | 391 gfx::Vector2dF last_scroll_offset_; |
390 | 392 |
391 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 393 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
392 | 394 |
393 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 395 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
394 }; | 396 }; |
395 | 397 |
396 } // namespace content | 398 } // namespace content |
397 | 399 |
398 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 400 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |