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

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

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
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 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "third_party/skia/include/core/SkMatrix.h" 11 #include "third_party/skia/include/core/SkMatrix.h"
12 #include "ui/ui_api.h"
12 13
13 namespace gfx { 14 namespace gfx {
14 class Point; 15 class Point;
15 class Rect; 16 class Rect;
16 } 17 }
17 18
18 namespace ui { 19 namespace ui {
19 20
20 // 3x3 transformation matrix. Transform is cheap and explicitly allows 21 // 3x3 transformation matrix. Transform is cheap and explicitly allows
21 // copy/assign. 22 // copy/assign.
22 // TODO: make this a 4x4. 23 // TODO: make this a 4x4.
23 class Transform { 24 class UI_API Transform {
24 public: 25 public:
25 Transform(); 26 Transform();
26 ~Transform(); 27 ~Transform();
27 28
28 // NOTE: The 'Set' functions overwrite the previously set transformation 29 // NOTE: The 'Set' functions overwrite the previously set transformation
29 // parameters. The 'Concat' functions apply a transformation (e.g. rotation, 30 // parameters. The 'Concat' functions apply a transformation (e.g. rotation,
30 // scale, translate) on top of the existing transforms, instead of overwriting 31 // scale, translate) on top of the existing transforms, instead of overwriting
31 // them. 32 // them.
32 33
33 // NOTE: The order of the 'Set' function calls do not matter. However, the 34 // NOTE: The order of the 'Set' function calls do not matter. However, the
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 92
92 private: 93 private:
93 SkMatrix matrix_; 94 SkMatrix matrix_;
94 95
95 // copy/assign are allowed. 96 // copy/assign are allowed.
96 }; 97 };
97 98
98 } // namespace ui 99 } // namespace ui
99 100
100 #endif // UI_GFX_TRANSFORM_H_ 101 #endif // UI_GFX_TRANSFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698