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

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 "third_party/skia/include/utils/SkMatrix44.h" 9 #include "third_party/skia/include/utils/SkMatrix44.h"
10 #include "ui/ui_api.h"
10 11
11 namespace gfx { 12 namespace gfx {
12 class Rect; 13 class Rect;
13 class Point; 14 class Point;
14 class Point3f; 15 class Point3f;
15 } 16 }
16 17
17 namespace ui { 18 namespace ui {
18 19
19 // 4x4 transformation matrix. Transform is cheap and explicitly allows 20 // 4x4 transformation matrix. Transform is cheap and explicitly allows
20 // copy/assign. 21 // copy/assign.
21 class Transform { 22 class UI_API Transform {
22 public: 23 public:
23 Transform(); 24 Transform();
24 ~Transform(); 25 ~Transform();
25 26
26 bool operator==(const Transform& rhs) const; 27 bool operator==(const Transform& rhs) const;
27 bool operator!=(const Transform& rhs) const; 28 bool operator!=(const Transform& rhs) const;
28 29
29 // NOTE: The 'Set' functions overwrite the previously set transformation 30 // NOTE: The 'Set' functions overwrite the previously set transformation
30 // parameters. The 'Concat' functions apply a transformation (e.g. rotation, 31 // parameters. The 'Concat' functions apply a transformation (e.g. rotation,
31 // scale, translate) on top of the existing transforms, instead of overwriting 32 // scale, translate) on top of the existing transforms, instead of overwriting
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 gfx::Point3f& point) const; 108 gfx::Point3f& point) const;
108 109
109 SkMatrix44 matrix_; 110 SkMatrix44 matrix_;
110 111
111 // copy/assign are allowed. 112 // copy/assign are allowed.
112 }; 113 };
113 114
114 }// namespace ui 115 }// namespace ui
115 116
116 #endif // UI_GFX_TRANSFORM_H_ 117 #endif // UI_GFX_TRANSFORM_H_
OLDNEW
« no previous file with comments | « ui/gfx/surface/surface.gyp ('k') | ui/gfx/win_util.h » ('j') | ui/ui.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698