| 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/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ui/aura/event_filter.h" | 8 #include "ui/aura/event_filter.h" |
| 9 #include "ui/aura/root_window.h" | 9 #include "ui/aura/root_window.h" |
| 10 #include "ui/aura/shared/compound_event_filter.h" | 10 #include "ui/aura/shared/compound_event_filter.h" |
| 11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 12 #include "ui/aura/window_property.h" | 12 #include "ui/aura/window_property.h" |
| 13 #include "ui/base/event.h" | 13 #include "ui/base/events/event.h" |
| 14 #include "ui/gfx/point3.h" | |
| 15 #include "ui/gfx/screen.h" | |
| 16 #include "ui/compositor/dip_util.h" | 14 #include "ui/compositor/dip_util.h" |
| 17 #include "ui/compositor/layer.h" | 15 #include "ui/compositor/layer.h" |
| 18 #include "ui/compositor/layer_animation_observer.h" | 16 #include "ui/compositor/layer_animation_observer.h" |
| 19 #include "ui/compositor/scoped_layer_animation_settings.h" | 17 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 18 #include "ui/gfx/point3.h" |
| 19 #include "ui/gfx/screen.h" |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 const float kMaxMagnifiedScale = 4.0f; | 23 const float kMaxMagnifiedScale = 4.0f; |
| 24 const float kMaxMagnifiedScaleThreshold = 4.0f; | 24 const float kMaxMagnifiedScaleThreshold = 4.0f; |
| 25 const float kMinMagnifiedScaleThreshold = 1.1f; | 25 const float kMinMagnifiedScaleThreshold = 1.1f; |
| 26 const float kNonMagnifiedScale = 1.0f; | 26 const float kNonMagnifiedScale = 1.0f; |
| 27 | 27 |
| 28 const float kInitialMagnifiedScale = 2.0f; | 28 const float kInitialMagnifiedScale = 2.0f; |
| 29 const float kScrollScaleChangeFactor = 0.05f; | 29 const float kScrollScaleChangeFactor = 0.05f; |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 //////////////////////////////////////////////////////////////////////////////// | 461 //////////////////////////////////////////////////////////////////////////////// |
| 462 // MagnificationController: | 462 // MagnificationController: |
| 463 | 463 |
| 464 // static | 464 // static |
| 465 MagnificationController* MagnificationController::CreateInstance() { | 465 MagnificationController* MagnificationController::CreateInstance() { |
| 466 return new MagnificationControllerImpl(); | 466 return new MagnificationControllerImpl(); |
| 467 } | 467 } |
| 468 | 468 |
| 469 } // namespace internal | 469 } // namespace internal |
| 470 } // namespace ash | 470 } // namespace ash |
| OLD | NEW |