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

Side by Side Diff: ui/gfx/transform.h

Issue 6993002: Adds assignment operator like function to Transform. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | « no previous file | ui/gfx/transform_skia.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) 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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/transform_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698