Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: content/common/resize_params.h

Issue 2317563004: Change blink::WebScreenInfo to content::ScreenInfo (Closed)
Patch Set: Fix Windows compile Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "third_party/WebKit/public/platform/WebDisplayMode.h" 10 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
10 #include "third_party/WebKit/public/platform/WebScreenInfo.h"
11 #include "ui/gfx/geometry/size.h" 11 #include "ui/gfx/geometry/size.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 struct CONTENT_EXPORT ResizeParams { 15 struct CONTENT_EXPORT ResizeParams {
16 ResizeParams(); 16 ResizeParams();
17 ResizeParams(const ResizeParams& other); 17 ResizeParams(const ResizeParams& other);
18 ~ResizeParams(); 18 ~ResizeParams();
19 19
20 // Information about the screen (dpi, depth, etc..). 20 // Information about the screen (dpi, depth, etc..).
21 blink::WebScreenInfo 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 top_controls_shrink_blink_size;
(...skipping 20 matching lines...) Expand all
52 blink::WebDisplayMode display_mode; 52 blink::WebDisplayMode display_mode;
53 53
54 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect 54 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect
55 // 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.
56 bool needs_resize_ack; 56 bool needs_resize_ack;
57 }; 57 };
58 58
59 } // namespace content 59 } // namespace content
60 60
61 #endif // CONTENT_COMMON_RESIZE_PARAMS_H_ 61 #endif // CONTENT_COMMON_RESIZE_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698