OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ | |
6 #define ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "base/logging.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "ui/aura/event_filter.h" | |
12 #include "ui/gfx/point.h" | |
13 #include "ui/gfx/rect.h" | |
oshima
2012/09/07 22:30:55
clean up unused headers
Zachary Kuznia
2012/09/13 11:49:02
Done.
| |
14 | |
15 namespace aura { | |
16 class RootWindow; | |
17 } | |
18 | |
19 namespace ash { | |
20 namespace internal { | |
21 | |
22 const float kDefaultPartialMagnifiedScale = 1.5f; | |
23 const float kNonPartialMagnifiedScale = 1.0f; | |
24 | |
25 class PartialMagnificationController { | |
sky
2012/09/07 16:06:59
Description.
Zachary Kuznia
2012/09/13 11:49:02
Done.
| |
26 public: | |
27 virtual ~PartialMagnificationController() {} | |
28 | |
29 // Creates a new PartialMagnificationController. The caller takes ownership | |
30 // of the returned object. | |
31 static PartialMagnificationController* CreateInstance(); | |
32 | |
33 // Enables (or disables if |enabled| is false) partial screen magnifier | |
34 // feature. | |
35 virtual void SetEnabled(bool enabled) = 0; | |
36 | |
37 virtual bool IsEnabled() = 0; | |
38 | |
39 // Sets the magnification ratio. 1.0f means no magnification. | |
40 virtual void SetScale(float scale) = 0; | |
41 // Returns the current magnification ratio. | |
42 virtual float GetScale() const = 0; | |
43 | |
44 protected: | |
45 PartialMagnificationController() {} | |
46 }; | |
47 | |
48 } // namespace internal | |
49 } // namespace ash | |
50 | |
51 #endif // ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ | |
OLD | NEW |