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(const gfx::Size& new_size, bool resized) 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 | 857 |
857 // Indicates whether this view overrides url-based zoom settings. | 858 // Indicates whether this view overrides url-based zoom settings. |
858 bool uses_temporary_zoom_level_; | 859 bool uses_temporary_zoom_level_; |
859 | 860 |
860 #if defined(OS_ANDROID) | 861 #if defined(OS_ANDROID) |
861 // Cache the old top controls state constraints. Used when updating | 862 // Cache the old top controls state constraints. Used when updating |
862 // current value only without altering the constraints. | 863 // current value only without altering the constraints. |
863 TopControlsState top_controls_constraints_; | 864 TopControlsState top_controls_constraints_; |
864 #endif | 865 #endif |
865 | 866 |
| 867 // Whether or not Blink's viewport size should be shrunk by the height of the |
| 868 // URL-bar. |
| 869 bool top_controls_shrink_blink_size_; |
| 870 |
| 871 // The height of the top controls. |
| 872 float top_controls_height_; |
| 873 |
866 // Indicates whether this page has been focused/unfocused by the browser. | 874 // Indicates whether this page has been focused/unfocused by the browser. |
867 bool has_focus_; | 875 bool has_focus_; |
868 | 876 |
869 // View ---------------------------------------------------------------------- | 877 // View ---------------------------------------------------------------------- |
870 | 878 |
871 // Cache the preferred size of the page in order to prevent sending the IPC | 879 // Cache the preferred size of the page in order to prevent sending the IPC |
872 // when layout() recomputes but doesn't actually change sizes. | 880 // when layout() recomputes but doesn't actually change sizes. |
873 gfx::Size preferred_size_; | 881 gfx::Size preferred_size_; |
874 | 882 |
875 // Used to delay determining the preferred size (to avoid intermediate | 883 // Used to delay determining the preferred size (to avoid intermediate |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 // use the Observer interface to filter IPC messages and receive frame change | 993 // use the Observer interface to filter IPC messages and receive frame change |
986 // notifications. | 994 // notifications. |
987 // --------------------------------------------------------------------------- | 995 // --------------------------------------------------------------------------- |
988 | 996 |
989 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 997 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
990 }; | 998 }; |
991 | 999 |
992 } // namespace content | 1000 } // namespace content |
993 | 1001 |
994 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1002 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |