| 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 "public/platform/WebRect.h" | 8 #include "public/platform/WebRect.h" |
| 9 #include "public/platform/WebSize.h" | 9 #include "public/platform/WebSize.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // Emulated view size. Empty size means no override. | 27 // Emulated view size. Empty size means no override. |
| 28 WebSize viewSize; | 28 WebSize viewSize; |
| 29 | 29 |
| 30 // Whether emulated view should be scaled down if necessary to fit into avai
lable space. | 30 // Whether emulated view should be scaled down if necessary to fit into avai
lable space. |
| 31 bool fitToView; | 31 bool fitToView; |
| 32 | 32 |
| 33 // Insets of emulated view inside available view space, in fit to view mode. | 33 // Insets of emulated view inside available view space, in fit to view mode. |
| 34 WebSize viewInsets; | 34 WebSize viewInsets; |
| 35 | 35 |
| 36 // Offset of emulated view inside available space, not in fit to view mode. | |
| 37 WebFloatPoint offset; | |
| 38 | |
| 39 // Scale of emulated view inside available space, not in fit to view mode. | |
| 40 float scale; | |
| 41 | |
| 42 WebDeviceEmulationParams() | 36 WebDeviceEmulationParams() |
| 43 : screenPosition(Desktop) | 37 : screenPosition(Desktop) |
| 44 , deviceScaleFactor(0) | 38 , deviceScaleFactor(0) |
| 45 , fitToView(false) | 39 , fitToView(false) { } |
| 46 , scale(1) { } | |
| 47 }; | 40 }; |
| 48 | 41 |
| 49 } // namespace blink | 42 } // namespace blink |
| 50 | 43 |
| 51 #endif | 44 #endif |
| OLD | NEW |