| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef StyleObserver_h |
| 6 #define StyleObserver_h |
| 7 |
| 8 #include "wtf/WeakPtr.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class ComputedStyle; |
| 13 class Element; |
| 14 |
| 15 class StyleObserver { |
| 16 public: |
| 17 StyleObserver(); |
| 18 virtual ~StyleObserver(); |
| 19 virtual void onStyleChanged(const Element*, const ComputedStyle* oldStyle, c
onst ComputedStyle* newStyle) = 0; |
| 20 |
| 21 WeakPtr<StyleObserver> createWeakPtr(); |
| 22 |
| 23 private: |
| 24 WeakPtrFactory<StyleObserver> m_weakPtrFactory; |
| 25 }; |
| 26 |
| 27 } // namespace blink |
| 28 |
| 29 #endif // StyleObserver_h |
| OLD | NEW |