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 "content/public/common/screen_info.h" | 9 #include "content/public/common/screen_info.h" |
10 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 10 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 ScreenInfo screen_info; | 21 ScreenInfo screen_info; |
22 | 22 |
23 // The size of the renderer. | 23 // The size of the renderer. |
24 gfx::Size new_size; | 24 gfx::Size new_size; |
25 | 25 |
26 // The size of the view's backing surface in non-DPI-adjusted pixels. | 26 // The size of the view's backing surface in non-DPI-adjusted pixels. |
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 browser_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. | 37 // The height of the bottom controls. |
38 float bottom_controls_height; | 38 float bottom_controls_height; |
39 | 39 |
40 // 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 |
41 // 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 |
42 // DPI-adjusted pixels. | 42 // DPI-adjusted pixels. |
43 gfx::Size visible_viewport_size; | 43 gfx::Size visible_viewport_size; |
44 | 44 |
45 // Indicates whether tab-initiated fullscreen was granted. | 45 // Indicates whether tab-initiated fullscreen was granted. |
46 bool is_fullscreen_granted; | 46 bool is_fullscreen_granted; |
47 | 47 |
48 // The display mode. | 48 // The display mode. |
49 blink::WebDisplayMode display_mode; | 49 blink::WebDisplayMode display_mode; |
50 | 50 |
51 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect | 51 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect |
52 // with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags. | 52 // with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags. |
53 bool needs_resize_ack; | 53 bool needs_resize_ack; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace content | 56 } // namespace content |
57 | 57 |
58 #endif // CONTENT_COMMON_RESIZE_PARAMS_H_ | 58 #endif // CONTENT_COMMON_RESIZE_PARAMS_H_ |
OLD | NEW |