| Index: Source/core/style/StyleObserver.h
|
| diff --git a/Source/core/style/StyleObserver.h b/Source/core/style/StyleObserver.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9b8f3d5472c497f858dba8765c3929d1064494b2
|
| --- /dev/null
|
| +++ b/Source/core/style/StyleObserver.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef StyleObserver_h
|
| +#define StyleObserver_h
|
| +
|
| +#include "wtf/WeakPtr.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class ComputedStyle;
|
| +class Element;
|
| +
|
| +class StyleObserver {
|
| +public:
|
| + StyleObserver();
|
| + virtual ~StyleObserver();
|
| + virtual void onStyleChanged(const Element*, const ComputedStyle* oldStyle, const ComputedStyle* newStyle) = 0;
|
| +
|
| + WeakPtr<StyleObserver> createWeakPtr();
|
| +
|
| +private:
|
| + WeakPtrFactory<StyleObserver> m_weakPtrFactory;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // StyleObserver_h
|
|
|