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

Unified Diff: sky/engine/core/editing/TextAffinity.h

Issue 747663002: Audit all of sky's system <> style includes (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/bindings/core/v8/ScriptRegexp.h ('k') | sky/engine/core/inspector/AsyncCallStackTracker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/editing/TextAffinity.h
diff --git a/sky/engine/core/editing/TextAffinity.h b/sky/engine/core/editing/TextAffinity.h
index d3effaa58d77f9fdcd71c3456b35b10488a1312c..e31878f65a0b3378572f2fa508674ac16ec10087 100644
--- a/sky/engine/core/editing/TextAffinity.h
+++ b/sky/engine/core/editing/TextAffinity.h
@@ -26,13 +26,9 @@
#ifndef TextAffinity_h
#define TextAffinity_h
-#ifdef __OBJC__
-#include <AppKit/NSTextView.h>
-#endif
-
namespace blink {
-// These match the AppKit values for these concepts.
+// Historically these matched the AppKit values for these concepts.
// From NSTextView.h:
// NSSelectionAffinityUpstream = 0
// NSSelectionAffinityDownstream = 1
@@ -40,18 +36,4 @@ enum EAffinity { UPSTREAM = 0, DOWNSTREAM = 1 };
} // namespace blink
-#ifdef __OBJC__
-
-inline NSSelectionAffinity kit(blink::EAffinity affinity)
-{
- return static_cast<NSSelectionAffinity>(affinity);
-}
-
-inline blink::EAffinity core(NSSelectionAffinity affinity)
-{
- return static_cast<blink::EAffinity>(affinity);
-}
-
-#endif
-
#endif // TextAffinity_h
« no previous file with comments | « sky/engine/bindings/core/v8/ScriptRegexp.h ('k') | sky/engine/core/inspector/AsyncCallStackTracker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698