| 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_PLATFORM_FONT_WIN_H_ | 5 #ifndef UI_GFX_PLATFORM_FONT_WIN_H_ |
| 6 #define UI_GFX_PLATFORM_FONT_WIN_H_ | 6 #define UI_GFX_PLATFORM_FONT_WIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Overridden from PlatformFont: | 59 // Overridden from PlatformFont: |
| 60 virtual Font DeriveFont(int size_delta, int style) const override; | 60 virtual Font DeriveFont(int size_delta, int style) const override; |
| 61 virtual int GetHeight() const override; | 61 virtual int GetHeight() const override; |
| 62 virtual int GetBaseline() const override; | 62 virtual int GetBaseline() const override; |
| 63 virtual int GetCapHeight() const override; | 63 virtual int GetCapHeight() const override; |
| 64 virtual int GetExpectedTextWidth(int length) const override; | 64 virtual int GetExpectedTextWidth(int length) const override; |
| 65 virtual int GetStyle() const override; | 65 virtual int GetStyle() const override; |
| 66 virtual std::string GetFontName() const override; | 66 virtual std::string GetFontName() const override; |
| 67 virtual std::string GetActualFontNameForTesting() const override; | 67 virtual std::string GetActualFontNameForTesting() const override; |
| 68 virtual int GetFontSize() const override; | 68 virtual int GetFontSize() const override; |
| 69 virtual const FontRenderParams& GetFontRenderParams() const override; | 69 virtual const FontRenderParams& GetFontRenderParams() override; |
| 70 virtual NativeFont GetNativeFont() const override; | 70 virtual NativeFont GetNativeFont() const override; |
| 71 | 71 |
| 72 // Called once during initialization if we should be retrieving font metrics | 72 // Called once during initialization if we should be retrieving font metrics |
| 73 // from skia and DirectWrite. | 73 // from skia and DirectWrite. |
| 74 static void SetDirectWriteFactory(IDWriteFactory* factory); | 74 static void SetDirectWriteFactory(IDWriteFactory* factory); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_UniscribeFallback); | 77 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, HarfBuzz_UniscribeFallback); |
| 78 | 78 |
| 79 virtual ~PlatformFontWin() {} | 79 virtual ~PlatformFontWin() {} |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 // Pointer to the global IDWriteFactory interface. | 184 // Pointer to the global IDWriteFactory interface. |
| 185 static IDWriteFactory* direct_write_factory_; | 185 static IDWriteFactory* direct_write_factory_; |
| 186 | 186 |
| 187 DISALLOW_COPY_AND_ASSIGN(PlatformFontWin); | 187 DISALLOW_COPY_AND_ASSIGN(PlatformFontWin); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace gfx | 190 } // namespace gfx |
| 191 | 191 |
| 192 #endif // UI_GFX_PLATFORM_FONT_WIN_H_ | 192 #endif // UI_GFX_PLATFORM_FONT_WIN_H_ |
| OLD | NEW |