Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: Source/core/style/StyleObserver.h

Issue 1323243002: WIP - Rough draft of style observation in style of apply hooks. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/style/StyleObserver.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/style/StyleObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698