OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights
reserved. |
3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "core/frame/SettingsDelegate.h" | 37 #include "core/frame/SettingsDelegate.h" |
38 #include "core/html/track/TextTrackKindUserPreference.h" | 38 #include "core/html/track/TextTrackKindUserPreference.h" |
39 #include "platform/Timer.h" | 39 #include "platform/Timer.h" |
40 #include "platform/fonts/GenericFontFamilySettings.h" | 40 #include "platform/fonts/GenericFontFamilySettings.h" |
41 #include "platform/geometry/IntSize.h" | 41 #include "platform/geometry/IntSize.h" |
42 #include "platform/graphics/ImageAnimationPolicy.h" | 42 #include "platform/graphics/ImageAnimationPolicy.h" |
43 #include "platform/weborigin/KURL.h" | 43 #include "platform/weborigin/KURL.h" |
44 #include "public/platform/PointerProperties.h" | 44 #include "public/platform/PointerProperties.h" |
45 #include "public/platform/WebDisplayMode.h" | 45 #include "public/platform/WebDisplayMode.h" |
46 #include "public/platform/WebViewportStyle.h" | 46 #include "public/platform/WebViewportStyle.h" |
| 47 #include <memory> |
47 | 48 |
48 namespace blink { | 49 namespace blink { |
49 | 50 |
50 class CORE_EXPORT Settings { | 51 class CORE_EXPORT Settings { |
51 WTF_MAKE_NONCOPYABLE(Settings); | 52 WTF_MAKE_NONCOPYABLE(Settings); |
52 USING_FAST_MALLOC(Settings); | 53 USING_FAST_MALLOC(Settings); |
53 public: | 54 public: |
54 static PassOwnPtr<Settings> create(); | 55 static std::unique_ptr<Settings> create(); |
55 | 56 |
56 GenericFontFamilySettings& genericFontFamilySettings() { return m_genericFon
tFamilySettings; } | 57 GenericFontFamilySettings& genericFontFamilySettings() { return m_genericFon
tFamilySettings; } |
57 void notifyGenericFontFamilyChange() { invalidate(SettingsDelegate::FontFami
lyChange); } | 58 void notifyGenericFontFamilyChange() { invalidate(SettingsDelegate::FontFami
lyChange); } |
58 | 59 |
59 void setTextAutosizingEnabled(bool); | 60 void setTextAutosizingEnabled(bool); |
60 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; } | 61 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; } |
61 | 62 |
62 // Only set by Layout Tests, and only used if textAutosizingEnabled() return
s true. | 63 // Only set by Layout Tests, and only used if textAutosizingEnabled() return
s true. |
63 void setTextAutosizingWindowSizeOverride(const IntSize&); | 64 void setTextAutosizingWindowSizeOverride(const IntSize&); |
64 const IntSize& textAutosizingWindowSizeOverride() const { return m_textAutos
izingWindowSizeOverride; } | 65 const IntSize& textAutosizingWindowSizeOverride() const { return m_textAutos
izingWindowSizeOverride; } |
(...skipping 16 matching lines...) Expand all Loading... |
81 GenericFontFamilySettings m_genericFontFamilySettings; | 82 GenericFontFamilySettings m_genericFontFamilySettings; |
82 IntSize m_textAutosizingWindowSizeOverride; | 83 IntSize m_textAutosizingWindowSizeOverride; |
83 bool m_textAutosizingEnabled : 1; | 84 bool m_textAutosizingEnabled : 1; |
84 | 85 |
85 SETTINGS_MEMBER_VARIABLES | 86 SETTINGS_MEMBER_VARIABLES |
86 }; | 87 }; |
87 | 88 |
88 } // namespace blink | 89 } // namespace blink |
89 | 90 |
90 #endif // Settings_h | 91 #endif // Settings_h |
OLD | NEW |