| 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_PARTIAL_MAGNIFICATION_CONTROLLER_H_ | 5 #ifndef ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ |
| 6 #define ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ | 6 #define ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "ui/aura/window_observer.h" | 9 #include "ui/aura/window_observer.h" |
| 9 #include "ui/events/event_handler.h" | 10 #include "ui/events/event_handler.h" |
| 10 #include "ui/gfx/geometry/point.h" | 11 #include "ui/gfx/geometry/point.h" |
| 11 #include "ui/views/widget/widget_observer.h" | 12 #include "ui/views/widget/widget_observer.h" |
| 12 | 13 |
| 13 namespace ash { | 14 namespace ash { |
| 14 | 15 |
| 15 const float kDefaultPartialMagnifiedScale = 1.5f; | 16 const float kDefaultPartialMagnifiedScale = 1.5f; |
| 16 const float kNonPartialMagnifiedScale = 1.0f; | 17 const float kNonPartialMagnifiedScale = 1.0f; |
| 17 | 18 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 gfx::Point origin_; | 79 gfx::Point origin_; |
| 79 | 80 |
| 80 views::Widget* zoom_widget_; | 81 views::Widget* zoom_widget_; |
| 81 | 82 |
| 82 DISALLOW_COPY_AND_ASSIGN(PartialMagnificationController); | 83 DISALLOW_COPY_AND_ASSIGN(PartialMagnificationController); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // namespace ash | 86 } // namespace ash |
| 86 | 87 |
| 87 #endif // ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ | 88 #endif // ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ |
| OLD | NEW |