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 UI_GFX_RENDER_TEXT_MAC_H_ | 5 #ifndef UI_GFX_RENDER_TEXT_MAC_H_ |
6 #define UI_GFX_RENDER_TEXT_MAC_H_ | 6 #define UI_GFX_RENDER_TEXT_MAC_H_ |
7 | 7 |
8 #include <ApplicationServices/ApplicationServices.h> | 8 #include <ApplicationServices/ApplicationServices.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
| 13 #include "base/gtest_prod_util.h" |
13 #include "base/mac/scoped_cftyperef.h" | 14 #include "base/mac/scoped_cftyperef.h" |
14 #include "ui/gfx/gfx_export.h" | 15 #include "ui/gfx/gfx_export.h" |
15 #include "ui/gfx/render_text.h" | 16 #include "ui/gfx/render_text.h" |
16 | 17 |
17 namespace gfx { | 18 namespace gfx { |
18 | 19 |
19 // RenderTextMac is the Mac implementation of RenderText that uses CoreText for | 20 // RenderTextMac is the Mac implementation of RenderText that uses CoreText for |
20 // layout and Skia for drawing. | 21 // layout and Skia for drawing. |
21 // | 22 // |
22 // Note: The current implementation only supports drawing and sizing the text, | 23 // Note: The current implementation only supports drawing and sizing the text, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 120 |
120 // Indicates that |runs_| are valid, set by |ComputeRuns()|. | 121 // Indicates that |runs_| are valid, set by |ComputeRuns()|. |
121 bool runs_valid_; | 122 bool runs_valid_; |
122 | 123 |
123 DISALLOW_COPY_AND_ASSIGN(RenderTextMac); | 124 DISALLOW_COPY_AND_ASSIGN(RenderTextMac); |
124 }; | 125 }; |
125 | 126 |
126 } // namespace gfx | 127 } // namespace gfx |
127 | 128 |
128 #endif // UI_GFX_RENDER_TEXT_MAC_H_ | 129 #endif // UI_GFX_RENDER_TEXT_MAC_H_ |
OLD | NEW |