OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_COMMON_RESIZE_PARAMS_H_ | 5 #ifndef CONTENT_COMMON_RESIZE_PARAMS_H_ |
6 #define CONTENT_COMMON_RESIZE_PARAMS_H_ | 6 #define CONTENT_COMMON_RESIZE_PARAMS_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 9 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
10 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 10 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 gfx::Size physical_backing_size; | 27 gfx::Size physical_backing_size; |
28 | 28 |
29 // Whether or not Blink's viewport size should be shrunk by the height of the | 29 // Whether or not Blink's viewport size should be shrunk by the height of the |
30 // URL-bar (always false on platforms where URL-bar hiding isn't supported). | 30 // URL-bar (always false on platforms where URL-bar hiding isn't supported). |
31 bool top_controls_shrink_blink_size; | 31 bool top_controls_shrink_blink_size; |
32 | 32 |
33 // The height of the top controls (always 0 on platforms where URL-bar hiding | 33 // The height of the top controls (always 0 on platforms where URL-bar hiding |
34 // isn't supported). | 34 // isn't supported). |
35 float top_controls_height; | 35 float top_controls_height; |
36 | 36 |
| 37 // The height of the bottom controls. |
| 38 float bottom_controls_height; |
| 39 |
37 // The size of the visible viewport, which may be smaller than the view if the | 40 // The size of the visible viewport, which may be smaller than the view if the |
38 // view is partially occluded (e.g. by a virtual keyboard). The size is in | 41 // view is partially occluded (e.g. by a virtual keyboard). The size is in |
39 // DPI-adjusted pixels. | 42 // DPI-adjusted pixels. |
40 gfx::Size visible_viewport_size; | 43 gfx::Size visible_viewport_size; |
41 | 44 |
42 // The resizer rect. | 45 // The resizer rect. |
43 gfx::Rect resizer_rect; | 46 gfx::Rect resizer_rect; |
44 | 47 |
45 // Indicates whether tab-initiated fullscreen was granted. | 48 // Indicates whether tab-initiated fullscreen was granted. |
46 bool is_fullscreen_granted; | 49 bool is_fullscreen_granted; |
47 | 50 |
48 // The display mode. | 51 // The display mode. |
49 blink::WebDisplayMode display_mode; | 52 blink::WebDisplayMode display_mode; |
50 | 53 |
51 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect | 54 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect |
52 // with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags. | 55 // with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags. |
53 bool needs_resize_ack; | 56 bool needs_resize_ack; |
54 }; | 57 }; |
55 | 58 |
56 } // namespace content | 59 } // namespace content |
57 | 60 |
58 #endif // CONTENT_COMMON_RESIZE_PARAMS_H_ | 61 #endif // CONTENT_COMMON_RESIZE_PARAMS_H_ |
OLD | NEW |