| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 Settings* settings() const { return m_settings.get(); } | 49 Settings* settings() const { return m_settings.get(); } |
| 50 | 50 |
| 51 // We currently use an enum instead of individual invalidation | 51 // We currently use an enum instead of individual invalidation |
| 52 // functions to make generating Settings.in slightly easier. | 52 // functions to make generating Settings.in slightly easier. |
| 53 enum ChangeType { | 53 enum ChangeType { |
| 54 StyleChange, | 54 StyleChange, |
| 55 ViewportDescriptionChange, | 55 ViewportDescriptionChange, |
| 56 ViewportRuleChange, | 56 ViewportRuleChange, |
| 57 DNSPrefetchingChange, | 57 DNSPrefetchingChange, |
| 58 MultisamplingChange, | |
| 59 ImageLoadingChange, | 58 ImageLoadingChange, |
| 60 TextAutosizingChange, | 59 TextAutosizingChange, |
| 61 FontFamilyChange, | 60 FontFamilyChange, |
| 62 AcceleratedCompositingChange, | 61 AcceleratedCompositingChange, |
| 63 MediaQueryChange, | 62 MediaQueryChange, |
| 64 AccessibilityStateChange, | 63 AccessibilityStateChange, |
| 65 TextTrackKindUserPreferenceChange, | 64 TextTrackKindUserPreferenceChange, |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 virtual void settingsChanged(ChangeType) = 0; | 67 virtual void settingsChanged(ChangeType) = 0; |
| 69 | 68 |
| 70 protected: | 69 protected: |
| 71 OwnPtr<Settings> const m_settings; | 70 OwnPtr<Settings> const m_settings; |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace blink | 73 } // namespace blink |
| 75 | 74 |
| 76 #endif // SettingsDelegate_h | 75 #endif // SettingsDelegate_h |
| OLD | NEW |