| 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 #include "ash/magnifier/magnification_controller.h" | 5 #include "ash/magnifier/magnification_controller.h" |
| 6 | 6 |
| 7 #include "ash/accelerators/accelerator_controller.h" | 7 #include "ash/accelerators/accelerator_controller.h" |
| 8 #include "ash/accessibility_delegate.h" | 8 #include "ash/accessibility_delegate.h" |
| 9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
| 10 #include "ash/display/root_window_transformers.h" | 10 #include "ash/display/root_window_transformers.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "ui/aura/window_tree_host.h" | 22 #include "ui/aura/window_tree_host.h" |
| 23 #include "ui/base/ime/input_method.h" | 23 #include "ui/base/ime/input_method.h" |
| 24 #include "ui/base/ime/input_method_observer.h" | 24 #include "ui/base/ime/input_method_observer.h" |
| 25 #include "ui/base/ime/text_input_client.h" | 25 #include "ui/base/ime/text_input_client.h" |
| 26 #include "ui/compositor/dip_util.h" | 26 #include "ui/compositor/dip_util.h" |
| 27 #include "ui/compositor/layer.h" | 27 #include "ui/compositor/layer.h" |
| 28 #include "ui/compositor/layer_animation_observer.h" | 28 #include "ui/compositor/layer_animation_observer.h" |
| 29 #include "ui/compositor/scoped_layer_animation_settings.h" | 29 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 30 #include "ui/events/event.h" | 30 #include "ui/events/event.h" |
| 31 #include "ui/events/event_handler.h" | 31 #include "ui/events/event_handler.h" |
| 32 #include "ui/gfx/point3_f.h" | 32 #include "ui/gfx/geometry/point3_f.h" |
| 33 #include "ui/gfx/point_conversions.h" | 33 #include "ui/gfx/geometry/point_conversions.h" |
| 34 #include "ui/gfx/point_f.h" | 34 #include "ui/gfx/geometry/point_f.h" |
| 35 #include "ui/gfx/rect_conversions.h" | 35 #include "ui/gfx/geometry/rect_conversions.h" |
| 36 #include "ui/gfx/screen.h" | 36 #include "ui/gfx/screen.h" |
| 37 #include "ui/wm/core/compound_event_filter.h" | 37 #include "ui/wm/core/compound_event_filter.h" |
| 38 #include "ui/wm/core/coordinate_conversion.h" | 38 #include "ui/wm/core/coordinate_conversion.h" |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 const float kMaxMagnifiedScale = 4.0f; | 42 const float kMaxMagnifiedScale = 4.0f; |
| 43 const float kMaxMagnifiedScaleThreshold = 4.0f; | 43 const float kMaxMagnifiedScaleThreshold = 4.0f; |
| 44 const float kMinMagnifiedScaleThreshold = 1.1f; | 44 const float kMinMagnifiedScaleThreshold = 1.1f; |
| 45 const float kNonMagnifiedScale = 1.0f; | 45 const float kNonMagnifiedScale = 1.0f; |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 | 744 |
| 745 //////////////////////////////////////////////////////////////////////////////// | 745 //////////////////////////////////////////////////////////////////////////////// |
| 746 // MagnificationController: | 746 // MagnificationController: |
| 747 | 747 |
| 748 // static | 748 // static |
| 749 MagnificationController* MagnificationController::CreateInstance() { | 749 MagnificationController* MagnificationController::CreateInstance() { |
| 750 return new MagnificationControllerImpl(); | 750 return new MagnificationControllerImpl(); |
| 751 } | 751 } |
| 752 | 752 |
| 753 } // namespace ash | 753 } // namespace ash |
| OLD | NEW |