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

Unified Diff: build/common.gypi

Issue 1210943008: Patch 2: Added a preprocessor flag for platform spellcheck. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enable_spellcheck_flag
Patch Set: Declared the preprocessor flag in build/config/features.gni Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/config/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 70d2ec571f5181e5207aa9f2df232e9a5445eab8..251bdfe280255fe8fa0c3daa03f67cc643d80b92 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -567,6 +567,10 @@
# Enable spell checker.
'enable_spellcheck%': 1,
+ # Use the operating system spellchecker, e.g. NSSpellChecker on Mac or
+ # SpellCheckerSession on Android.
+ 'use_platform_spellchecker%': 0,
+
# Webrtc compilation is enabled by default. Set to 0 to disable.
'enable_webrtc%': 1,
@@ -819,6 +823,11 @@
'video_hole%': 1,
}],
+ # OSX has a built-in spellchecker can be utilized.
+ ['OS=="mac"', {
+ 'use_platform_spellchecker%': 1,
+ }],
+
# Android OS includes support for proprietary codecs regardless of
# building Chromium or Google Chrome. We also ship Google Chrome and
# Chromecast with proprietary codecs.
@@ -1194,6 +1203,7 @@
'enable_basic_printing%': '<(enable_basic_printing)',
'enable_print_preview%': '<(enable_print_preview)',
'enable_spellcheck%': '<(enable_spellcheck)',
+ 'use_platform_spellchecker%': '<(use_platform_spellchecker)',
'enable_google_now%': '<(enable_google_now)',
'cld_version%': '<(cld_version)',
'cld2_table_size%': '<(cld2_table_size)',
@@ -2985,6 +2995,9 @@
['enable_spellcheck==1', {
'defines': ['ENABLE_SPELLCHECK=1'],
}],
+ ['use_platform_spellchecker', {
+ 'defines': ['USE_PLATFORM_SPELLCHECKER=1'],
+ }],
['enable_captive_portal_detection==1', {
'defines': ['ENABLE_CAPTIVE_PORTAL_DETECTION=1'],
}],
« no previous file with comments | « no previous file | build/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698