Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: ash/magnifier/magnification_controller.cc

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/frame/caption_buttons/frame_size_button.h ('k') | ash/metrics/user_metrics_recorder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/frame/caption_buttons/frame_size_button.h ('k') | ash/metrics/user_metrics_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698