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_FONT_LIST_H_ | 5 #ifndef UI_GFX_FONT_LIST_H_ |
6 #define UI_GFX_FONT_LIST_H_ | 6 #define UI_GFX_FONT_LIST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | |
13 #include "ui/base/ui_export.h" | 12 #include "ui/base/ui_export.h" |
14 #include "ui/gfx/font.h" | 13 #include "ui/gfx/font.h" |
15 | 14 |
16 namespace gfx { | 15 namespace gfx { |
17 | 16 |
18 // FontList represents a list of fonts either in the form of Font vector or in | 17 // FontList represents a list of fonts either in the form of Font vector or in |
19 // the form of a string representing font names, styles, and size. | 18 // the form of a string representing font names, styles, and size. |
20 // | 19 // |
21 // The string representation is in the form "FAMILY_LIST [STYLE_OPTIONS] SIZE", | 20 // The string representation is in the form "FAMILY_LIST [STYLE_OPTIONS] SIZE", |
22 // where FAMILY_LIST is a comma separated list of families terminated by a | 21 // where FAMILY_LIST is a comma separated list of families terminated by a |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // format. | 80 // format. |
82 // If FontList is constructed with a vector of font, | 81 // If FontList is constructed with a vector of font, |
83 // |font_description_string_| is not initialized during construction. Instead, | 82 // |font_description_string_| is not initialized during construction. Instead, |
84 // it is computed lazily when user asked to get the font description string. | 83 // it is computed lazily when user asked to get the font description string. |
85 mutable std::string font_description_string_; | 84 mutable std::string font_description_string_; |
86 }; | 85 }; |
87 | 86 |
88 } // namespace gfx | 87 } // namespace gfx |
89 | 88 |
90 #endif // UI_GFX_FONT_LIST_H_ | 89 #endif // UI_GFX_FONT_LIST_H_ |
OLD | NEW |