| 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/frame/SettingsDelegate.h" | 32 #include "core/frame/SettingsDelegate.h" |
| 33 #include "platform/Timer.h" | 33 #include "platform/Timer.h" |
| 34 #include "platform/fonts/GenericFontFamilySettings.h" | 34 #include "platform/fonts/GenericFontFamilySettings.h" |
| 35 #include "platform/geometry/IntSize.h" | 35 #include "platform/geometry/IntSize.h" |
| 36 #include "platform/weborigin/KURL.h" | 36 #include "platform/weborigin/KURL.h" |
| 37 #include "wtf/HashSet.h" | 37 #include "wtf/HashSet.h" |
| 38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 enum EditableLinkBehavior { | |
| 43 EditableLinkDefaultBehavior, | |
| 44 EditableLinkAlwaysLive, | |
| 45 EditableLinkOnlyLiveWithShiftKey, | |
| 46 EditableLinkLiveWhenNotFocused, | |
| 47 EditableLinkNeverLive | |
| 48 }; | |
| 49 | |
| 50 class Settings { | 42 class Settings { |
| 51 WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED; | 43 WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED; |
| 52 public: | 44 public: |
| 53 static PassOwnPtr<Settings> create(); | 45 static PassOwnPtr<Settings> create(); |
| 54 | 46 |
| 55 GenericFontFamilySettings& genericFontFamilySettings() { return m_genericFon
tFamilySettings; } | 47 GenericFontFamilySettings& genericFontFamilySettings() { return m_genericFon
tFamilySettings; } |
| 56 void notifyGenericFontFamilyChange() { invalidate(SettingsDelegate::FontFami
lyChange); } | 48 void notifyGenericFontFamilyChange() { invalidate(SettingsDelegate::FontFami
lyChange); } |
| 57 | 49 |
| 58 void setTextAutosizingEnabled(bool); | 50 void setTextAutosizingEnabled(bool); |
| 59 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; } | 51 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 86 bool m_openGLMultisamplingEnabled : 1; | 78 bool m_openGLMultisamplingEnabled : 1; |
| 87 IntSize m_textAutosizingWindowSizeOverride; | 79 IntSize m_textAutosizingWindowSizeOverride; |
| 88 bool m_textAutosizingEnabled : 1; | 80 bool m_textAutosizingEnabled : 1; |
| 89 | 81 |
| 90 SETTINGS_MEMBER_VARIABLES | 82 SETTINGS_MEMBER_VARIABLES |
| 91 }; | 83 }; |
| 92 | 84 |
| 93 } // namespace WebCore | 85 } // namespace WebCore |
| 94 | 86 |
| 95 #endif // Settings_h | 87 #endif // Settings_h |
| OLD | NEW |