OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 WebDeviceEmulationParams_h | 5 #ifndef WebDeviceEmulationParams_h |
6 #define WebDeviceEmulationParams_h | 6 #define WebDeviceEmulationParams_h |
7 | 7 |
8 #include "../platform/WebFloatPoint.h" | 8 #include "public/platform/WebFloatPoint.h" |
9 #include "../platform/WebPoint.h" | 9 #include "public/platform/WebPoint.h" |
10 #include "../platform/WebRect.h" | 10 #include "public/platform/WebRect.h" |
11 #include "../platform/WebSize.h" | 11 #include "public/platform/WebSize.h" |
12 #include "../platform/modules/screen_orientation/WebScreenOrientationType.h" | 12 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 // All sizes are measured in device independent pixels. | 16 // All sizes are measured in device independent pixels. |
17 struct WebDeviceEmulationParams { | 17 struct WebDeviceEmulationParams { |
18 // For mobile, |screenSize| and |viewPosition| are used. | 18 // For mobile, |screenSize| and |viewPosition| are used. |
19 // For desktop, screen size and view position are preserved. | 19 // For desktop, screen size and view position are preserved. |
20 enum ScreenPosition { kDesktop, kMobile, kScreenPositionLast = kMobile }; | 20 enum ScreenPosition { kDesktop, kMobile, kScreenPositionLast = kMobile }; |
21 | 21 |
22 ScreenPosition screen_position; | 22 ScreenPosition screen_position; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 71 } |
72 | 72 |
73 inline bool operator!=(const WebDeviceEmulationParams& a, | 73 inline bool operator!=(const WebDeviceEmulationParams& a, |
74 const WebDeviceEmulationParams& b) { | 74 const WebDeviceEmulationParams& b) { |
75 return !(a == b); | 75 return !(a == b); |
76 } | 76 } |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
79 | 79 |
80 #endif | 80 #endif |
OLD | NEW |