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 #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 Loading... | |
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 // For test. | |
51 virtual gfx::Point GetPointOfInterestForTesting() = 0; | |
sky
2013/04/25 14:41:35
point of interest? What is this?
yoshiki
2013/04/25 16:05:19
The value of point_of_interest is the last cursor
sky
2013/04/25 16:46:59
My point is there is no description of the method
| |
52 | |
50 protected: | 53 protected: |
51 MagnificationController() {} | 54 MagnificationController() {} |
52 }; | 55 }; |
53 | 56 |
54 } // namespace ash | 57 } // namespace ash |
55 | 58 |
56 #endif // ASH_MAGNIFIER_MAGNIFICATION_CONTROLLER_H_ | 59 #endif // ASH_MAGNIFIER_MAGNIFICATION_CONTROLLER_H_ |
OLD | NEW |