| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_GFX_TRANSFORM_H_ | 5 #ifndef UI_GFX_TRANSFORM_H_ |
| 6 #define UI_GFX_TRANSFORM_H_ | 6 #define UI_GFX_TRANSFORM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 namespace gfx { | 9 namespace gfx { |
| 10 class Point; | 10 class Point; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // transformed successfully. | 67 // transformed successfully. |
| 68 virtual bool TransformPoint(gfx::Point* point) = 0; | 68 virtual bool TransformPoint(gfx::Point* point) = 0; |
| 69 | 69 |
| 70 // Applies the reverse transformation on the point. Returns true if the point | 70 // Applies the reverse transformation on the point. Returns true if the point |
| 71 // is transformed successfully. | 71 // is transformed successfully. |
| 72 virtual bool TransformPointReverse(gfx::Point* point) = 0; | 72 virtual bool TransformPointReverse(gfx::Point* point) = 0; |
| 73 | 73 |
| 74 // Applies transformation on the rectangle. Returns true of the rectangle is | 74 // Applies transformation on the rectangle. Returns true of the rectangle is |
| 75 // transformed successfully. | 75 // transformed successfully. |
| 76 virtual bool TransformRect(gfx::Rect* rect) = 0; | 76 virtual bool TransformRect(gfx::Rect* rect) = 0; |
| 77 |
| 78 // operator=. |
| 79 virtual void Copy(const Transform& transform) = 0; |
| 77 }; | 80 }; |
| 78 | 81 |
| 79 } // namespace ui | 82 } // namespace ui |
| 80 | 83 |
| 81 #endif // UI_GFX_TRANSFORM_H_ | 84 #endif // UI_GFX_TRANSFORM_H_ |
| OLD | NEW |