diff options
Diffstat (limited to 'WebCore/editing/TextAffinity.h')
-rw-r--r-- | WebCore/editing/TextAffinity.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/WebCore/editing/TextAffinity.h b/WebCore/editing/TextAffinity.h index 5562cc4..a5565c7 100644 --- a/WebCore/editing/TextAffinity.h +++ b/WebCore/editing/TextAffinity.h @@ -38,20 +38,22 @@ namespace WebCore { // From NSTextView.h: // NSSelectionAffinityUpstream = 0 // NSSelectionAffinityDownstream = 1 -typedef enum { UPSTREAM = 0, DOWNSTREAM = 1 } EAffinity; +enum EAffinity { UPSTREAM = 0, DOWNSTREAM = 1 }; + +} // namespace WebCore #ifdef __OBJC__ -inline NSSelectionAffinity kit(EAffinity affinity) + +inline NSSelectionAffinity kit(WebCore::EAffinity affinity) { return static_cast<NSSelectionAffinity>(affinity); } -inline EAffinity core(NSSelectionAffinity affinity) +inline WebCore::EAffinity core(NSSelectionAffinity affinity) { - return static_cast<EAffinity>(affinity); + return static_cast<WebCore::EAffinity>(affinity); } -#endif -} // namespace WebCore +#endif #endif // TextAffinity_h |