Chromium Code Reviews| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 | 66 |
| 67 // FIXME: This does not belong here. | 67 // FIXME: This does not belong here. |
| 68 static void setMockScrollbarsEnabled(bool flag); | 68 static void setMockScrollbarsEnabled(bool flag); |
| 69 static bool mockScrollbarsEnabled(); | 69 static bool mockScrollbarsEnabled(); |
| 70 | 70 |
| 71 // FIXME: naming_utilities.py isn't smart enough to handle OpenGL yet. | 71 // FIXME: naming_utilities.py isn't smart enough to handle OpenGL yet. |
| 72 // It could handle "GL", but that seems a bit overly broad. | 72 // It could handle "GL", but that seems a bit overly broad. |
| 73 void setOpenGLMultisamplingEnabled(bool flag); | 73 void setOpenGLMultisamplingEnabled(bool flag); |
| 74 bool openGLMultisamplingEnabled() { return m_openGLMultisamplingEnabled; } | 74 bool openGLMultisamplingEnabled() { return m_openGLMultisamplingEnabled; } |
| 75 | 75 |
| 76 void setPreciseMemoryInfoEnabled(bool); | |
| 77 bool preciseMemoryInfoEnabled() const; | |
| 78 | |
|
abarth-chromium
2014/04/23 18:04:37
Please do not add more functions to Settings. We
| |
| 76 void setDelegate(SettingsDelegate*); | 79 void setDelegate(SettingsDelegate*); |
| 77 | 80 |
| 78 private: | 81 private: |
| 79 Settings(); | 82 Settings(); |
| 80 | 83 |
| 81 void invalidate(SettingsDelegate::ChangeType); | 84 void invalidate(SettingsDelegate::ChangeType); |
| 82 | 85 |
| 83 SettingsDelegate* m_delegate; | 86 SettingsDelegate* m_delegate; |
| 84 | 87 |
| 85 GenericFontFamilySettings m_genericFontFamilySettings; | 88 GenericFontFamilySettings m_genericFontFamilySettings; |
| 86 bool m_openGLMultisamplingEnabled : 1; | 89 bool m_openGLMultisamplingEnabled : 1; |
| 87 IntSize m_textAutosizingWindowSizeOverride; | 90 IntSize m_textAutosizingWindowSizeOverride; |
| 88 bool m_textAutosizingEnabled : 1; | 91 bool m_textAutosizingEnabled : 1; |
| 89 | 92 |
| 90 SETTINGS_MEMBER_VARIABLES | 93 SETTINGS_MEMBER_VARIABLES |
| 91 }; | 94 }; |
| 92 | 95 |
| 93 } // namespace WebCore | 96 } // namespace WebCore |
| 94 | 97 |
| 95 #endif // Settings_h | 98 #endif // Settings_h |
| OLD | NEW |