| 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 23 matching lines...) Expand all Loading... |
| 34 #include "core/editing/SelectionStrategy.h" | 34 #include "core/editing/SelectionStrategy.h" |
| 35 #include "core/frame/SettingsDelegate.h" | 35 #include "core/frame/SettingsDelegate.h" |
| 36 #include "core/html/track/TextTrackKindUserPreference.h" | 36 #include "core/html/track/TextTrackKindUserPreference.h" |
| 37 #include "platform/Timer.h" | 37 #include "platform/Timer.h" |
| 38 #include "platform/fonts/GenericFontFamilySettings.h" | 38 #include "platform/fonts/GenericFontFamilySettings.h" |
| 39 #include "platform/geometry/IntSize.h" | 39 #include "platform/geometry/IntSize.h" |
| 40 #include "platform/graphics/ImageAnimationPolicy.h" | 40 #include "platform/graphics/ImageAnimationPolicy.h" |
| 41 #include "platform/weborigin/KURL.h" | 41 #include "platform/weborigin/KURL.h" |
| 42 #include "public/platform/PointerProperties.h" | 42 #include "public/platform/PointerProperties.h" |
| 43 #include "public/platform/WebDisplayMode.h" | 43 #include "public/platform/WebDisplayMode.h" |
| 44 #include "wtf/HashSet.h" | |
| 45 #include "wtf/RefCounted.h" | |
| 46 | 44 |
| 47 namespace blink { | 45 namespace blink { |
| 48 | 46 |
| 49 class CORE_EXPORT Settings { | 47 class CORE_EXPORT Settings { |
| 50 WTF_MAKE_NONCOPYABLE(Settings); USING_FAST_MALLOC(Settings); | 48 WTF_MAKE_NONCOPYABLE(Settings); |
| 49 USING_FAST_MALLOC(Settings); |
| 51 public: | 50 public: |
| 52 static PassOwnPtr<Settings> create(); | 51 static PassOwnPtr<Settings> create(); |
| 53 | 52 |
| 54 GenericFontFamilySettings& genericFontFamilySettings() { return m_genericFon
tFamilySettings; } | 53 GenericFontFamilySettings& genericFontFamilySettings() { return m_genericFon
tFamilySettings; } |
| 55 void notifyGenericFontFamilyChange() { invalidate(SettingsDelegate::FontFami
lyChange); } | 54 void notifyGenericFontFamilyChange() { invalidate(SettingsDelegate::FontFami
lyChange); } |
| 56 | 55 |
| 57 void setTextAutosizingEnabled(bool); | 56 void setTextAutosizingEnabled(bool); |
| 58 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; } | 57 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; } |
| 59 | 58 |
| 60 // Only set by Layout Tests, and only used if textAutosizingEnabled() return
s true. | 59 // Only set by Layout Tests, and only used if textAutosizingEnabled() return
s true. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 79 GenericFontFamilySettings m_genericFontFamilySettings; | 78 GenericFontFamilySettings m_genericFontFamilySettings; |
| 80 IntSize m_textAutosizingWindowSizeOverride; | 79 IntSize m_textAutosizingWindowSizeOverride; |
| 81 bool m_textAutosizingEnabled : 1; | 80 bool m_textAutosizingEnabled : 1; |
| 82 | 81 |
| 83 SETTINGS_MEMBER_VARIABLES | 82 SETTINGS_MEMBER_VARIABLES |
| 84 }; | 83 }; |
| 85 | 84 |
| 86 } // namespace blink | 85 } // namespace blink |
| 87 | 86 |
| 88 #endif // Settings_h | 87 #endif // Settings_h |
| OLD | NEW |