if (is_android) {
import("//build/config/android/rules.gni")
-} else if (is_linux || is_chromeos) {
+} else if (is_linux || is_chromeos || is_tizen) {
import("//build/linux/extract_symbols.gni")
import("//build/linux/strip_binary.gni")
} else if (is_mac) {
sources += [ "app/chrome_exe_main_aura.cc" ]
}
- if (is_linux || is_chromeos || is_fuchsia) {
+ if (is_linux || is_chromeos || is_fuchsia || is_tizen) {
sources += [
"app/chrome_dll_resource.h",
"app/chrome_main.cc",
}
}
-if (is_linux || is_chromeos) {
+if (is_linux || is_chromeos || is_tizen) {
if (is_official_build) {
group("linux_symbols") {
deps = [
if (is_linux) {
deps += [ ":swiftshader_vk_symbols" ]
}
- if (!is_chromeos) {
+ if (!is_chromeos && !is_tizen) {
deps += [ ":angle_libvulkan_symbols" ]
}
if (build_with_internal_optimization_guide) {
deps = [ "//third_party/angle:libGLESv2" ]
}
- if (!is_chromeos) {
+ if (!is_chromeos && !is_tizen) {
extract_symbols("angle_libvulkan_symbols") {
binary = "$root_out_dir/libvulkan.so.1"
}
}
- if (is_linux || is_win || is_mac || is_chromeos_ash) {
+ if (is_linux || is_win || is_mac || is_chromeos_ash || is_tizen) {
sources += [
"enterprise/connectors/device_trust/device_trust_connector_service.cc",
"enterprise/connectors/device_trust/device_trust_connector_service.h",
deps += [ "//chrome/browser/enterprise/connectors/device_trust/key_management/core/mac" ]
}
- if (is_linux || is_win || is_mac) {
+ if (is_linux || is_win || is_mac || is_tizen) {
sources += [
"enterprise/chrome_browser_main_extra_parts_enterprise.cc",
"enterprise/chrome_browser_main_extra_parts_enterprise.h",
}
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [
"chrome_browser_main_linux.cc",
"chrome_browser_main_linux.h",
}
}
- if (is_linux && use_dbus) {
+ if ((is_linux && use_dbus) || is_tizen) {
sources += [
"dbus_memory_pressure_evaluator_linux.cc",
"dbus_memory_pressure_evaluator_linux.h",
deps += [ "//chrome/common:chrome_features" ]
}
- if (is_linux || is_chromeos_lacros) {
+ if (is_linux || is_chromeos_lacros || is_tizen) {
sources += [
"download/download_status_updater_linux.cc",
"first_run/upgrade_util_linux.cc",
sources += [ "hang_monitor/hang_crash_dump.cc" ]
}
- if (is_win || is_linux || is_chromeos || is_fuchsia) {
+ if (is_win || is_linux || is_chromeos || is_fuchsia || is_tizen) {
sources += [
"renderer_context_menu/spelling_options_submenu_observer.cc",
"renderer_context_menu/spelling_options_submenu_observer.h",
]
}
- if (is_win || is_mac || is_linux) {
+ if (is_win || is_mac || is_linux || is_tizen) {
sources += [
"browser_switcher/alternative_browser_driver.h",
"browser_switcher/browser_switcher_features.cc",
if (is_win) {
sources += [ "browser_switcher/alternative_browser_driver_win.cc" ]
}
- if (is_mac || is_linux) {
+ if (is_mac || is_linux || is_tizen) {
sources += [ "browser_switcher/alternative_browser_driver_posix.cc" ]
}
}
]
}
- if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia) {
+ if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia || is_tizen) {
sources += [
"media/cast_mirroring_service_host.cc",
"media/cast_mirroring_service_host.h",
deps += [ "//ui/ozone" ]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [
"chrome_browser_main_extra_parts_linux.cc",
"chrome_browser_main_extra_parts_linux.h",
if (is_chromeos) {
deps += [ "//chromeos/crosapi/mojom" ]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [ "printing/printer_manager_dialog_linux.cc" ]
}
if (is_fuchsia) {
sources += [ "printing/printer_manager_dialog_fuchsia.cc" ]
}
- if (enable_oop_printing) {
+ if (enable_oop_printing || is_tizen) {
sources += [
"printing/print_backend_service_manager.cc",
"printing/print_backend_service_manager.h",
]
}
- if (is_win || is_linux || is_chromeos) {
+ if (is_win || is_linux || is_chromeos || is_tizen) {
sources += [
"spellchecker/spellcheck_language_blocklist_policy_handler.cc",
"spellchecker/spellcheck_language_blocklist_policy_handler.h",
}
}
- if (use_nss_certs) {
+ if (use_nss_certs || is_tizen) {
sources += [
"certificate_manager_model.cc",
"certificate_manager_model.h",
if (is_chromeos_lacros) {
sources += [ "net/nss_service_lacros.cc" ]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [ "net/nss_service_linux.cc" ]
}
configs += [ "//build/config/linux/nss" ]
deps += [ "//chrome/browser/resources/conflicts:build_ts" ]
}
- if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia) {
+ if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia || is_tizen) {
deps += [ "//services/resource_coordinator/public/mojom:mojom_js" ]
}
deps += [ "//chrome/browser/ui/webui/feed_internals:mojo_bindings_js" ]
}
- if (is_android || is_linux || is_chromeos || is_win) {
+ if (is_android || is_linux || is_chromeos || is_win || is_tizen) {
deps += [ "//chrome/browser/resources/sandbox_internals:build_ts" ]
}
}
ApplyMetricsReportingPolicy();
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if defined(EWK_BRINGUP) && !defined(OS_TIZEN) // FIXME: m108 bringup
ChromeJsErrorReportProcessor::Create();
#endif
+#endif
#if BUILDFLAG(ENABLE_PLUGINS)
content::PluginService::GetInstance()->SetFilter(
#endif // BUILDFLAG(ENABLE_PLUGINS)
#if !BUILDFLAG(IS_ANDROID)
+#if defined(EWK_BRINGUP) && !defined(OS_TIZEN) // FIXME: m108 bringup
storage_monitor::StorageMonitor::Create();
#endif
+#endif
platform_part_->PreMainMessageLoopRun();
// FeatureList, and is done elsewhere.
#endif // BUILDFLAG(IS_CHROMEOS)
-#if !BUILDFLAG(IS_CHROMEOS)
+#if !BUILDFLAG(IS_CHROMEOS) && !defined(OS_TIZEN)
bluez::BluezDBusManager::Initialize(nullptr /* system_bus */);
// Set up crypt config. This needs to be done before anything starts the
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
// Opt into a hardened stack canary mitigation if it hasn't already been
// force-disabled.
+#if !defined(OS_TIZEN)
+ // Causes "stack smashing detected" error on utility service during launch.
if (!browser_command_line.HasSwitch(switches::kChangeStackGuardOnFork)) {
command_line->AppendSwitchASCII(switches::kChangeStackGuardOnFork,
switches::kChangeStackGuardOnForkEnabled);
}
+#endif
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#if BUILDFLAG(IS_ANDROID)
"//google_update",
]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [
"linux_key_rotation_command.cc",
"linux_key_rotation_command.h",
friend = [ ":unit_tests" ]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [
"linux_key_persistence_delegate.cc",
"linux_key_persistence_delegate.h",
"//url",
]
- if (is_linux || is_mac || is_win) {
+ if (is_linux || is_mac || is_win || is_tizen) {
sources += [
"api/system_indicator/system_indicator_api.cc",
"api/system_indicator/system_indicator_api.h",
]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources +=
[ "api/image_writer_private/removable_storage_provider_linux.cc" ]
}
"media_sink_discovery_metrics.h",
]
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [ "discovery_network_list_wifi_linux.cc" ]
}
return resource_file;
}
+#if defined(USE_DBUS)
bool CheckNotificationsNameHasOwnerOrIsActivatable(dbus::Bus* bus) {
dbus::ObjectProxy* dbus_proxy =
bus->GetObjectProxy(DBUS_SERVICE_DBUS, dbus::ObjectPath(DBUS_PATH_DBUS));
}
return false;
}
-
+#endif
} // namespace
// static
return notification_type != NotificationHandler::Type::TRANSIENT;
}
+#if defined(USE_DBUS)
class NotificationPlatformBridgeLinuxImpl
: public NotificationPlatformBridge,
public base::RefCountedThreadSafe<NotificationPlatformBridgeLinuxImpl> {
bool clean_up_on_task_runner_called_ = false;
};
+#endif
+#if defined(USE_DBUS)
NotificationPlatformBridgeLinux::NotificationPlatformBridgeLinux()
: NotificationPlatformBridgeLinux(nullptr) {}
: impl_(new NotificationPlatformBridgeLinuxImpl(bus)) {
impl_->Init();
}
+#else
+NotificationPlatformBridgeLinux::NotificationPlatformBridgeLinux() {}
+#endif
NotificationPlatformBridgeLinux::~NotificationPlatformBridgeLinux() = default;
Profile* profile,
const message_center::Notification& notification,
std::unique_ptr<NotificationCommon::Metadata> metadata) {
+#if defined(USE_DBUS)
impl_->Display(notification_type, profile, notification, std::move(metadata));
+#endif
}
void NotificationPlatformBridgeLinux::Close(
Profile* profile,
const std::string& notification_id) {
+#if defined(USE_DBUS)
impl_->Close(profile, notification_id);
+#endif
}
void NotificationPlatformBridgeLinux::GetDisplayed(
Profile* profile,
GetDisplayedNotificationsCallback callback) const {
+#if defined(USE_DBUS)
impl_->GetDisplayed(profile, std::move(callback));
+#endif
}
void NotificationPlatformBridgeLinux::SetReadyCallback(
NotificationBridgeReadyCallback callback) {
+#if defined(USE_DBUS)
impl_->SetReadyCallback(std::move(callback));
+#endif
}
void NotificationPlatformBridgeLinux::DisplayServiceShutDown(Profile* profile) {
}
void NotificationPlatformBridgeLinux::CleanUp() {
+#if defined(USE_DBUS)
impl_->CleanUp();
+#endif
}
#include "base/memory/ref_counted.h"
#include "chrome/browser/notifications/notification_platform_bridge.h"
+#if defined(USE_DBUS)
class NotificationPlatformBridgeLinuxImpl;
namespace dbus {
class Bus;
}
+#endif
class NotificationPlatformBridgeLinux : public NotificationPlatformBridge {
public:
private:
friend class NotificationPlatformBridgeLinuxTest;
+ void CleanUp();
+#if defined(USE_DBUS)
// Constructor only used in unit testing.
explicit NotificationPlatformBridgeLinux(scoped_refptr<dbus::Bus> bus);
- void CleanUp();
-
scoped_refptr<NotificationPlatformBridgeLinuxImpl> impl_;
+#endif
};
#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_LINUX_H_
ShowItemHelper& operator=(const ShowItemHelper&) = delete;
void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) {
+#if defined(USE_DBUS)
if (!bus_) {
// Sets up the D-Bus connection.
dbus::Bus::Options bus_options;
} else {
CheckFileManagerRunning(profile, full_path);
}
+#endif
}
private:
void OnAppTerminating() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
// The browser process is about to exit. Clean up while we still can.
+#if defined(USE_DBUS)
if (bus_)
bus_->ShutdownOnDBusThreadAndBlock();
bus_.reset();
object_proxy_ = nullptr;
+#endif
}
+#if defined(USE_DBUS)
void CheckFileManagerRunning(Profile* profile,
const base::FilePath& full_path) {
dbus::MethodCall method_call(DBUS_INTERFACE_DBUS, kMethodNameHasOwner);
base::CallbackListSubscription browser_shutdown_subscription_;
base::WeakPtrFactory<ShowItemHelper> weak_ptr_factory_{this};
+#endif
};
void RunCommand(const std::string& command,
source_set("path_parser") {
sources = [ "policy_path_parser.h" ]
- if (is_chromeos || is_linux) {
+ if (is_chromeos || is_linux || is_tizen) {
sources += [ "policy_path_parser_linux.cc" ]
} else if (is_fuchsia) {
sources += [ "policy_path_parser_fuchsia.cc" ]
handlers->AddHandler(std::make_unique<ArcServicePolicyHandler>(
key::kArcGoogleLocationServicesEnabled,
arc::prefs::kArcLocationServiceEnabled));
+#if BUILDFLAG(ENABLE_PRINTING)
handlers->AddHandler(
std::make_unique<PrintingAllowedColorModesPolicyHandler>());
handlers->AddHandler(
handlers->AddHandler(std::make_unique<PrintingColorDefaultPolicyHandler>());
handlers->AddHandler(std::make_unique<PrintingDuplexDefaultPolicyHandler>());
handlers->AddHandler(std::make_unique<PrintingPinDefaultPolicyHandler>());
+#endif
handlers->AddHandler(std::make_unique<IntRangePolicyHandler>(
key::kPrintingMaxSheetsAllowed, prefs::kPrintingMaxSheetsAllowed, 1,
INT_MAX, true));
]
}
- if (is_win || is_mac || is_linux || is_chromeos_ash) {
+ if (is_win || is_mac || is_linux || is_chromeos_ash || is_tizen) {
public_deps += [ "connectors_internals:resources" ]
}
- if (is_win || is_mac || is_linux || is_chromeos_lacros || is_fuchsia) {
+ if (is_win || is_mac || is_linux || is_chromeos_lacros || is_fuchsia ||
+ is_tizen) {
public_deps += [ "browser_switch:resources" ]
}
- if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia) {
+ if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia || is_tizen) {
public_deps += [ "discards:resources" ]
}
- if (is_win || is_mac || is_linux || is_fuchsia) {
+ if (is_win || is_mac || is_linux || is_fuchsia || is_tizen) {
public_deps += [
"app_home:resources",
"app_settings:resources",
]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
public_deps += [ "webui_js_error:resources" ]
}
import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
-assert(is_win || is_mac || is_linux || is_fuchsia)
+assert(is_win || is_mac || is_linux || is_fuchsia || is_tizen)
build_webui("build") {
grd_prefix = "app_settings"
import("//chrome/browser/resources/tools/build_webui.gni")
import("//chrome/common/features.gni")
-assert(is_win || is_mac || is_linux || is_chromeos_lacros || is_fuchsia)
+assert(is_win || is_mac || is_linux || is_chromeos_lacros || is_fuchsia ||
+ is_tizen)
build_webui("build") {
grd_prefix = "browser_switch"
import("//tools/typescript/ts_library.gni")
import("//ui/webui/resources/tools/generate_grd.gni")
-assert(is_fuchsia || is_linux || is_mac || is_win)
+assert(is_fuchsia || is_linux || is_mac || is_win || is_tizen)
grit("apps_resources") {
defines = chrome_grit_defines
import("//tools/grit/preprocess_if_expr.gni")
import("//tools/typescript/ts_library.gni")
-assert(is_android || is_linux || is_chromeos || is_win)
+assert(is_android || is_linux || is_chromeos || is_win || is_tizen)
preprocess_folder = "preprocessed"
import("//chrome/browser/resources/tools/build_webui.gni")
import("//ui/webui/webui_features.gni")
-assert(is_linux || is_chromeos)
+assert(is_linux || is_chromeos || is_tizen)
build_webui("build") {
grd_prefix = "webui_js_error"
]
}
- if (is_linux || is_win) {
+ if (is_linux || is_win || is_tizen) {
sources += [
"download_protection/document_analysis_service.cc",
"download_protection/document_analysis_service.h",
deps += [ "//chrome/browser/vr:vr_base" ]
}
- if (is_win || is_android || is_linux || is_chromeos) {
+ if (is_win || is_android || is_linux || is_chromeos || is_tizen) {
sources += [
"webui/sandbox/sandbox_internals_ui.cc",
"webui/sandbox/sandbox_internals_ui.h",
]
}
- if (is_win || is_linux || is_mac || is_chromeos_ash) {
+ if (is_win || is_linux || is_mac || is_chromeos_ash || is_tizen) {
sources += [
"webui/connectors_internals/connectors_internals_page_handler.cc",
"webui/connectors_internals/connectors_internals_page_handler.h",
]
}
- if (is_linux || is_chromeos_lacros) {
+ if (is_linux || is_chromeos_lacros || is_tizen) {
deps += [ "//ui/base/ime/linux" ]
}
deps += [ "//chrome/browser/ui/webui/settings/chromeos/constants:mojom" ]
}
- if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia) {
+ if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia || is_tizen) {
sources += [
"autofill/payments/virtual_card_selection_dialog_controller.h",
"autofill/payments/virtual_card_selection_dialog_controller_impl.cc",
]
}
- if (is_win || is_mac || is_fuchsia || is_linux) {
+ if (is_win || is_mac || is_fuchsia || is_linux || is_tizen) {
sources += [
"views/web_apps/deprecated_apps_dialog_view.cc",
"views/web_apps/deprecated_apps_dialog_view.h",
deps += [ "//chrome/browser/ui/webui/app_home:mojo_bindings" ]
}
- if (is_win || is_mac || is_fuchsia || is_linux || is_chromeos_lacros) {
+ if (is_win || is_mac || is_fuchsia || is_linux || is_chromeos_lacros ||
+ is_tizen) {
sources += [
"profile_picker.cc",
"profile_picker.h",
}
}
- if (is_linux || is_mac) {
+ if (is_linux || is_mac || is_tizen) {
# The first run dialog shows only on Linux and macOS.
sources += [
"views/first_run_dialog.cc",
]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [
"views/frame/desktop_browser_frame_aura_linux.cc",
"views/frame/desktop_browser_frame_aura_linux.h",
]
}
- if (is_linux || is_chromeos_lacros || is_fuchsia) {
+ if (is_linux || is_chromeos_lacros || is_fuchsia || is_tizen) {
sources += [ "views/apps/chrome_app_window_client_views_aura.cc" ]
}
- if (is_linux || is_chromeos_lacros) {
+ if (is_linux || is_chromeos_lacros || is_tizen) {
sources += [
"views/frame/browser_desktop_window_tree_host.h",
"webui/help/version_updater_basic.cc",
deps += [ "//ui/gfx/x" ]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [
"views/frame/browser_desktop_window_tree_host_linux.cc",
"views/frame/browser_desktop_window_tree_host_linux.h",
}
}
- if (is_win || is_mac || is_linux) {
+ if (is_win || is_mac || is_linux || is_tizen) {
sources += [
"startup/web_app_info_recorder_utils.cc",
"startup/web_app_info_recorder_utils.h",
}
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [
"process_singleton_dialog_linux.h",
"webui/webui_js_error/webui_js_error_ui.cc",
allow_circular_includes_from += [ "//chrome/browser/ui/views" ]
- if (is_linux || is_chromeos_lacros) {
+ if (is_linux || is_chromeos_lacros || is_tizen) {
sources += [
"views/chrome_views_delegate_linux.cc",
"views/frame/browser_frame_view_layout_linux.cc",
]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [ "views/process_singleton_dialog_linux.cc" ]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [
"views/status_icons/status_tray_linux.cc",
"views/status_icons/status_tray_linux.h",
]
}
- if (is_win || is_linux) {
+ if (is_win || is_linux || is_tizen) {
sources += [
"views/bluetooth_device_credentials_view.cc",
"views/bluetooth_device_credentials_view.h",
]
}
- if (is_win || is_fuchsia || is_linux || is_chromeos_lacros) {
+ if (is_win || is_fuchsia || is_linux || is_chromeos_lacros || is_tizen) {
sources += [
"views/native_widget_factory.cc",
"views/native_widget_factory.h",
if (use_aura) {
# These files can do Gtk+-based theming for builds with gtk enabled.
- if (is_linux || is_chromeos_lacros) {
+ if (is_linux || is_chromeos_lacros || is_tizen) {
sources += [
"views/chrome_browser_main_extra_parts_views_linux.cc",
"views/chrome_browser_main_extra_parts_views_linux.h",
sources += [ "chromeos/native_chrome_color_mixer_chromeos.cc" ]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [ "linux/native_chrome_color_mixer_linux.cc" ]
}
#include "ui/base/ui_base_features.h"
#include "ui/events/event_constants.h"
+#if defined(OS_TIZEN)
+#include <bits/range_access.h>
+#endif
+
namespace {
// NOTE: Between each ifdef block, keep the list in the same
{ui::VKEY_SPACE, ui::EF_CONTROL_DOWN, IDC_TOGGLE_QUICK_COMMANDS},
#endif // !BUILDFLAG(IS_CHROMEOS)
#endif // !BUILDFLAG(IS_MAC)
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(ENABLE_SCREEN_AI_SERVICE) && \
+ (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS))
{ui::VKEY_S, ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN,
IDC_RUN_SCREEN_AI_VISUAL_ANNOTATIONS},
#endif
]
}
- if (is_mac || is_win || is_linux || is_chromeos || is_fuchsia) {
+ if (is_mac || is_win || is_linux || is_chromeos || is_fuchsia || is_tizen) {
sources += [
"chrome_untrusted_web_ui_configs_desktop.cc",
"chrome_untrusted_web_ui_configs_desktop.h",
sources += [ "os_integration/web_app_stubs.cc" ]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
# Desktop linux, doesn't count ChromeOS.
sources += [
"os_integration/web_app_file_handler_registration_linux.cc",
]
}
- if (is_win || is_mac || is_linux) {
+ if (is_win || is_mac || is_linux || is_tizen) {
sources += [
"os_integration/url_handler_manager_impl.cc",
"os_integration/url_handler_manager_impl.h",
]
}
- if (is_win || is_mac || is_linux) {
+ if (is_win || is_mac || is_linux || is_tizen) {
sources += [ "$root_gen_dir/chrome/app_settings_resources.pak" ]
deps += [ "//chrome/browser/resources/app_settings:resources" ]
}
public_deps += [ "//chrome/common/safe_browsing" ]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [
"auto_start_linux.cc",
"auto_start_linux.h",
"//chromeos/lacros:lacros_paths",
]
public_deps += [ "//chromeos/crosapi/mojom" ]
- } else if (is_linux || is_chromeos) {
+ } else if (is_linux || is_chromeos || is_tizen) {
sources += [ "chrome_paths_linux.cc" ]
deps += [ ":channel_info" ]
}
"users_private.idl",
"wm_desks_private.idl",
]
-} else if (is_linux || is_chromeos || is_win) {
+} else if (is_linux || is_chromeos || is_win || is_tizen) {
schema_sources_ += [ "input_ime.json" ]
}
schema_sources_ += [ "mdns.idl" ]
}
-if (is_linux || is_mac || is_win) {
+if (is_linux || is_mac || is_win || is_tizen) {
schema_sources_ += [ "system_indicator.idl" ]
}
enable_basic_print_dialog = enable_basic_printing && !is_chromeos
# Enables usage of notifications via Chrome's MessageCenter.
- enable_chrome_notifications = is_mac || is_win || is_linux || is_fuchsia
+ enable_chrome_notifications =
+ is_mac || is_win || is_linux || is_fuchsia || is_tizen
# Disable Click to Call on Fuchsia.
enable_click_to_call = !is_fuchsia
"importer_url_row.h",
"pstore_declarations.h",
]
- if (is_chromeos || is_linux || is_fuchsia) {
+ if (is_chromeos || is_linux || is_fuchsia || is_tizen) {
sources += [ "firefox_importer_utils_linux.cc" ]
} else if (is_mac) {
sources += [
public_deps = [ "//components/safe_browsing/core/common/proto:csd_proto" ]
}
- if (is_linux || is_win) {
+ if (is_linux || is_win || is_tizen) {
source_set("document_analyzer_results") {
sources = [
"document_analyzer_results.cc",
public_deps = [ "//components/safe_browsing/core/common/proto:csd_proto" ]
}
- if (is_linux || is_win) {
+ if (is_linux || is_win || is_tizen) {
source_set("document_analyzer") {
sources = [
"document_analyzer.cc",
"//third_party/zlib/google:zip",
]
- if (is_linux || is_win) {
+ if (is_linux || is_win || is_tizen) {
public_deps += [ ":document_analyzer_results" ]
}
}
"safe_archive_analyzer.h",
]
- if (is_linux || is_win) {
+ if (is_linux || is_win || is_tizen) {
sources += [
"document_analysis_service.cc",
"document_analysis_service.h",
"//chrome/common/safe_browsing:rar_analyzer",
]
- if (is_linux || is_win) {
+ if (is_linux || is_win || is_tizen) {
deps += [
"//chrome/common/safe_browsing:document_analyzer",
"//chrome/common/safe_browsing:document_analyzer_results",
]
}
- if (is_linux || is_win) {
+ if (is_linux || is_win || is_tizen) {
sources += [
"sandboxed_document_analyzer.cc",
"sandboxed_document_analyzer.h",
"//testing/gtest",
]
- if (is_linux || is_win) {
+ if (is_linux || is_win || is_tizen) {
deps += [ "//chrome/common/safe_browsing:document_analyzer_results" ]
}
}
enable_xz_extractor = enable_extensions
# Enables analysis of Office documents for malicious macros
- enable_maldoca = is_linux || is_win
+ enable_maldoca = is_linux || is_win || is_tizen
}
]
}
- if (enable_oop_printing) {
+ if (enable_oop_printing || is_tizen) {
sources += [
"print_backend_service_impl.cc",
"print_backend_service_impl.h",
sources += [ "pdf_to_emf_converter.mojom" ]
}
- if (enable_oop_printing) {
+ if (enable_oop_printing || is_tizen) {
sources += [ "print_backend_service.mojom" ]
public_deps += [
"//printing/backend/mojom",
deps += [ "//components/device_signals/core/system_signals/mac" ]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
public += [ "linux/linux_system_signals_service.h" ]
sources += [ "linux/linux_system_signals_service.cc" ]
]
}
- if (is_win || is_mac || is_linux) {
+ if (is_win || is_mac || is_linux || is_tizen) {
deps += [ "//chrome/services/system_signals" ]
}
}
]
# TODO(crbug.com/1302871): Simplify this. Is `!is_android` sufficient?
- if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia) {
+ if (is_win || is_mac || is_linux || is_chromeos || is_fuchsia || is_tizen) {
deps += [ "//chrome/services/printing:lib" ]
}
sources += [ "crashpad_linux.cc" ]
}
- if (is_chromeos || is_castos) {
+ if (is_chromeos || is_castos || is_tizen) {
sources += [
"breakpad_linux.cc",
"breakpad_linux.h",
libs = [ "log" ]
}
- if (is_android || is_linux || is_chromeos) {
+ if (is_android || is_linux || is_chromeos || is_tizen) {
deps += [
"//base:base_static",
"//components/crash/core/common",
]
}
- if (is_chromeos || is_castos) {
+ if (is_chromeos || is_castos || is_tizen) {
deps += [ "//third_party/breakpad:client" ]
}
}
}
-if (is_mac || is_android || is_linux || is_chromeos) {
+if (is_mac || is_android || is_linux || is_chromeos || is_tizen) {
# We build a chromium-specific crashpad_handler executable so that we can
# define custom UserStreamDataSources.
executable("chrome_crashpad_handler") {
declare_args() {
# If set to true, this will stub out and disable the entire crash key system.
- use_crash_key_stubs = is_fuchsia || is_tizen
+ use_crash_key_stubs = is_fuchsia
}
group("common") {
public_deps += [ "//components/device_signals/core/common/win" ]
}
- if (is_win || is_linux || is_mac) {
+ if (is_win || is_linux || is_mac || is_tizen) {
public += [ "pref_names.h" ]
sources += [ "pref_names.cc" ]
}
sources += [ "win/platform_utils_win.cc" ]
}
- if (is_mac || is_linux) {
+ if (is_mac || is_linux || is_tizen) {
sources += [ "posix/platform_utils_posix.cc" ]
}
"platform_delegate.cc",
]
- if (is_win || is_mac || is_linux) {
+ if (is_win || is_mac || is_linux || is_tizen) {
public += [ "base_platform_delegate.h" ]
sources += [ "base_platform_delegate.cc" ]
]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [
"drive_metrics_provider_linux.cc",
"psi_memory_parser.h",
sources += [ "drive_metrics_provider_fuchsia.cc" ]
}
- if (is_win || is_linux) {
+ if (is_win || is_linux || is_tizen) {
sources += [
"motherboard.cc",
"motherboard.h",
rebase_path(app_restrictions_path, root_build_dir),
"--risk-tag-header=" + rebase_path(risk_tag_header_path, root_build_dir),
]
+
+ if (is_tizen) {
+ args += [ "--target-platform=linux" ]
+ }
}
action("full_runtime_code_generate") {
rebase_path(policy_common_definitions_full_runtime_proto_path,
root_build_dir),
]
+
+ if (is_tizen) {
+ args += [ "--target-platform=linux" ]
+ }
}
policy_templates_grd_file = "resources/policy_templates.grd"
''')
f.write('#endif\n\n')
- f.write('#if !defined (OS_TIZEN)\n'
- 'const PolicyDetails* GetChromePolicyDetails('
+ f.write('const PolicyDetails* GetChromePolicyDetails('
'const std::string& policy) {\n')
if schema_generator.property_nodes:
f.write(' // First index in kPropertyNodes of the Chrome policies.\n'
''')
else:
f.write('return nullptr;')
- f.write('}\n' '#endif\n\n')
+ f.write('}\n\n')
f.write('namespace key {\n\n')
for policy in policies:
sources += [ "local_device_info_util_ios.mm" ]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [ "local_device_info_util_linux.cc" ]
}
"socket.h",
]
- if (is_chromeos || is_linux) {
+ if (is_chromeos || is_linux || is_tizen) {
sources += [
"bluez/metrics_recorder.cc",
"bluez/metrics_recorder.h",
// TODO: Ideally this should be handled by our feature system, so that this
// code doesn't even compile on OSes it isn't being used on, but currently this
// is not possible.
+#if !defined(OS_TIZEN)
#if !BUILDFLAG(IS_WIN)
base::WeakPtr<device::BluetoothLocalGattService> service =
device::BluetoothLocalGattService::Create(
#else
Respond(Error(kErrorPlatformNotSupported));
#endif
+#endif
}
// createCharacteristic:
return;
}
+#if !defined(OS_TIZEN)
base::WeakPtr<device::BluetoothLocalGattCharacteristic> characteristic =
device::BluetoothLocalGattCharacteristic::Create(
device::BluetoothUUID(params_->characteristic.uuid),
Respond(ArgumentList(apibtle::CreateCharacteristic::Results::Create(
characteristic->GetIdentifier())));
+#endif
}
// createDescriptor:
return;
}
+#if !defined(OS_TIZEN)
base::WeakPtr<device::BluetoothLocalGattDescriptor> descriptor =
device::BluetoothLocalGattDescriptor::Create(
device::BluetoothUUID(params_->descriptor.uuid),
Respond(ArgumentList(
apibtle::CreateDescriptor::Results::Create(descriptor->GetIdentifier())));
+#endif
}
// registerService:
sources += [ "cpu_info_provider_mac.cc" ]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [ "cpu_info_provider_linux.cc" ]
}
import("//build/config/chromecast_build.gni")
declare_args() {
- enable_extensions = !is_android && !is_ios && !is_castos && !is_tizen
+ enable_extensions = !is_android && !is_ios && !is_castos
# Compile time flag for the Autofill Assistant API.
# WARNING: This must not be enabled in official builds.
]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [ "lib/browser/headless_browser_main_parts_linux.cc" ]
}
bluez::BluezDBusManager::Initialize(/*system_bus=*/nullptr);
#endif
-#if !BUILDFLAG(IS_CHROMEOS)
+#if !BUILDFLAG(IS_CHROMEOS) && !defined(OS_TIZEN)
// Set up crypt config. This needs to be done before anything starts the
// network service, as the raw encryption key needs to be shared with the
// network service for encrypted cookie storage.
%if 0%{?build_ewk_unittests}
ewk_unittests \
%endif
- efl_webprocess chromium-ewk efl_webview_app mini_browser ubrowser content_shell
+ efl_webprocess chromium-ewk efl_webview_app mini_browser ubrowser content_shell chrome
%if 0%{?_enable_unittests}
ninja %{_smp_mflags} -C"%{OUTPUT_FOLDER}" angle_unittests env_chromium_unittests cacheinvalidation_unittests \
install -m 0644 "%{OUTPUT_FOLDER}"/content_shell.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"
install -m 0644 "%{OUTPUT_FOLDER}"/resources/*.edj "%{buildroot}%{CHROMIUM_DATA_DIR}"/themes
+install -m 0644 "%{OUTPUT_FOLDER}"/locales/*.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"/locales
+install -m 0644 "%{OUTPUT_FOLDER}"/chrome_100_percent.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"
+install -m 0644 "%{OUTPUT_FOLDER}"/resources.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"
+install -m 0644 "%{OUTPUT_FOLDER}"/ui_resources_100_percent.pak "%{buildroot}%{CHROMIUM_EXE_DIR}"
+
mkdir -p "%{buildroot}"/usr/apps/org.tizen.%{name}/bin
install -m 0755 "%{OUTPUT_FOLDER}"/efl_webview_app "%{buildroot}"/usr/apps/org.tizen.%{name}/bin/
install -m 0755 "%{OUTPUT_FOLDER}"/mini_browser "%{buildroot}"/usr/apps/org.tizen.%{name}/bin/
install -m 0755 "%{OUTPUT_FOLDER}"/libminigbm.so "%{buildroot}"%{_libdir}
+install -m 0755 "%{OUTPUT_FOLDER}"/chrome "%{buildroot}%{CHROMIUM_EXE_DIR}"/chrome
+sed 's#@binary@#%{CHROMIUM_EXE_DIR}/chrome#' %{SOURCE1} > "%{buildroot}"%{_bindir}/chrome
+
+install -m 0755 "%{OUTPUT_FOLDER}"/chrome_crashpad_handler "%{buildroot}%{CHROMIUM_EXE_DIR}"/chrome_crashpad_handler
+sed 's#@binary@#%{CHROMIUM_EXE_DIR}/chrome_crashpad_handler#' %{SOURCE1} > "%{buildroot}"%{_bindir}/chrome_crashpad_handler
+
%if 0%{?_enable_unittests}
install -d "%{INSTALL_ROOT}%{CHROMIUM_UNITTESTS_DIR}"
for test in "%{OUTPUT_FOLDER}/*_unittests"; do
%{CHROMIUM_LOCALE_DIR}
%{CHROMIUM_EXE_DIR}/content_shell
%{_bindir}/content_shell
+%{CHROMIUM_EXE_DIR}/chrome_100_percent.pak
+%{CHROMIUM_EXE_DIR}/resources.pak
+%{CHROMIUM_EXE_DIR}/ui_resources_100_percent.pak
+%{CHROMIUM_EXE_DIR}/locales/*.pak
+%{CHROMIUM_EXE_DIR}/chrome
+%{_bindir}/chrome
+%{CHROMIUM_EXE_DIR}/chrome_crashpad_handler
+%{_bindir}/chrome_crashpad_handler
%files devel
%defattr(-,root,root,-)
deps += [ "//printing" ]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [
"pdfium/pdfium_font_linux.cc",
"pdfium/pdfium_font_linux.h",
]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
# TODO(crbug.com/1302059): After PPAPI deprecation, there will only be one
# caller left. Move inside the file with the caller.
static_library("font_table_linux") {
]
}
-if (enable_oop_printing && (is_linux || is_chromeos)) {
+if (enable_oop_printing && (is_linux || is_chromeos || is_tizen)) {
source_set("printing_sandbox_hook") {
sources = [
"sandbox/print_backend_sandbox_hook_linux.cc",
if (enable_oop_printing) {
mojom("printing_context") {
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
enabled_features = [ "is_linux_or_chromeos" ]
}
]
enabled_features = []
- if (is_linux || is_chromeos || is_android) {
+ if (is_linux || is_chromeos || is_android || is_tizen) {
enabled_features += [ "private_swap_info" ]
}
]
}
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [
"src/browser/src/client_posix.cc",
"src/browser/src/client_posix.h",
]
}
- if ((is_linux || is_chromeos) && current_cpu == "arm64") {
+ if ((is_linux || is_chromeos || is_tizen) && current_cpu == "arm64") {
sources = [
"src/src/arm/linux/aarch64-isa.c",
"src/src/arm/linux/api.h",
cpuinfo_log_error("operating system is not supported in cpuinfo");
#endif
#elif CPUINFO_ARCH_ARM || CPUINFO_ARCH_ARM64
- #if defined(__linux__)
+ #if defined(__linux__) && defined(__tizen__) // FIXME: m108 bringup (__tizen__ is not defined)
pthread_once(&init_guard, &cpuinfo_arm_linux_init);
#elif defined(__MACH__) && defined(__APPLE__)
pthread_once(&init_guard, &cpuinfo_arm_mach_init);
]
}
- if (crashpad_is_linux || crashpad_is_android) {
+ if (crashpad_is_linux || crashpad_is_android || is_tizen) {
sources += [
"crashpad_client_linux.cc",
"simulate_crash_linux.h",
]
}
- if (is_linux || is_chromeos || is_fuchsia) {
+ if (is_linux || is_chromeos || is_fuchsia || is_tizen) {
sources += [ "linux/fx_linux_impl.cpp" ]
}
# Analogous to cmake's |ruy_5_DRUY_HAVE_CPUINFO|.
config("ruy_cpuinfo_config") {
- if (use_cpuinfo) {
+ if (use_cpuinfo && !is_tizen) { # FIXME: m108 bringup
defines = [ "RUY_HAVE_CPUINFO" ]
}
}
python_ver=\"$(getPythonVersion)\"
is_official_build=true
enable_nacl=false
- enable_basic_printing=false
- enable_print_preview=false
+ enable_basic_printing=true
+ enable_print_preview=true
tizen_multimedia_eme_support=false
use_xkbcommon=true
target_os="\"tizen\""
# Whether the message center should be included for displaying notifications.
enable_message_center =
- is_win || is_mac || is_linux || is_chromeos || is_fuchsia
+ is_win || is_mac || is_linux || is_chromeos || is_fuchsia || is_tizen
enable_hidpi = !is_android
}
"//ui/views",
]
- if (is_linux || is_chromeos || is_android || is_fuchsia) {
+ if (is_linux || is_chromeos || is_android || is_fuchsia || is_tizen) {
if (use_ozone) {
sources += [ "unhandled_keyboard_event_handler_ozone.cc" ]
deps += [ "//ui/ozone" ]