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

Side by Side Diff: public/web/WebDeviceEmulationParams.h

Issue 342963002: Revert of [DevTools] Add offset and scale to WebDeviceEmulationParams. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698