Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame] | 1 | # Copyright 2017 The Chromium Authors |
thakis | 18e42641 | 2017-03-15 12:06:37 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
mark a. foltz | e185ab2fa | 2023-11-06 21:21:20 | [diff] [blame] | 5 | import("//build/config/cast.gni") |
Hyowon Kim | 338fa27 | 2023-04-07 01:52:17 | [diff] [blame] | 6 | import("//build/config/features.gni") |
Dave Tapuska | d83fc38 | 2023-12-08 14:36:59 | [diff] [blame^] | 7 | import("//ppapi/buildflags/buildflags.gni") |
Luke Halliwell | 16136de | 2017-07-05 21:15:56 | [diff] [blame] | 8 | |
thakis | 18e42641 | 2017-03-15 12:06:37 | [diff] [blame] | 9 | declare_args() { |
| 10 | # Whether or not to use external popup menu. |
Hyowon Kim | 338fa27 | 2023-04-07 01:52:17 | [diff] [blame] | 11 | use_external_popup_menu = is_android || (is_apple && use_blink) |
Luke Halliwell | 16136de | 2017-07-05 21:15:56 | [diff] [blame] | 12 | |
| 13 | # Whether to perform critical memory pressure handling when in foreground (if |
| 14 | # false, critical memory pressure is treated like moderate pressure in foreground). |
Ryan Keane | 190beb3 | 2022-06-16 01:08:10 | [diff] [blame] | 15 | allow_critical_memory_pressure_handling_in_foreground = |
| 16 | is_castos || is_cast_android |
Dominic Farolino | 2bcc0b5a | 2020-12-08 20:32:41 | [diff] [blame] | 17 | |
| 18 | # Whether or not MBI mode (Multiple Blink Isolates) should be enabled, |
| 19 | # depending on the build argument. |
| 20 | mbi_mode = is_linux || is_chromeos || is_mac || is_win || is_android |
Dave Tapuska | d83fc38 | 2023-12-08 14:36:59 | [diff] [blame^] | 21 | |
| 22 | # We allow legacy IPC to be enabled for Android (GIN Java bridge), and |
| 23 | # Pepper usage. |
| 24 | content_enable_legacy_ipc = is_android || enable_ppapi |
thakis | 18e42641 | 2017-03-15 12:06:37 | [diff] [blame] | 25 | } |
Robert Sesek | 3f789b50 | 2019-10-08 21:43:07 | [diff] [blame] | 26 | |
Dominic Farolino | 2bcc0b5a | 2020-12-08 20:32:41 | [diff] [blame] | 27 | enable_screen_capture = |
Bryant Chandler | a4e835f5 | 2022-05-13 17:51:35 | [diff] [blame] | 28 | is_linux || is_chromeos || is_mac || is_win || is_android || is_fuchsia |