#if defined(TIZEN_AUTOFILL_FW)
void AutofillAgent::ForceResetLastInteractedElements() {
- form_tracker_.ForceResetLastInteractedElements();
+ form_tracker_->ForceResetLastInteractedElements();
}
#endif
prefilled_placeholder_username)) {
#if defined(TIZEN_AUTOFILL_FW)
// We fill username and password directly
- FillField(&username_element, username);
+ FillField(GetFieldRendererId(username_element), username);
}
#else
AutofillField(username, username_element);
if (!is_single_username_fill) {
#if defined(TIZEN_AUTOFILL_FW)
- FillPasswordFieldAndSave(&password_element, password);
+ FillPasswordFieldAndSave(password_element, password);
#else
AutofillField(password, password_element);
#endif
// Returns the PasswordContents reflecting the contents of |fields|.
bool HasPasswordContents(const std::vector<FormFieldData>& fields) {
for (const FormFieldData& field : fields) {
- if (field.form_control_type == FormControlType::kInputPassword) {
+ if (field.form_control_type() == FormControlType::kInputPassword) {
return true;
}
}
FormData form = submitted_manager->GetSubmittedForm()->form_data;
for (size_t i = 0; i < form.fields.size(); i++) {
- if (form.fields[i].is_autofilled) {
+ if (form.fields[i].is_autofilled()) {
LOG(ERROR) << "[Autofill] " << __FUNCTION__ << "\t label : "
- << base::UTF16ToUTF8(form.fields[i].label).c_str();
+ << base::UTF16ToUTF8(form.fields[i].label()).c_str();
LOG(ERROR) << "[Autofill] " << __FUNCTION__
<< " is_autofilled! do not send commit request";
#if BUILDFLAG(IS_CHROMEOS_ASH)
std::unique_ptr<media::SystemEventMonitorImpl> system_event_monitor_;
#endif
+
+#if BUILDFLAG(IS_TIZEN_TV)
+ GlobalRenderFrameHostId render_frame_host_id_;
+#endif
};
} // namespace content
#if BUILDFLAG(IS_TIZEN_TV)
scoped_refptr<DecoderBuffer> DecoderBuffer::CreateTzHandleBuffer(int handle,
int size) {
- auto ptr = scoped_refptr<DecoderBuffer>(new DecoderBuffer(NULL, 0));
+ auto ptr = scoped_refptr<DecoderBuffer>(new DecoderBuffer(0));
ptr->tz_handle_ = handle;
ptr->tz_buffer_size_ = size;
LOG(INFO) << __func__ << "tz_handle : " << handle
// Translate legacy avc1 codec ids (like avc1.66.30 or avc1.77.31) into a new
// style standard avc1 codec ids like avc1.4D002F. If the input codec is not
// recognized as a legacy codec id, then returns the input string unchanged.
-std::string TranslateLegacyAvc1CodecIds(base::StringPiece codec_id);
+std::string TranslateLegacyAvc1CodecIds(std::string_view codec_id);
#endif
MEDIA_EXPORT std::ostream& operator<<(std::ostream& os,
return;
auto old_data_ = buffers_[next_buffer_index_]->data();
- auto old_data_size = buffers_[next_buffer_index_]->data_size();
+ auto old_data_size = buffers_[next_buffer_index_]->size();
// This is used to check whether we do not try to add starting sequence to
// frame that already had it added while demuxing ie. first uploaded frame
break;
}
#if BUILDFLAG(ENABLE_PLATFORM_HEVC)
-#if BUILDFLAG(IS_TIZEN_TV) && !BUILDFLAG(ENABLE_PLATFORM_DOLBY_VISION)
+#if BUILDFLAG(IS_TIZEN_TV) && !BUILDFLAG(ENABLE_PLATFORM_DOLBY_VISION) && \
+ !defined(EWK_BRINGUP) // FIXME: m126 bringup
case FOURCC_DVHE:
// We are either inside a dvhe box, or dvhe-turned-encv box.
// Just try to get to the part of dvhe, which is HEVC (as in
%endif
%if "%{?tizen_profile_name}" == "tv"
+BuildRequires: pkgconfig(launchpad)
+BuildRequires: pkgconfig(autoinput)
BuildRequires: pkgconfig(aul-extension)
BuildRequires: pkgconfig(capi-media-sound-manager)
BuildRequires: pkgconfig(capi-stt-wrapper-tv)
BuildRequires: pkgconfig(capi-appfw-package-manager)
BuildRequires: pkgconfig(capi-appfw-service-application)
BuildRequires: pkgconfig(cynara-client)
-BuildRequires: pkgconfig(launchpad)
BuildRequires: pkgconfig(libwebappenc)
BuildRequires: pkgconfig(message-port)
BuildRequires: pkgconfig(wgt-manifest-handlers)
BuildRequires: app-signer
BuildRequires: curl
BuildRequires: pkgmgr-extension-devel
-BuildRequires: pkgconfig(autoinput)
BuildRequires: pkgconfig(capi-media-player)
BuildRequires: pkgconfig(capi-screensaver)
BuildRequires: pkgconfig(settings-api)
if (settings && !settings->GetForceMainWorldInitialization()) {
LOG(INFO) << "Forcing v8 initialization for hbbtv is enabled.";
// Forcibly instantiate WindowProxy.
- window->GetScriptController().WindowProxy(DOMWrapperWorld::MainWorld());
+ window->GetScriptController().WindowProxy(DOMWrapperWorld::MainWorld(window->GetIsolate()));
}
}
}
}
}
+tizen_pkg_config("autoinput") {
+ packages = []
+ if (tizen_vd_accessory) {
+ packages = [ "autoinput" ]
+ }
+}
+
if (enable_wrt_js) {
tizen_pkg_config("appcore-agent") {
packages = [ "appcore-agent" ]
tizen_pkg_config("aul-extension") {
packages = [ "aul-extension" ]
}
- tizen_pkg_config("autoinput") {
- packages = [ "autoinput" ]
- }
tizen_pkg_config("capi-screensaver") {
packages = [ "capi-screensaver" ]
}
// static
bool IEMEDrmBridge::IsKeySystemSupported(const std::string& key_system) {
CHECK(!key_system.empty());
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
return eme::IEME::isKeySystemSupported(key_system) == eme::kSupported;
+#endif
+ return false;
}
IEMEDrmBridge::IEMEDrmBridge(
switches::kSingleProcess);
LOG(INFO) << "single process mode:" << std::boolalpha << single_process_mode_;
// TODO(mdebski): what is privacy_mode?
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
cdm_.reset(eme::IEME::create(this, key_system_, false));
+#endif
CHECK(cdm_.get());
}
std::optional<base::UnguessableToken> IEMEDrmBridge::GetCdmId() const {
// we want to use Decryptor API
// return CdmContext::kInvalidCdmId;
- return absl::nullopt;
+ return std::nullopt;
}
std::unique_ptr<CallbackRegistration> IEMEDrmBridge::RegisterEventCB(
params.ukidlen = decrypt_conf->key_id().size();
params.pdata = reinterpret_cast<unsigned char*>(
const_cast<unsigned char*>(encrypted->data()));
- params.udatalen = encrypted->data_size();
+ params.udatalen = encrypted->size();
params.poutbuf = nullptr;
params.uoutbuflen = 0;
params.piv = reinterpret_cast<unsigned char*>(
if (buffer->tz_handle())
packet.buffer_size = buffer->tz_buffer_size();
else
- packet.buffer_size = buffer->data_size();
+ packet.buffer_size = buffer->size();
packet.buffer = (char*)(const_cast<unsigned char*>(buffer->data()));
packet.pts = buffer->timestamp().InMilliseconds();
packet.duration = buffer->duration().InMilliseconds();
}
if (tizen_vd_accessory) {
configs += [ "//tizen_src/build:accessory" ]
+ configs += [ "//tizen_src/build:autoinput" ]
}
chrome_version = exec_script(version_script,
[
#if BUILDFLAG(IS_TIZEN)
#include <vconf.h>
+#endif
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP) // FIXME: m126 bringup
#include "components/xwalk_extensions/browser/xwalk_extension_manager.h"
#endif
#include "renderer/content_renderer_client_efl.h"
#include "ui/base/resource/resource_bundle.h"
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP) // FIXME: m126 bringup
#include "components/xwalk_extensions/browser/xwalk_extension_manager.h"
#endif
#if BUILDFLAG(IS_TIZEN)
#include <vconf/vconf.h>
+#endif
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP) // FIXME: m126 bringup
#include "components/xwalk_extensions/renderer/xwalk_extension_renderer_controller.h"
#endif
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
-#if BUILDFLAG(IS_TIZEN_TV)
+#if BUILDFLAG(IS_TIZEN_TV) && !defined(EWK_BRINGUP) // FIXME: m126 bringup
if (command_line.HasSwitch(switches::kXWalkExtensionPath)) {
wrt::XWalkExtensionRendererController::SetPrivilegeChecker(
base::BindRepeating([]() -> bool {
const std::vector<std::string>& key_system_whitelist,
std::vector<std::unique_ptr<media::KeySystemInfo>>* key_systems_info) {
eme::supportedCDMList supportedKeySystems;
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
eme::IEME::enumerateMediaKeySystems(&supportedKeySystems);
+#endif
for (const auto& keySystem : supportedKeySystems) {
if (!key_system_whitelist.empty() &&
std::find(key_system_whitelist.begin(), key_system_whitelist.end(),
inline constexpr char16_t kAboutSrcdocPath16[] = u"srcdoc";
#if BUILDFLAG(IS_TIZEN_TV)
-COMPONENT_EXPORT(URL) extern const char kCIScheme[];
-COMPONENT_EXPORT(URL) extern const char16_t kCIScheme16[];
-COMPONENT_EXPORT(URL) extern const char kDvbScheme[];
-COMPONENT_EXPORT(URL) extern const char16_t kDvbScheme16[];
-COMPONENT_EXPORT(URL) extern const char kHbbTVCarouselScheme[];
-COMPONENT_EXPORT(URL) extern const char16_t kHbbTVCarouselScheme16[];
-COMPONENT_EXPORT(URL) extern const char kMmfScheme[];
-COMPONENT_EXPORT(URL) extern const char16_t kMmfScheme16[];
-COMPONENT_EXPORT(URL) extern const char kOpAppScheme[];
-COMPONENT_EXPORT(URL) extern const char16_t kOpAppScheme16[];
-COMPONENT_EXPORT(URL) extern const char kTVKeyScheme[];
-COMPONENT_EXPORT(URL) extern const char16_t kTVKeyScheme16[];
+inline constexpr const char kCIScheme[] = "ci";
+inline constexpr const char16_t kCIScheme16[] = u"ci";
+inline constexpr const char kDvbScheme[] = "dvb";
+inline constexpr const char16_t kDvbScheme16[] = u"dvb";
+inline constexpr const char kHbbTVCarouselScheme[] = "hbbtv-carousel";
+inline constexpr const char16_t kHbbTVCarouselScheme16[] = u"hbbtv-carousel";
+inline constexpr const char kMmfScheme[] = "mmf";
+inline constexpr const char16_t kMmfScheme16[] = u"mmf";
+inline constexpr const char kOpAppScheme[] = "hbbtv-package";
+inline constexpr const char16_t kOpAppScheme16[] = u"hbbtv-package";
+inline constexpr const char kTVKeyScheme[] = "tvkey-apps";
+inline constexpr const char16_t kTVKeyScheme16[] = u"tvkey-apps";
#endif
inline constexpr char kAboutScheme[] = "about";
inline constexpr char16_t kAboutScheme16[] = u"about";