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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/opentype/FontSettings.h

Issue 2581083003: Initial OpenType Font Variations Support (Closed)
Patch Set: Fix Windows compilation by avoiding VLA Created 4 years 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 FontSettings_h 5 #ifndef FontSettings_h
6 #define FontSettings_h 6 #define FontSettings_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 #include "wtf/PassRefPtr.h" 10 #include "wtf/PassRefPtr.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 class PLATFORM_EXPORT FontVariationSettings 74 class PLATFORM_EXPORT FontVariationSettings
75 : public FontSettings<FontVariationAxis>, 75 : public FontSettings<FontVariationAxis>,
76 public RefCounted<FontVariationSettings> { 76 public RefCounted<FontVariationSettings> {
77 WTF_MAKE_NONCOPYABLE(FontVariationSettings); 77 WTF_MAKE_NONCOPYABLE(FontVariationSettings);
78 78
79 public: 79 public:
80 static PassRefPtr<FontVariationSettings> create() { 80 static PassRefPtr<FontVariationSettings> create() {
81 return adoptRef(new FontVariationSettings()); 81 return adoptRef(new FontVariationSettings());
82 } 82 }
83 83
84 unsigned hash() const;
85
84 private: 86 private:
85 FontVariationSettings() = default; 87 FontVariationSettings() = default;
86 }; 88 };
87 89
88 } // namespace blink 90 } // namespace blink
89 91
90 #endif // FontSettings_h 92 #endif // FontSettings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698