OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef StyleChangeReason_h | 5 #ifndef StyleChangeReason_h |
6 #define StyleChangeReason_h | 6 #define StyleChangeReason_h |
7 | 7 |
8 #include "core/dom/QualifiedName.h" | 8 #include "core/dom/QualifiedName.h" |
9 #include "wtf/text/AtomicString.h" | 9 #include "wtf/text/AtomicString.h" |
10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 extern const char kWritingModeChange[]; | 48 extern const char kWritingModeChange[]; |
49 extern const char kZoom[]; | 49 extern const char kZoom[]; |
50 } // namespace StyleChangeReason | 50 } // namespace StyleChangeReason |
51 typedef const char StyleChangeReasonString[]; | 51 typedef const char StyleChangeReasonString[]; |
52 | 52 |
53 namespace StyleChangeExtraData { | 53 namespace StyleChangeExtraData { |
54 extern const AtomicString& g_active; | 54 extern const AtomicString& g_active; |
55 extern const AtomicString& g_disabled; | 55 extern const AtomicString& g_disabled; |
56 extern const AtomicString& g_drag; | 56 extern const AtomicString& g_drag; |
57 extern const AtomicString& g_focus; | 57 extern const AtomicString& g_focus; |
| 58 extern const AtomicString& g_focus_within; |
58 extern const AtomicString& g_hover; | 59 extern const AtomicString& g_hover; |
59 extern const AtomicString& g_past; | 60 extern const AtomicString& g_past; |
60 extern const AtomicString& g_unresolved; | 61 extern const AtomicString& g_unresolved; |
61 | 62 |
62 void Init(); | 63 void Init(); |
63 } | 64 } |
64 | 65 |
65 // |StyleChangeReasonForTracing| is used to trace the reason a | 66 // |StyleChangeReasonForTracing| is used to trace the reason a |
66 // |Node::setNeedsStyleRecalc| call was made to show it in DevTools or in | 67 // |Node::setNeedsStyleRecalc| call was made to show it in DevTools or in |
67 // about:tracing. | 68 // about:tracing. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void operator==(const StyleChangeReasonForTracing&) const {} | 101 void operator==(const StyleChangeReasonForTracing&) const {} |
101 void operator!=(const StyleChangeReasonForTracing&) const {} | 102 void operator!=(const StyleChangeReasonForTracing&) const {} |
102 | 103 |
103 const char* reason_; | 104 const char* reason_; |
104 AtomicString extra_data_; | 105 AtomicString extra_data_; |
105 }; | 106 }; |
106 | 107 |
107 } // namespace blink | 108 } // namespace blink |
108 | 109 |
109 #endif // StyleChangeReason_h | 110 #endif // StyleChangeReason_h |
OLD | NEW |