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

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

Issue 13947045: Magnifier: Move the cursor directly to the root window host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/magnifier/magnification_controller.cc » ('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 #ifndef ASH_MAGNIFIER_MAGNIFICATION_CONTROLLER_H_ 5 #ifndef ASH_MAGNIFIER_MAGNIFICATION_CONTROLLER_H_
6 #define ASH_MAGNIFIER_MAGNIFICATION_CONTROLLER_H_ 6 #define ASH_MAGNIFIER_MAGNIFICATION_CONTROLLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 29 matching lines...) Expand all
40 virtual void MoveWindow(int x, int y, bool animate) = 0; 40 virtual void MoveWindow(int x, int y, bool animate) = 0;
41 virtual void MoveWindow(const gfx::Point& point, bool animate) = 0; 41 virtual void MoveWindow(const gfx::Point& point, bool animate) = 0;
42 // Returns the current top-left point of the magnification window. 42 // Returns the current top-left point of the magnification window.
43 virtual gfx::Point GetWindowPosition() const = 0; 43 virtual gfx::Point GetWindowPosition() const = 0;
44 44
45 // Ensures that the given point/rect is inside the magnification window. If 45 // Ensures that the given point/rect is inside the magnification window. If
46 // not, the controller moves the window to contain the given point/rect. 46 // not, the controller moves the window to contain the given point/rect.
47 virtual void EnsureRectIsVisible(const gfx::Rect& rect, bool animate) = 0; 47 virtual void EnsureRectIsVisible(const gfx::Rect& rect, bool animate) = 0;
48 virtual void EnsurePointIsVisible(const gfx::Point& point, bool animate) = 0; 48 virtual void EnsurePointIsVisible(const gfx::Point& point, bool animate) = 0;
49 49
50 // Returns |point_of_interest_| in MagnificationControllerImpl. This is
51 // the internal variable to stores the last mouse cursor (or last touched)
52 // location. This method is only for test purpose.
53 virtual gfx::Point GetPointOfInterestForTesting() = 0;
54
50 protected: 55 protected:
51 MagnificationController() {} 56 MagnificationController() {}
52 }; 57 };
53 58
54 } // namespace ash 59 } // namespace ash
55 60
56 #endif // ASH_MAGNIFIER_MAGNIFICATION_CONTROLLER_H_ 61 #endif // ASH_MAGNIFIER_MAGNIFICATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/magnifier/magnification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698