#include "base/rust_buildflags.h"
#include "third_party/rust/cxx/v1/cxx.h"
-#if !BUILDFLAG(BUILD_RUST_BASE_CONVERSIONS)
+#if !BUILDFLAG(BUILD_RUST_BASE_CONVERSIONS) && !defined(EWK_BRINGUP) //FIXME:m126 bringup
#error "span_rust.h included without BUILD_RUST_BASE_CONVERSIONS"
#endif
ui::PageTransition transition,
base::TimeTicks match_selection_timestamp,
bool url_typed_without_scheme,
- bool url_typed_with_http_scheme)
+ bool url_typed_with_http_scheme,
+ std::string_view extra_headers)
: destination_url(destination_url),
disposition(disposition),
transition(transition),
match_selection_timestamp(match_selection_timestamp),
url_typed_without_scheme(url_typed_without_scheme),
- url_typed_with_http_scheme(url_typed_with_http_scheme) {}
+ url_typed_with_http_scheme(url_typed_with_http_scheme),
+ extra_headers(extra_headers) {}
};
explicit LocationBar(CommandUpdater* command_updater)
int command = 0;
std::u16string label;
safety_hub::SafetyHubModuleType module;
- MenuNotificationEntry(int command, std::u16string label)
- : command(command), label(label) {}
+ MenuNotificationEntry(int command, std::u16string label, safety_hub::SafetyHubModuleType module)
+ : command(command), label(label), module(module) {}
};
namespace {
ButtonType type;
ui::ButtonStyle style;
ui::ElementIdentifier identifier;
- ButtonConfiguration(std::u16string label,
- ButtonType type,
- ui::ButtonStyle style)
- : label(label), type(type), style(style) {}
};
static int GetViewId(ButtonType button) { return static_cast<int>(button); }
#include "base/check_op.h"
#include "base/containers/span_rust.h"
#include "base/numerics/safe_conversions.h"
+#if !BUILDFLAG(IS_EFL)
#include "components/qr_code_generator/qr_code_generator_ffi_glue.rs.h"
+#endif
namespace qr_code_generator {
base::expected<GeneratedCode, Error> GenerateCode(
base::span<const uint8_t> in,
std::optional<int> min_version) {
+#if BUILDFLAG(IS_EFL)
+ return base::unexpected(Error::kUnknownError);
+#else
rust::Slice<const uint8_t> rs_in = base::SpanToRustSlice(in);
// `min_version` might come from a fuzzer and therefore we use a lenient
code.qr_size = base::checked_cast<int>(result_width);
CHECK_EQ(code.data.size(), static_cast<size_t>(code.qr_size * code.qr_size));
return code;
+#endif
}
} // namespace qr_code_generator
#include "net/cert/x509_certificate.h"
namespace net {
-
+#if !defined(BUILD_CHROME)
namespace {
// Helper function for setting the appropriate CertStatus given a net::Error.
CertStatus MapNetErrorToCertStatus(int error) {
}
}
} // namespace
-
+#endif
struct MockCertVerifier::Rule {
Rule(scoped_refptr<X509Certificate> cert_arg,
const std::string& hostname_arg,
} else {
m_pDevice->SetClip_PathFill(
*pPath, &mtObj2Device,
-#if !defined(EWK_BRINGUP) // FIXME: m120 bringup
+#if !defined(EWK_BRINGUP) || defined(BUILD_CHROME) // FIXME: m120 bringup
CFX_FillRenderOptions(ClipPath.GetClipType(i)));
#else
{.fill_type = ClipPath.GetClipType(i)});
# Should Dawn test binaries (unittests, end2end_tests, perf_tests) be built?
# Independent of use_dawn, which controls whether Dawn is used in Chromium.
build_dawn_tests = is_mac || is_win || is_linux || is_chromeos || is_android
-
- enable_validating_command_decoder = is_android
+ enable_validating_command_decoder = is_android || use_efl
}
declare_args() {