| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // Body background color of the underlying document. | 342 // Body background color of the underlying document. |
| 342 SkColor cached_background_color_; | 343 SkColor cached_background_color_; |
| 343 | 344 |
| 344 scoped_refptr<cc::Layer> layer_; | 345 scoped_refptr<cc::Layer> layer_; |
| 345 | 346 |
| 346 std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_; | 347 std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_; |
| 347 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 348 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
| 348 cc::SurfaceId surface_id_; | 349 cc::SurfaceId surface_id_; |
| 349 gfx::Size current_surface_size_; | 350 gfx::Size current_surface_size_; |
| 350 cc::ReturnedResourceArray surface_returned_resources_; | 351 cc::ReturnedResourceArray surface_returned_resources_; |
| 351 gfx::Vector2dF location_bar_content_translation_; | 352 float top_bar_shown_ratio_; |
| 353 float bottom_bar_shown_ratio_; |
| 352 cc::Selection<gfx::SelectionBound> current_viewport_selection_; | 354 cc::Selection<gfx::SelectionBound> current_viewport_selection_; |
| 353 | 355 |
| 354 // The most recent texture size that was pushed to the texture layer. | 356 // The most recent texture size that was pushed to the texture layer. |
| 355 gfx::Size texture_size_in_layer_; | 357 gfx::Size texture_size_in_layer_; |
| 356 | 358 |
| 357 // The output surface id of the last received frame. | 359 // The output surface id of the last received frame. |
| 358 uint32_t last_output_surface_id_; | 360 uint32_t last_output_surface_id_; |
| 359 | 361 |
| 360 | 362 |
| 361 std::queue<base::Closure> ack_callbacks_; | 363 std::queue<base::Closure> ack_callbacks_; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 gfx::Vector2dF last_scroll_offset_; | 402 gfx::Vector2dF last_scroll_offset_; |
| 401 | 403 |
| 402 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 404 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 403 | 405 |
| 404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 406 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 405 }; | 407 }; |
| 406 | 408 |
| 407 } // namespace content | 409 } // namespace content |
| 408 | 410 |
| 409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 411 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |