| 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 "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
| 9 #include "ash/system/tray/system_tray_delegate.h" | 9 #include "ash/system/tray/system_tray_delegate.h" |
| 10 #include "ui/aura/client/cursor_client.h" | 10 #include "ui/aura/client/cursor_client.h" |
| 11 #include "ui/aura/event_filter.h" | 11 #include "ui/aura/event_filter.h" |
| 12 #include "ui/aura/root_window.h" | 12 #include "ui/aura/root_window.h" |
| 13 #include "ui/aura/shared/compound_event_filter.h" | |
| 14 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
| 15 #include "ui/aura/window_property.h" | 14 #include "ui/aura/window_property.h" |
| 16 #include "ui/base/events/event.h" | 15 #include "ui/base/events/event.h" |
| 17 #include "ui/compositor/dip_util.h" | 16 #include "ui/compositor/dip_util.h" |
| 18 #include "ui/compositor/layer.h" | 17 #include "ui/compositor/layer.h" |
| 19 #include "ui/compositor/layer_animation_observer.h" | 18 #include "ui/compositor/layer_animation_observer.h" |
| 20 #include "ui/compositor/scoped_layer_animation_settings.h" | 19 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 21 #include "ui/gfx/screen.h" | 20 #include "ui/gfx/screen.h" |
| 21 #include "ui/views/corewm/compound_event_filter.h" |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 const float kMaxMagnifiedScale = 4.0f; | 25 const float kMaxMagnifiedScale = 4.0f; |
| 26 const float kMaxMagnifiedScaleThreshold = 4.0f; | 26 const float kMaxMagnifiedScaleThreshold = 4.0f; |
| 27 const float kMinMagnifiedScaleThreshold = 1.1f; | 27 const float kMinMagnifiedScaleThreshold = 1.1f; |
| 28 const float kNonMagnifiedScale = 1.0f; | 28 const float kNonMagnifiedScale = 1.0f; |
| 29 | 29 |
| 30 const float kInitialMagnifiedScale = 2.0f; | 30 const float kInitialMagnifiedScale = 2.0f; |
| 31 const float kScrollScaleChangeFactor = 0.05f; | 31 const float kScrollScaleChangeFactor = 0.05f; |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 //////////////////////////////////////////////////////////////////////////////// | 503 //////////////////////////////////////////////////////////////////////////////// |
| 504 // MagnificationController: | 504 // MagnificationController: |
| 505 | 505 |
| 506 // static | 506 // static |
| 507 MagnificationController* MagnificationController::CreateInstance() { | 507 MagnificationController* MagnificationController::CreateInstance() { |
| 508 return new MagnificationControllerImpl(); | 508 return new MagnificationControllerImpl(); |
| 509 } | 509 } |
| 510 | 510 |
| 511 } // namespace internal | 511 } // namespace internal |
| 512 } // namespace ash | 512 } // namespace ash |
| OLD | NEW |