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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 void OnOrientationChange() override; | 465 void OnOrientationChange() override; |
466 ui::TextInputType GetTextInputType() override; | 466 ui::TextInputType GetTextInputType() override; |
467 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override; | 467 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override; |
468 void GetCompositionCharacterBounds( | 468 void GetCompositionCharacterBounds( |
469 std::vector<gfx::Rect>* character_bounds_in_window) override; | 469 std::vector<gfx::Rect>* character_bounds_in_window) override; |
470 void GetCompositionRange(gfx::Range* range) override; | 470 void GetCompositionRange(gfx::Range* range) override; |
471 bool CanComposeInline() override; | 471 bool CanComposeInline() override; |
472 void DidCommitCompositorFrame() override; | 472 void DidCommitCompositorFrame() override; |
473 void DidCompletePageScaleAnimation() override; | 473 void DidCompletePageScaleAnimation() override; |
474 void OnDeviceScaleFactorChanged() override; | 474 void OnDeviceScaleFactorChanged() override; |
| 475 void ResizeWebWidget() override; |
475 | 476 |
476 RenderViewImpl(CompositorDependencies* compositor_deps, | 477 RenderViewImpl(CompositorDependencies* compositor_deps, |
477 const ViewMsg_New_Params& params); | 478 const ViewMsg_New_Params& params); |
478 | 479 |
479 void Initialize(const ViewMsg_New_Params& params, | 480 void Initialize(const ViewMsg_New_Params& params, |
480 bool was_created_by_renderer); | 481 bool was_created_by_renderer); |
481 void SetScreenMetricsEmulationParameters( | 482 void SetScreenMetricsEmulationParameters( |
482 bool enabled, | 483 bool enabled, |
483 const blink::WebDeviceEmulationParams& params) override; | 484 const blink::WebDeviceEmulationParams& params) override; |
484 | 485 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 | 848 |
848 // Indicates whether this view overrides url-based zoom settings. | 849 // Indicates whether this view overrides url-based zoom settings. |
849 bool uses_temporary_zoom_level_; | 850 bool uses_temporary_zoom_level_; |
850 | 851 |
851 #if defined(OS_ANDROID) | 852 #if defined(OS_ANDROID) |
852 // Cache the old top controls state constraints. Used when updating | 853 // Cache the old top controls state constraints. Used when updating |
853 // current value only without altering the constraints. | 854 // current value only without altering the constraints. |
854 TopControlsState top_controls_constraints_; | 855 TopControlsState top_controls_constraints_; |
855 #endif | 856 #endif |
856 | 857 |
| 858 // Whether or not Blink's viewport size should be shrunk by the height of the |
| 859 // URL-bar. |
| 860 bool top_controls_shrink_blink_size_; |
| 861 |
| 862 // The height of the top controls. |
| 863 float top_controls_height_; |
| 864 |
857 // Indicates whether this page has been focused/unfocused by the browser. | 865 // Indicates whether this page has been focused/unfocused by the browser. |
858 bool has_focus_; | 866 bool has_focus_; |
859 | 867 |
860 // View ---------------------------------------------------------------------- | 868 // View ---------------------------------------------------------------------- |
861 | 869 |
862 // Cache the preferred size of the page in order to prevent sending the IPC | 870 // Cache the preferred size of the page in order to prevent sending the IPC |
863 // when layout() recomputes but doesn't actually change sizes. | 871 // when layout() recomputes but doesn't actually change sizes. |
864 gfx::Size preferred_size_; | 872 gfx::Size preferred_size_; |
865 | 873 |
866 // Used to delay determining the preferred size (to avoid intermediate | 874 // Used to delay determining the preferred size (to avoid intermediate |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 // use the Observer interface to filter IPC messages and receive frame change | 984 // use the Observer interface to filter IPC messages and receive frame change |
977 // notifications. | 985 // notifications. |
978 // --------------------------------------------------------------------------- | 986 // --------------------------------------------------------------------------- |
979 | 987 |
980 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 988 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
981 }; | 989 }; |
982 | 990 |
983 } // namespace content | 991 } // namespace content |
984 | 992 |
985 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 993 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |