| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // FIXME: This does not belong here. | 61 // FIXME: This does not belong here. |
| 62 static void setMockScrollbarsEnabled(bool flag); | 62 static void setMockScrollbarsEnabled(bool flag); |
| 63 static bool mockScrollbarsEnabled(); | 63 static bool mockScrollbarsEnabled(); |
| 64 | 64 |
| 65 // FIXME: naming_utilities.py isn't smart enough to handle OpenGL yet. | 65 // FIXME: naming_utilities.py isn't smart enough to handle OpenGL yet. |
| 66 // It could handle "GL", but that seems a bit overly broad. | 66 // It could handle "GL", but that seems a bit overly broad. |
| 67 void setOpenGLMultisamplingEnabled(bool flag); | 67 void setOpenGLMultisamplingEnabled(bool flag); |
| 68 bool openGLMultisamplingEnabled() { return m_openGLMultisamplingEnabled; } | 68 bool openGLMultisamplingEnabled() { return m_openGLMultisamplingEnabled; } |
| 69 | 69 |
| 70 void setAccessibilityEnabled(bool); |
| 71 bool accessibilityEnabled() const { return m_accessibilityEnabled; } |
| 72 |
| 70 void setDelegate(SettingsDelegate*); | 73 void setDelegate(SettingsDelegate*); |
| 71 | 74 |
| 72 private: | 75 private: |
| 73 Settings(); | 76 Settings(); |
| 74 | 77 |
| 75 void invalidate(SettingsDelegate::ChangeType); | 78 void invalidate(SettingsDelegate::ChangeType); |
| 76 | 79 |
| 77 SettingsDelegate* m_delegate; | 80 SettingsDelegate* m_delegate; |
| 78 | 81 |
| 79 GenericFontFamilySettings m_genericFontFamilySettings; | 82 GenericFontFamilySettings m_genericFontFamilySettings; |
| 80 bool m_openGLMultisamplingEnabled : 1; | 83 bool m_openGLMultisamplingEnabled : 1; |
| 81 IntSize m_textAutosizingWindowSizeOverride; | 84 IntSize m_textAutosizingWindowSizeOverride; |
| 82 bool m_textAutosizingEnabled : 1; | 85 bool m_textAutosizingEnabled : 1; |
| 86 bool m_accessibilityEnabled : 1; |
| 83 | 87 |
| 84 SETTINGS_MEMBER_VARIABLES | 88 SETTINGS_MEMBER_VARIABLES |
| 85 }; | 89 }; |
| 86 | 90 |
| 87 } // namespace blink | 91 } // namespace blink |
| 88 | 92 |
| 89 #endif // Settings_h | 93 #endif // Settings_h |
| OLD | NEW |