Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 67348d42460aba5a1b62fa69ff2fff9ec61c3bcd..3724f2f624acde4d94407cca4febf0701d1de656 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -75,6 +75,9 @@ |
# Enable HiDPI support. |
'enable_hidpi%': 0, |
+ |
+ # Enable top chrome material design. |
+ 'enable_topchrome_md%' : 0, |
# Enable Wayland display server support. |
'enable_wayland_server%' : 0, |
@@ -162,6 +165,7 @@ |
'use_openssl_certs%': '<(use_openssl_certs)', |
'enable_viewport%': '<(enable_viewport)', |
'enable_hidpi%': '<(enable_hidpi)', |
+ 'enable_topchrome_md%': '<(enable_topchrome_md)', |
'enable_wayland_server%': '<(enable_wayland_server)', |
'enable_wifi_display%': '<(enable_wifi_display)', |
'buildtype%': '<(buildtype)', |
@@ -246,6 +250,12 @@ |
# Enable HiDPI on Mac OS, Windows and Linux (including Chrome OS). |
['OS=="mac" or OS=="win" or OS=="linux" or OS=="openbsd" or OS=="freebsd"', { |
'enable_hidpi%': 1, |
+ }], |
+ |
+ # Enable Top Chrome Material Design on Chrome OS, Windows, and Linux, |
+ # Mac, and *BSD. |
+ ['chromeos==1 or OS=="win" or OS=="linux" or OS=="mac" or OS=="openbsd" or OS=="freebsd"', { |
+ 'enable_topchrome_md%': 1, |
}], |
# Enable App Launcher on ChromeOS only. |
@@ -341,6 +351,7 @@ |
'use_openssl_certs%': '<(use_openssl_certs)', |
'enable_viewport%': '<(enable_viewport)', |
'enable_hidpi%': '<(enable_hidpi)', |
+ 'enable_topchrome_md%': '<(enable_topchrome_md)', |
'enable_wayland_server%': '<(enable_wayland_server)', |
'enable_wifi_display%': '<(enable_wifi_display)', |
'android_channel%': '<(android_channel)', |
@@ -1154,6 +1165,7 @@ |
'is_cast_desktop_build%': '<(is_cast_desktop_build)', |
'enable_viewport%': '<(enable_viewport)', |
'enable_hidpi%': '<(enable_hidpi)', |
+ 'enable_topchrome_md%': '<(enable_topchrome_md)', |
'enable_wayland_server%': '<(enable_wayland_server)', |
'enable_wifi_display%': '<(enable_wifi_display)', |
'image_loader_extension%': '<(image_loader_extension)', |
@@ -2186,6 +2198,9 @@ |
['mac_views_browser==1', { |
'grit_defines': ['-D', 'mac_views_browser'], |
}], |
+ ['enable_topchrome_md==1', { |
+ 'grit_defines': ['-D', 'enable_topchrome_md'], |
+ }], |
['enable_resource_whitelist_generation==1 and OS!="win"', { |
'grit_rc_header_format': ['-h', '#define {textual_id} _Pragma("whitelisted_resource_{numeric_id}") {numeric_id}'], |
}], |
@@ -2748,6 +2763,9 @@ |
}], |
['notifications==1', { |
'defines': ['ENABLE_NOTIFICATIONS'], |
+ }], |
+ ['enable_topchrome_md==1', { |
+ 'defines': ['ENABLE_TOPCHROME_MD=1'], |
}], |
['enable_wayland_server==1', { |
'defines': ['ENABLE_WAYLAND_SERVER=1'], |