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 10 matching lines...) Expand all Loading... |
21 #include "ui/compositor/layer.h" | 21 #include "ui/compositor/layer.h" |
22 #include "ui/compositor/layer_animation_observer.h" | 22 #include "ui/compositor/layer_animation_observer.h" |
23 #include "ui/compositor/scoped_layer_animation_settings.h" | 23 #include "ui/compositor/scoped_layer_animation_settings.h" |
24 #include "ui/events/event.h" | 24 #include "ui/events/event.h" |
25 #include "ui/events/event_handler.h" | 25 #include "ui/events/event_handler.h" |
26 #include "ui/gfx/point3_f.h" | 26 #include "ui/gfx/point3_f.h" |
27 #include "ui/gfx/point_conversions.h" | 27 #include "ui/gfx/point_conversions.h" |
28 #include "ui/gfx/point_f.h" | 28 #include "ui/gfx/point_f.h" |
29 #include "ui/gfx/rect_conversions.h" | 29 #include "ui/gfx/rect_conversions.h" |
30 #include "ui/gfx/screen.h" | 30 #include "ui/gfx/screen.h" |
31 #include "ui/views/corewm/compound_event_filter.h" | 31 #include "ui/wm/core/compound_event_filter.h" |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 const float kMaxMagnifiedScale = 4.0f; | 35 const float kMaxMagnifiedScale = 4.0f; |
36 const float kMaxMagnifiedScaleThreshold = 4.0f; | 36 const float kMaxMagnifiedScaleThreshold = 4.0f; |
37 const float kMinMagnifiedScaleThreshold = 1.1f; | 37 const float kMinMagnifiedScaleThreshold = 1.1f; |
38 const float kNonMagnifiedScale = 1.0f; | 38 const float kNonMagnifiedScale = 1.0f; |
39 | 39 |
40 const float kInitialMagnifiedScale = 2.0f; | 40 const float kInitialMagnifiedScale = 2.0f; |
41 const float kScrollScaleChangeFactor = 0.05f; | 41 const float kScrollScaleChangeFactor = 0.05f; |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 | 596 |
597 //////////////////////////////////////////////////////////////////////////////// | 597 //////////////////////////////////////////////////////////////////////////////// |
598 // MagnificationController: | 598 // MagnificationController: |
599 | 599 |
600 // static | 600 // static |
601 MagnificationController* MagnificationController::CreateInstance() { | 601 MagnificationController* MagnificationController::CreateInstance() { |
602 return new MagnificationControllerImpl(); | 602 return new MagnificationControllerImpl(); |
603 } | 603 } |
604 | 604 |
605 } // namespace ash | 605 } // namespace ash |
OLD | NEW |