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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 // used on zooming to keep this location visible. | 241 // used on zooming to keep this location visible. |
242 gfx::Point point_of_interest_; | 242 gfx::Point point_of_interest_; |
243 | 243 |
244 // Current scale, origin (left-top) position of the magnification window. | 244 // Current scale, origin (left-top) position of the magnification window. |
245 float scale_; | 245 float scale_; |
246 gfx::PointF origin_; | 246 gfx::PointF origin_; |
247 | 247 |
248 ScrollDirection scroll_direction_; | 248 ScrollDirection scroll_direction_; |
249 | 249 |
250 // Timer for moving magnifier window when it fires. | 250 // Timer for moving magnifier window when it fires. |
251 base::OneShotTimer<MagnificationControllerImpl> move_magnifier_timer_; | 251 base::OneShotTimer move_magnifier_timer_; |
252 | 252 |
253 // Most recent caret position in |root_window_| coordinates. | 253 // Most recent caret position in |root_window_| coordinates. |
254 gfx::Point caret_point_; | 254 gfx::Point caret_point_; |
255 | 255 |
256 // Flag for disabling moving magnifier delay. It can only be true in testing | 256 // Flag for disabling moving magnifier delay. It can only be true in testing |
257 // mode. | 257 // mode. |
258 bool disable_move_magnifier_delay_; | 258 bool disable_move_magnifier_delay_; |
259 | 259 |
260 DISALLOW_COPY_AND_ASSIGN(MagnificationControllerImpl); | 260 DISALLOW_COPY_AND_ASSIGN(MagnificationControllerImpl); |
261 }; | 261 }; |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 | 846 |
847 //////////////////////////////////////////////////////////////////////////////// | 847 //////////////////////////////////////////////////////////////////////////////// |
848 // MagnificationController: | 848 // MagnificationController: |
849 | 849 |
850 // static | 850 // static |
851 MagnificationController* MagnificationController::CreateInstance() { | 851 MagnificationController* MagnificationController::CreateInstance() { |
852 return new MagnificationControllerImpl(); | 852 return new MagnificationControllerImpl(); |
853 } | 853 } |
854 | 854 |
855 } // namespace ash | 855 } // namespace ash |
OLD | NEW |