OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_MAGNIFIER_MAGNIFIER_CONSTANTS_H_ | 5 #ifndef ASH_MAGNIFIER_MAGNIFIER_CONSTANTS_H_ |
6 #define ASH_MAGNIFIER_MAGNIFIER_CONSTANTS_H_ | 6 #define ASH_MAGNIFIER_MAGNIFIER_CONSTANTS_H_ |
7 | 7 |
8 namespace ash { | 8 namespace ash { |
9 | 9 |
10 // Note: Do not change these values; UMA and prefs depend on them. | 10 // Note: Do not change these values; UMA and prefs depend on them. |
11 enum MagnifierType { | 11 enum MagnifierType { |
12 MAGNIFIER_FULL = 1, | 12 MAGNIFIER_FULL = 1, |
13 MAGNIFIER_PARTIAL = 2, | 13 MAGNIFIER_PARTIAL = 2, |
14 }; | 14 }; |
15 | 15 |
16 const int kMaxMagnifierType = 2; | 16 const int kMaxMagnifierType = 2; |
17 | 17 |
18 const MagnifierType kDefaultMagnifierType = MAGNIFIER_FULL; | 18 const MagnifierType kDefaultMagnifierType = MAGNIFIER_FULL; |
19 | 19 |
| 20 // Factor of magnification scale. For example, when this value is 1.189, scale |
| 21 // value will be changed x1.000, x1.189, x1.414, x1.681, x2.000, ... |
| 22 // Note: this value is 2.0 ^ (1 / 4). |
| 23 const float kMagnificationScaleFactor = 1.18920712f; |
| 24 |
20 } // namespace ash | 25 } // namespace ash |
21 | 26 |
22 #endif // ASH_MAGNIFIER_MAGNIFIER_CONSTANTS_H_ | 27 #endif // ASH_MAGNIFIER_MAGNIFIER_CONSTANTS_H_ |
OLD | NEW |