| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 public: | 43 public: |
| 44 explicit SettingsDelegate(PassOwnPtr<Settings>); | 44 explicit SettingsDelegate(PassOwnPtr<Settings>); |
| 45 virtual ~SettingsDelegate(); | 45 virtual ~SettingsDelegate(); |
| 46 | 46 |
| 47 Settings* settings() const { return m_settings.get(); } | 47 Settings* settings() const { return m_settings.get(); } |
| 48 | 48 |
| 49 // We currently use an enum instead of individual invalidation | 49 // We currently use an enum instead of individual invalidation |
| 50 // functions to make generating Settings.in slightly easier. | 50 // functions to make generating Settings.in slightly easier. |
| 51 enum ChangeType { | 51 enum ChangeType { |
| 52 StyleChange, | 52 StyleChange, |
| 53 ViewportDescriptionChange, | |
| 54 MediaTypeChange, | 53 MediaTypeChange, |
| 55 MultisamplingChange, | 54 MultisamplingChange, |
| 56 ImageLoadingChange, | 55 ImageLoadingChange, |
| 57 FontFamilyChange, | 56 FontFamilyChange, |
| 58 AcceleratedCompositingChange, | 57 AcceleratedCompositingChange, |
| 59 MediaQueryChange, | 58 MediaQueryChange, |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 virtual void settingsChanged(ChangeType) = 0; | 61 virtual void settingsChanged(ChangeType) = 0; |
| 63 | 62 |
| 64 protected: | 63 protected: |
| 65 OwnPtr<Settings> const m_settings; | 64 OwnPtr<Settings> const m_settings; |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 } // namespace blink | 67 } // namespace blink |
| 69 | 68 |
| 70 #endif // SettingsDelegate_h | 69 #endif // SettingsDelegate_h |
| OLD | NEW |