| OLD | NEW |
| 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 PPAPI_SHARED_IMPL_FONT_IMPL_H_ | 5 #ifndef PPAPI_SHARED_IMPL_FONT_IMPL_H_ |
| 6 #define PPAPI_SHARED_IMPL_FONT_IMPL_H_ | 6 #define PPAPI_SHARED_IMPL_FONT_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
| 14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
| 15 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 15 | 16 |
| 16 struct PP_FontDescription_Dev; | 17 struct PP_FontDescription_Dev; |
| 17 | 18 |
| 18 namespace ppapi { | 19 namespace ppapi { |
| 19 | 20 |
| 20 class FontImpl { | 21 class PPAPI_SHARED_EXPORT FontImpl { |
| 21 public: | 22 public: |
| 22 // Validates the parameters in thee description. Can be called on any thread. | 23 // Validates the parameters in thee description. Can be called on any thread. |
| 23 static bool IsPPFontDescriptionValid(const PP_FontDescription_Dev& desc); | 24 static bool IsPPFontDescriptionValid(const PP_FontDescription_Dev& desc); |
| 24 | 25 |
| 25 private: | 26 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(FontImpl); | 27 DISALLOW_COPY_AND_ASSIGN(FontImpl); |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 } // namespace ppapi | 30 } // namespace ppapi |
| 30 | 31 |
| 31 #endif // PPAPI_SHARED_IMPL_FONT_IMPL_H_ | 32 #endif // PPAPI_SHARED_IMPL_FONT_IMPL_H_ |
| OLD | NEW |