]
}
- if (is_linux || is_chromeos || is_android || is_fuchsia) {
+ if (is_linux || is_chromeos || is_android || is_fuchsia || is_tizen) {
sources += [ "task/thread_pool/semaphore/semaphore_posix.cc" ]
}
}
}
-if (is_linux || is_chromeos) {
+if (is_linux || is_chromeos || is_tizen) {
# Split out as a separate target for two reasons:
# - the line number reader is 2x slower in debug builds if not optimized,
# leading to a worse dev experience and test timeouts.
#if BUILDFLAG(IS_TIZEN)
log_priority priority = DLOG_UNKNOWN;
switch (severity_) {
- case LOG_INFO:
+ case LOGGING_INFO:
priority = DLOG_INFO;
break;
- case LOG_WARNING:
+ case LOGGING_WARNING:
priority = DLOG_WARN;
break;
- case LOG_ERROR:
+ case LOGGING_ERROR:
priority = DLOG_ERROR;
break;
- case LOG_FATAL:
+ case LOGGING_FATAL:
priority = DLOG_FATAL;
break;
}
# Don't check in changes that set this to false for more platforms; doing so
# is not supported.
use_custom_libcxx = is_fuchsia || is_android || is_apple || is_linux ||
- is_chromeos || (is_win && is_clang)
+ is_chromeos || (is_win && is_clang) || is_tizen
# Use libc++ instead of stdlibc++ when using the host_cpu toolchain, even if
# use_custom_libcxx is false. This is useful for cross-compiles where a custom
from_pass->backdrop_filters,
from_pass->backdrop_filter_bounds, content_usage,
from_pass->has_transparent_background,
+#if defined(TIZEN_VIDEO_HOLE)
+ false,
+#endif
from_pass->cache_render_pass,
from_pass->has_damage_from_contributing_content,
from_pass->generate_mipmap);
<part file="webxr_strings.grdp" />
</if>
- <if expr="not is_tizen">
<!-- Generic terms -->
<message name="IDS_CANCEL" desc="Used for Cancel on buttons">
Cancel
<message name="IDS_CLEAR" desc="A generic term for Clearing input fields." formatter_data="android_java">
Clear
</message>
- </if>
<message name="IDS_CLOSE" desc="A generic term for Close on buttons and menus.">
Close
</message>
declare_args() {
# If set to true, this will stub out and disable the entire crash key system.
- use_crash_key_stubs = is_fuchsia
+ use_crash_key_stubs = is_fuchsia || is_tizen
}
group("common") {
# Indicates support for content analysis against a cloud agent for Enterprise
# Connector policies.
- enterprise_local_content_analysis = is_win || is_mac || is_linux
+ enterprise_local_content_analysis = is_win || is_mac || is_linux || is_tizen
# Indicates support for Data Control rules.
- enterprise_data_controls = is_win || is_mac || is_linux || is_chromeos
+ enterprise_data_controls =
+ is_win || is_mac || is_linux || is_chromeos || is_tizen
# Indicates support for client certificates provisioning.
- enterprise_client_certificates = is_win || is_mac || is_linux
+ enterprise_client_certificates = is_win || is_mac || is_linux || is_tizen
# The watermark is currently implemented using the views framework.
enterprise_watermark =
libs = []
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
sources += [
"core_times.cc",
"core_times.h",
bool is_k_anonymous;
// The last time the unique user count was updated.
base::Time last_updated;
-
-#if BUILDFLAG(IS_TIZEN)
- KAnonymityData(std::string key,
- bool is_k_anonymous,
- base::Time last_updated)
- : key(key),
- is_k_anonymous(is_k_anonymous),
- last_updated(last_updated) {}
-#endif
};
blink::InterestGroup interest_group;
bool is_active() const { return main_frame_routing_id_ != MSG_ROUTING_NONE; }
// Returns true if the `blink::WebView` is active and has not crashed.
+#if BUILDFLAG(IS_TIZEN)
+ bool IsRenderViewLive() const override;
+#else
bool IsRenderViewLive() const;
+#endif
// Called when the `blink::WebView` in the renderer process has been created,
// at which point IsRenderViewLive() becomes true, and the mojo connections to
content_enable_legacy_ipc = is_android || enable_ppapi || use_efl
}
-enable_screen_capture =
- is_linux || is_chromeos || is_mac || is_win || is_android || is_fuchsia
+enable_screen_capture = is_linux || is_chromeos || is_mac || is_win ||
+ is_android || is_fuchsia || is_tizen
"//ui/latency/ipc",
]
- if (is_tizen) {
- sources += [ "gpu_sandbox_hook_linux.cc" ]
- }
-
if (!is_chromeos_ash || !is_chrome_branded) {
deps += [
"//services/shape_detection:lib",
#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_DELEGATE_H_
#include "base/functional/callback_forward.h"
+#include "mojo/public/cpp/bindings/pending_receiver.h"
#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_ANDROID)
namespace media::mojom {
ukm_recorder_ = ukm::MojoUkmRecorder::Create(*factory);
#if defined(TIZEN_ATK_SUPPORT)
- settings->SetAccessibilityEnabled(true);
+ render_frame_->GetWebView()->GetSettings()->SetAccessibilityEnabled(true);
#endif
#if BUILDFLAG(IS_ANDROID)
"//chrome/browser/ui/exclusive_access/fullscreen_within_tab_helper.h",
"//chrome/browser/ui/exclusive_access/keyboard_lock_controller.cc",
"//chrome/browser/ui/exclusive_access/keyboard_lock_controller.h",
- "//chrome/browser/ui/exclusive_access/mouse_lock_controller.cc",
- "//chrome/browser/ui/exclusive_access/mouse_lock_controller.h",
"//chrome/browser/ui/frame/window_frame_util.cc",
"//chrome/browser/ui/frame/window_frame_util.h",
"//chrome/browser/ui/ui_features.cc",
std::unique_ptr<MediaUrlDemuxer> media_url_demuxer =
std::make_unique<MediaUrlDemuxer>(
media_task_runner_, loaded_url_, site_for_cookies_, top_frame_origin_,
+#if BUILDFLAG(IS_ANDROID)
has_storage_access_, allow_media_player_renderer_credentials_,
+#else
+ // The platform media player in Tizen OS doesn't require these params
+ // except for the url, so they are not used for tizen multimedia.
+ true, true,
+#endif
expect_hls_content);
media_url_demuxer->SetHeaders(headers);
return media_url_demuxer;
Summary: Chromium EFL
# Version: {TPK_VERSION}.{INTERNAL_API_REVISION}.{CHROMIUM_MAJOR_VERSION}
# The {INTERNAL_API_REVISION} is used for compatibility check with wrtjs.
-Version: 1.1.120
+Version: 1.1.126
# Set by ./tizen_src/scripts/update_chromium_version.sh
-%define upstream_chromium_version 120.0.6099.5
+%define upstream_chromium_version 126.0.6478.126
Release: 1
# The 'Group' should be specified as one of the following valid group list.
# https://wiki.tizen.org/wiki/Packaging/Guidelines#Group_Tag
%define __use_clang 0
%endif
-%define __enable_wrt_js 1
+%define __enable_wrt_js 0
%if 0%{?_disable_wrt_js}
%define __enable_wrt_js 0
%endif
"enable_ewk_interface=true" \
%endif
"enable_wrt_js=%{macro_to_bool __enable_wrt_js}" \
+%if 0%{?__enable_wrt_js}
"xwalk_extension_path=\"%{__xwalk_extension_path}\"" \
"xwalk_extension_service_path=\"%{__xwalk_extension_service_path}\"" \
+%endif
%if %{__enable_network_camera}
"enable_network_camera=true" \
%endif
install -m 0644 third_party/electron_node/src/*.h "%{buildroot}"%{_includedir}/node/
%endif
-%if "%{?tizen_profile_name}" != "tv"
-install -m 0644 %{_libdir}/libscl-common.so "%{buildroot}"%{_libdir}
-%endif
-
%if %{__build_chrome} == 1
install -m 0755 "%{OUTPUT_FOLDER}"/content_shell "%{buildroot}"%{CHROMIUM_LIB_DIR}/bin/
sed 's#@binary@#%{CHROMIUM_LIB_DIR}/bin/content_shell#' %{SOURCE1} > "%{buildroot}"%{_bindir}/content_shell
%endif
%{_xmldir}/%{_pkgid}.xml
%defattr(-,root,root,-)
-%if "%{?tizen_profile_name}" != "tv"
- %{_libdir}/libscl-common.so
-%endif
%if %{__use_clang} == 1
%{_libdir}/../local/lib/libatomic.so*
%endif
#if BUILDFLAG(IS_TIZEN) && !defined(BUILD_CHROME)
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableOffscreenRendering)) {
- return device::NewSystemLocationProvider(main_task_runner_,
- geolocation_manager_);
+ return device::NewSystemLocationProvider();
}
#endif
NetworkContext::NetworkContextHttpAuthPreferences::
~NetworkContextHttpAuthPreferences() = default;
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_TIZEN) // FIXME: m126 bringup
bool NetworkContext::NetworkContextHttpAuthPreferences::AllowGssapiLibraryLoad()
const {
if (network_service_) {
bool IsNetworkForNonceAndUrlAllowed(const base::UnguessableToken& nonce,
const GURL& url) const;
- void CreateCookieManager(mojom::NetworkContextParamsPtr params);
+ void CreateCookieManager(mojom::NetworkContextParamsPtr params) override;
private:
class NetworkContextHttpAuthPreferences : public net::HttpAuthPreferences {
public:
explicit NetworkContextHttpAuthPreferences(NetworkService* network_service);
~NetworkContextHttpAuthPreferences() override;
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_TIZEN) // FIXME: m126 bringup
bool AllowGssapiLibraryLoad() const override;
#endif // BUILDFLAG(IS_LINUX)
private:
]
}
- if (is_linux || is_chromeos) {
+ if (is_linux || is_chromeos || is_tizen) {
deps += [
"//gpu/config",
"//third_party/dawn/include/dawn:cpp_headers",
using CSPDisposition = network::mojom::CSPDisposition;
CSPDisposition should_check_main_world_csp =
ContentSecurityPolicy::ShouldBypassMainWorldDeprecated(
- request.JavascriptWorld().get())
+ request.JavascriptWorld())
? CSPDisposition::DO_NOT_CHECK
: CSPDisposition::CHECK;
settings, false /* is_content_capture */);
}
-#if defined(TIZEN_MULTIMEDIA)
+#if defined(TIZEN_MULTIMEDIA) && !defined(EWK_BRINGUP) // FIXME: m126 bringup
if (settings.Format().pixel_format == media::PIXEL_FORMAT_ENCODED
#if defined(TIZEN_MULTIMEDIA_MJPEG_SUPPORT)
|| settings.Format().pixel_format == media::PIXEL_FORMAT_MJPEG
void PutCurrentFrame() override;
base::TimeDelta GetPreferredRenderInterval() override;
void OnContextLost() override;
+#if defined(TIZEN_VIDEO_HOLE)
+ void SetDrawableContentRectChangedCallback(
+ cc::DrawableContentRectChangedCallback cb) override {}
+ void OnDrawableContentRectChanged(const gfx::Rect&) override {}
+#endif
void StartRendering();
void StopRendering();
} else if (!defined(invoker.sources) || invoker.sources == []) {
# When there are no sources defined, use a source set to avoid creating
# an empty static library (which generally don't work).
- _static_target_type = "source_set"
+ _static_target_type = "static_library"
} else {
# Use static libraries for the static build rather than source sets because
# many of of our test binaries link many large dependencies but often don't
# Enables SwiftShader as the fallback adapter. Requires dawn_swiftshader_dir
# to be set to take effect.
# TODO(dawn:1536): Enable SwiftShader for Android.
- dawn_use_swiftshader = !is_android && !is_ios
+ dawn_use_swiftshader = !is_android && !is_ios && !is_tizen
# Whether we allow building DXC.
# DXC requires SM6.0+ which is blocklisted on x86.
export SCRIPTDIR=$(readlink -e $(dirname $0))
export TOPDIR=$(readlink -f "${SCRIPTDIR}/../..")
export CHROME_SRC="${TOPDIR}"
-export LATEST_TIZEN_VERSION=8.0
+export LATEST_TIZEN_VERSION=9.0
export DEFAULT_TIZEN_VERSION=$LATEST_TIZEN_VERSION
if [ "$(echo "$@" | grep -e "--tizen")" != "" ]; then
"$deps_lib_path/gstreamer-1.0/include/gst",
]
if (is_clang) {
- include_dirs += [
- "$tizen_clang_base_path/lib64/clang/18/include",
- "$deps_lib_path/gcc/armv7l-tizen-linux-gnueabi/$gcc_ver/include/c++",
- "$deps_lib_path/gcc/armv7l-tizen-linux-gnueabi/$gcc_ver/include/c++/armv7l-tizen-linux-gnueabi",
- ]
+ include_dirs += [ "$tizen_clang_base_path/lib64/clang/18/include" ]
}
}
}
drm_mapi_aarch_64 = false
}
-if (use_efl && !build_chrome) {
+if (!use_efl && !build_chrome) {
tizen_autofill = true
if (tizen_product_tv) {
tizen_autofill_fw = true
<< __func__;
// TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 are
// complete.
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
int threshold_ms = 0;
std::string threshold_ms_str(
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
if (base::StringToInt(threshold_ms_str, &threshold_ms) && threshold_ms > 0) {
NOTIMPLEMENTED();
}
+#endif
}
TizenRendererImpl::~TizenRendererImpl() {
class TizenSpeechRecognitionManagerDelegate
: public SpeechRecognitionManagerDelegate {
public:
- TizenSpeechRecognitionManagerDelegate() {}
- ~TizenSpeechRecognitionManagerDelegate() override {}
+ TizenSpeechRecognitionManagerDelegate() = default;
+ ~TizenSpeechRecognitionManagerDelegate() override = default;
- private:
TizenSpeechRecognitionManagerDelegate(
const TizenSpeechRecognitionManagerDelegate&) = delete;
TizenSpeechRecognitionManagerDelegate& operator=(
return nullptr;
}
bool FilterProfanities(int render_process_id) override { return false; }
+ void BindSpeechRecognitionContext(
+ mojo::PendingReceiver<media::mojom::SpeechRecognitionContext> receiver)
+ override {}
};
} // namespace content
// V Plane buffer.
uint8_t* video_buf_v = video_buf_u + c_frm_size;
libyuv::I420Copy(
- video_buf, video_frame.get()->stride(media::VideoFrame::kYPlane),
- video_buf_u, video_frame.get()->stride(media::VideoFrame::kYPlane) / 2,
- video_buf_v, video_frame.get()->stride(media::VideoFrame::kYPlane) / 2,
- video_frame.get()->GetWritableVisibleData(media::VideoFrame::kYPlane),
- video_frame.get()->stride(media::VideoFrame::kYPlane),
- video_frame.get()->GetWritableVisibleData(media::VideoFrame::kUPlane),
- video_frame.get()->stride(media::VideoFrame::kUPlane),
- video_frame.get()->GetWritableVisibleData(media::VideoFrame::kVPlane),
- video_frame.get()->stride(media::VideoFrame::kVPlane), width, height);
+ video_buf, video_frame.get()->stride(media::VideoFrame::Plane::kY),
+ video_buf_u, video_frame.get()->stride(media::VideoFrame::Plane::kY) / 2,
+ video_buf_v, video_frame.get()->stride(media::VideoFrame::Plane::kY) / 2,
+ video_frame.get()->GetWritableVisibleData(media::VideoFrame::Plane::kY),
+ video_frame.get()->stride(media::VideoFrame::Plane::kY),
+ video_frame.get()->GetWritableVisibleData(media::VideoFrame::Plane::kU),
+ video_frame.get()->stride(media::VideoFrame::Plane::kU),
+ video_frame.get()->GetWritableVisibleData(media::VideoFrame::Plane::kV),
+ video_frame.get()->stride(media::VideoFrame::Plane::kV), width, height);
sink_->PaintSingleFrame(std::move(video_frame));
}
#include "base/synchronization/lock.h"
#include "base/trace_event/trace_event.h"
#include "media/base/video_codecs.h"
-#include "media/base/video_color_space.h"
#include "media/base/video_frame_metadata.h"
#include "media/base/video_transformation.h"
#include "media/capture/mojom/image_capture_types.h"
#endif
videocaptureformat.frame_size = gfx::Size(dest_width, dest_height);
auto reservation_result_code = client_->ReserveOutputBuffer(
- videocaptureformat.frame_size, media::PIXEL_FORMAT_I420, 0, &buffer_);
+ videocaptureformat.frame_size, media::PIXEL_FORMAT_I420,
+ /* frame_feedback_id= */ 0, &buffer_,
+ /* require_new_buffer_id= */ nullptr,
+ /* retire_old_buffer_id= */ nullptr);
if (reservation_result_code !=
VideoCaptureDevice::Client::ReserveResult::kSucceeded) {
LOG(ERROR) << "Failed to reserve I420 output buffer.";
first_ref_time_ = now;
client_->OnIncomingCapturedBuffer(std::move(buffer_), videocaptureformat,
- now, now - first_ref_time_);
+ now, now - first_ref_time_, std::nullopt);
} else if (mime == MEDIA_FORMAT_H264_SP) {
base::TimeTicks now = base::TimeTicks::Now();
if (first_ref_time_.is_null())
first_ref_time_ = now;
client_->OnIncomingCapturedBuffer(std::move(buffer_), videocaptureformat,
- now, now - first_ref_time_);
+ now, now - first_ref_time_, std::nullopt);
} else if (mime == MEDIA_FORMAT_I420) {
// FIXME: Verify if I420 format is working.
void *data_y, *data_u, *data_v;
first_ref_time_ = now;
client_->OnIncomingCapturedBuffer(std::move(buffer_), videocaptureformat,
- now, now - first_ref_time_);
+ now, now - first_ref_time_, std::nullopt);
} else {
LOG(ERROR) << "frame->format( " << mime
<< ") is not implemented or not supported by chromium.";
: gfx::Size(frame->width, frame->height));
auto reservation_result_code = self->client_->ReserveOutputBuffer(
- frame_size, ConvertPixelFormat(frame->format), 0, &self->buffer_);
+ frame_size, ConvertPixelFormat(frame->format), /* frame_feedback_id= */ 0,
+ &self->buffer_, /* require_new_buffer_id= */ nullptr,
+ /* retire_old_buffer_id= */ nullptr);
if (reservation_result_code !=
VideoCaptureDevice::Client::ReserveResult::kSucceeded) {
if (self->first_ref_time_.is_null())
self->first_ref_time_ = now;
- self->client_->OnIncomingCapturedBuffer(std::move(self->buffer_),
- videocaptureformat, now,
- now - self->first_ref_time_);
+ self->client_->OnIncomingCapturedBuffer(
+ std::move(self->buffer_), videocaptureformat, now,
+ now - self->first_ref_time_, std::nullopt);
// statistics & log every seconds
++(self->frame_total_);
#include "base/time/time.h"
#include "media/base/efl/media_player_util_efl.h"
#include "media/base/video_codecs.h"
+#include "media/base/video_color_space.h"
#include "media/capture/video/tizen/camera_device_tizen.h"
#include "media/capture/video/video_capture_device.h"
packet.type = GetESPlusPlayerStreamType(type);
packet.buffer = (char*)(const_cast<unsigned char*>(buffer->data()));
- packet.buffer_size = buffer->data_size();
+ packet.buffer_size = buffer->size();
packet.pts = buffer->timestamp().InMilliseconds();
packet.duration = buffer->duration().InMilliseconds();
uint8_t* video_buf_v = video_buf_u + c_frm_size;
libyuv::I420Copy(
- video_buf, video_frame.get()->stride(VideoFrame::kYPlane), video_buf_u,
- video_frame.get()->stride(VideoFrame::kYPlane) / 2, video_buf_v,
- video_frame.get()->stride(VideoFrame::kYPlane) / 2,
- video_frame.get()->GetWritableVisibleData(VideoFrame::kYPlane),
- video_frame.get()->stride(VideoFrame::kYPlane),
- video_frame.get()->GetWritableVisibleData(VideoFrame::kUPlane),
- video_frame.get()->stride(VideoFrame::kUPlane),
- video_frame.get()->GetWritableVisibleData(VideoFrame::kVPlane),
- video_frame.get()->stride(VideoFrame::kVPlane), width, height);
+ video_buf, video_frame.get()->stride(VideoFrame::Plane::kY),
+ video_buf_u, video_frame.get()->stride(VideoFrame::Plane::kY) / 2,
+ video_buf_v, video_frame.get()->stride(VideoFrame::Plane::kY) / 2,
+ video_frame.get()->GetWritableVisibleData(VideoFrame::Plane::kY),
+ video_frame.get()->stride(VideoFrame::Plane::kY),
+ video_frame.get()->GetWritableVisibleData(VideoFrame::Plane::kU),
+ video_frame.get()->stride(VideoFrame::Plane::kU),
+ video_frame.get()->GetWritableVisibleData(VideoFrame::Plane::kV),
+ video_frame.get()->stride(VideoFrame::Plane::kV), width, height);
esplusplayer_decoded_buffer_destroy(
esplayer_, const_cast<esplusplayer_decoded_video_packet*>(packet));
} // namespace
-PlatformSensorEfl::PlatformSensorEfl(mojom::SensorType type,
- SensorReadingSharedBuffer* reading_buffer,
- PlatformSensorProvider* provider)
+PlatformSensorEfl::PlatformSensorEfl(
+ mojom::SensorType type,
+ SensorReadingSharedBuffer* reading_buffer,
+ base::WeakPtr<PlatformSensorProvider> provider)
: PlatformSensor(type, reading_buffer, provider),
default_configuration_(PlatformSensorConfiguration()),
weak_factory_(this) {
public:
PlatformSensorEfl(mojom::SensorType type,
SensorReadingSharedBuffer* reading_buffer,
- PlatformSensorProvider* provider);
+ base::WeakPtr<PlatformSensorProvider> provider);
PlatformSensorEfl(const PlatformSensorEfl&) = delete;
PlatformSensorEfl& operator=(const PlatformSensorEfl&) = delete;
#include "services/device/generic_sensor/platform_sensor_provider_efl.h"
-#include <utility>
-#include <vector>
#include "base/memory/ref_counted.h"
-#include "base/memory/singleton.h"
#include "services/device/generic_sensor/platform_sensor_efl.h"
#include "services/device/generic_sensor/platform_sensor_reader_efl.h"
namespace device {
-PlatformSensorProviderEfl::PlatformSensorProviderEfl() {}
+PlatformSensorProviderEfl::PlatformSensorProviderEfl() = default;
-PlatformSensorProviderEfl::~PlatformSensorProviderEfl() {}
+PlatformSensorProviderEfl::~PlatformSensorProviderEfl() = default;
+
+base::WeakPtr<PlatformSensorProvider> PlatformSensorProviderEfl::AsWeakPtr() {
+ return weak_factory_.GetWeakPtr();
+}
void PlatformSensorProviderEfl::CreateSensorInternal(
mojom::SensorType type,
- SensorReadingSharedBuffer* reading_buffer,
CreateSensorCallback callback) {
if (!SensorReaderEfl::IsSensorTypeSupported(type)) {
std::move(callback).Run(nullptr);
return;
}
- DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
- scoped_refptr<PlatformSensorEfl> sensor =
- new PlatformSensorEfl(type, reading_buffer, this);
- std::move(callback).Run(sensor);
-}
-
-void PlatformSensorProviderEfl::FreeResources() {
- DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
+ std::move(callback).Run(base::MakeRefCounted<PlatformSensorEfl>(
+ type, GetSensorReadingSharedBufferForType(type), AsWeakPtr()));
}
} // namespace device
#ifndef SERVICES_DEVICE_GENERIC_SENSOR_PUBLIC_PLATFORM_SENSOR_PROVIDER_EFL_H_
#define SERVICES_DEVICE_GENERIC_SENSOR_PUBLIC_PLATFORM_SENSOR_PROVIDER_EFL_H_
+#include "base/memory/weak_ptr.h"
#include "services/device/generic_sensor/platform_sensor_provider.h"
-namespace base {
-template <typename T>
-struct DefaultSingletonTraits;
-} // namespace base
-
namespace device {
class PlatformSensorEfl;
PlatformSensorProviderEfl& operator=(const PlatformSensorProviderEfl&) =
delete;
+ base::WeakPtr<PlatformSensorProvider> AsWeakPtr() override;
+
protected:
void CreateSensorInternal(mojom::SensorType type,
- SensorReadingSharedBuffer* reading_buffer,
CreateSensorCallback callback) override;
- void FreeResources() override;
-
private:
- friend struct base::DefaultSingletonTraits<PlatformSensorProviderEfl>;
+ base::WeakPtrFactory<PlatformSensorProviderEfl> weak_factory_{this};
};
} // namespace device
LOG(ERROR) << "[CLIPBOARD] couldn't read file: " << path;
return false;
}
-
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
base::Base64Encode(file_contents, &file_contents);
-
+#endif
*image_html = kDataURIImagePrefix;
*image_html += file_contents;
*image_html += kDataURIImageSuffix;
}
AutofillClientEfl::AutofillClientEfl(content::WebContents* web_contents)
- : ContentAutofillClient(web_contents,
- base::BindRepeating(&BrowserDriverInitHook,
- this,
- EWebView::GetPlatformLocale())),
+ : ContentAutofillClient(web_contents),
content::WebContentsObserver(web_contents),
web_contents_(web_contents) {
DCHECK(web_contents);
return nullptr;
}
-void AutofillClientEfl::ShowAutofillSettings(PopupType popup_type) {
+void AutofillClientEfl::ShowAutofillSettings(
+ FillingProduct main_filling_product) {
NOTIMPLEMENTED();
}
NOTIMPLEMENTED();
}
-void AutofillClientEfl::ShowAutofillPopup(
+void AutofillClientEfl::ShowAutofillSuggestions(
const PopupOpenArgs& open_args,
- base::WeakPtr<autofill::AutofillPopupDelegate> delegate) {
+ base::WeakPtr<AutofillSuggestionDelegate> delegate) {
DCHECK(web_contents_);
LOG(INFO) << "[Autofill] " << __FUNCTION__
<< " suggestions.size : " << open_args.suggestions.size();
}
}
-void AutofillClientEfl::ShowUnmaskPrompt(
- const CreditCard& card,
- const CardUnmaskPromptOptions& card_unmask_prompt_options,
- base::WeakPtr<CardUnmaskDelegate> delegate) {
- NOTIMPLEMENTED();
-}
-
-void AutofillClientEfl::UpdateAutofillPopupDataListValues(
+void AutofillClientEfl::UpdateAutofillDataListValues(
base::span<const SelectOption> datalist) {
NOTIMPLEMENTED();
}
-void AutofillClientEfl::OnUnmaskVerificationResult(PaymentsRpcResult result) {
- NOTIMPLEMENTED();
-}
-
-bool AutofillClientEfl::HasCreditCardScanFeature() {
+bool AutofillClientEfl::HasCreditCardScanFeature() const {
return false;
}
return security_state::SecurityLevel::SECURITY_LEVEL_COUNT;
}
-void AutofillClientEfl::HideAutofillPopup(PopupHidingReason reason) {
+void AutofillClientEfl::HideAutofillSuggestions(SuggestionHidingReason reason) {
#if defined(TIZEN_AUTOFILL_FW)
LOG(INFO) << "[Autofill] " << __FUNCTION__
<< " Autofill fw is enabled. return directly";
const bool has_server_error,
const std::u16string& tip_message,
const std::vector<MigratableCreditCard>& migratable_credit_cards,
- MigrationDeleteCardCallback delete_local_card_callback) {
+ payments::PaymentsAutofillClient::MigrationDeleteCardCallback
+ delete_local_card_callback) {
NOTIMPLEMENTED();
}
return factory->AutocompleteHistoryManagerForContext(ctx);
}
-payments::PaymentsClient* AutofillClientEfl::GetPaymentsClient() {
+std::unique_ptr<AutofillManager> AutofillClientEfl::CreateManager(
+ base::PassKey<ContentAutofillDriver> pass_key,
+ ContentAutofillDriver& driver) {
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
+payments::PaymentsAutofillClient*
+AutofillClientEfl::GetPaymentsAutofillClient() {
NOTIMPLEMENTED();
return nullptr;
}
if (!width_changed)
return;
- HideAutofillPopup(PopupHidingReason::kNavigation);
+ HideAutofillSuggestions(SuggestionHidingReason::kNavigation);
}
void AutofillClientEfl::WebContentsDestroyed() {
- HideAutofillPopup(PopupHidingReason::kViewDestroyed);
+ HideAutofillSuggestions(SuggestionHidingReason::kViewDestroyed);
}
AutofillPopupViewEfl * AutofillClientEfl::GetOrCreatePopupController() {
NOTIMPLEMENTED();
}
-bool AutofillClientEfl::IsOffTheRecord() {
+bool AutofillClientEfl::IsOffTheRecord() const {
return web_contents_->GetBrowserContext()->IsOffTheRecord();
}
->GetURLLoaderFactoryForBrowserProcess();
}
-void AutofillClientEfl::ConfirmSaveIbanLocally(
- const Iban& iban,
- bool should_show_prompt,
- AutofillClient::SaveIbanPromptCallback callback) {
- NOTIMPLEMENTED();
-}
-
-void AutofillClientEfl::ConfirmUploadIbanToCloud(
- const Iban& iban,
- const LegalMessageLines& legal_message_lines,
- bool should_show_prompt,
- AutofillClient::SaveIbanPromptCallback callback) {
- NOTIMPLEMENTED();
-}
-
void AutofillClientEfl::ShowEditAddressProfileDialog(
const AutofillProfile& profile,
AutofillClient::AddressProfileSavePromptCallback
return element_bounds + view_offset;
}
-void AutofillClientEfl::ConfirmMigrateLocalCardToCloud(
- const LegalMessageLines& legal_message_lines,
- const std::string& user_email,
- const std::vector<MigratableCreditCard>& migratable_credit_cards,
- LocalCardMigrationCallback start_migrating_cards_callback) {
- NOTIMPLEMENTED();
-}
-
void AutofillClientEfl::ShowWebauthnOfferDialog(
WebauthnDialogCallback offer_dialog_callback) {
NOTIMPLEMENTED();
return false;
}
-void AutofillClientEfl::OfferVirtualCardOptions(
- const std::vector<CreditCard*>& candidates,
- base::OnceCallback<void(const std::string&)> callback) {
- NOTIMPLEMENTED();
-}
-
-void AutofillClientEfl::CreditCardUploadCompleted(bool card_saved) {
+void AutofillClientEfl::PinAutofillSuggestions() {
NOTIMPLEMENTED();
}
-void AutofillClientEfl::PinPopupView() {
- NOTIMPLEMENTED();
-}
-
-AutofillClient::PopupOpenArgs AutofillClientEfl::GetReopenPopupArgs(
- AutofillSuggestionTriggerSource trigger_source) const {
- NOTIMPLEMENTED();
- return {};
-}
-
-std::vector<Suggestion> AutofillClientEfl::GetPopupSuggestions() const {
- NOTIMPLEMENTED();
- return std::vector<Suggestion>();
-}
-
void AutofillClientEfl::UpdatePopup(
const std::vector<Suggestion>& suggestions,
- PopupType popup_type,
+ FillingProduct main_filling_product,
AutofillSuggestionTriggerSource trigger_source) {
NOTIMPLEMENTED();
}
NOTIMPLEMENTED();
}
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
void AutofillClientEfl::LoadRiskData(
base::OnceCallback<void(const std::string&)> callback) {
NOTIMPLEMENTED();
}
+#endif
url::Origin AutofillClientEfl::GetLastCommittedPrimaryMainFrameOrigin() const {
NOTREACHED();
#include "base/memory/weak_ptr.h"
#include "browser/autofill_popup_view_efl.h"
#include "components/autofill/content/browser/content_autofill_client.h"
+#include "components/autofill/core/browser/payments/local_card_migration_manager.h"
+#include "components/autofill/core/browser/payments/payments_autofill_client.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/password_manager/core/browser/password_form_manager.h"
#include "content/public/browser/web_contents_observer.h"
static AutofillClientEfl* FromWebContents(content::WebContents*);
static void CreateForWebContents(content::WebContents*);
- bool IsOffTheRecord() override;
+ bool IsOffTheRecord() const override;
scoped_refptr<network::SharedURLLoaderFactory> GetURLLoaderFactory() override;
void DidFillOrPreviewForm(mojom::ActionPersistence action,
AutofillTriggerSource trigger_source,
bool is_refill) override;
- void ConfirmSaveIbanLocally(const Iban& iban,
- bool should_show_prompt,
- SaveIbanPromptCallback callback) override;
- void ConfirmUploadIbanToCloud(const Iban& iban,
- const LegalMessageLines& legal_message_lines,
- bool should_show_prompt,
- SaveIbanPromptCallback callback) override;
void ShowEditAddressProfileDialog(
const AutofillProfile& profile,
AddressProfileSavePromptCallback on_user_decision_callback) override;
PrefService* GetPrefs() override;
virtual const PrefService* GetPrefs() const override;
syncer::SyncService* GetSyncService() override;
- void ShowAutofillSettings(PopupType popup_type) override;
+ void ShowAutofillSettings(FillingProduct main_filling_product) override;
void ConfirmSaveCreditCardLocally(
const CreditCard& card,
SaveCreditCardOptions options,
UploadSaveCardPromptCallback callback) override;
void ConfirmCreditCardFillAssist(const CreditCard& card,
base::OnceClosure callback) override;
- void ShowAutofillPopup(
+ void ShowAutofillSuggestions(
const PopupOpenArgs& open_args,
- base::WeakPtr<autofill::AutofillPopupDelegate> delegate) override;
- void ShowUnmaskPrompt(
- const CreditCard& card,
- const CardUnmaskPromptOptions& card_unmask_prompt_options,
- base::WeakPtr<CardUnmaskDelegate> delegate) override;
- void UpdateAutofillPopupDataListValues(
+ base::WeakPtr<AutofillSuggestionDelegate> delegate) override;
+ void UpdateAutofillDataListValues(
base::span<const SelectOption> datalist) override;
- void OnUnmaskVerificationResult(PaymentsRpcResult result) override;
- bool HasCreditCardScanFeature() override;
+ bool HasCreditCardScanFeature() const override;
void ScanCreditCard(CreditCardScanCallback callback) override;
bool IsContextSecure() const override;
AddressNormalizer* GetAddressNormalizer() override;
security_state::SecurityLevel GetSecurityLevelForUmaHistograms() override;
- void HideAutofillPopup(PopupHidingReason reason) override;
+ void HideAutofillSuggestions(SuggestionHidingReason reason) override;
bool IsAutocompleteEnabled() const override;
void DidFillOrPreviewField(const std::u16string& autofilled_value,
const std::u16string& profile_full_name) override;
- void ConfirmMigrateLocalCardToCloud(
- const LegalMessageLines& legal_message_lines,
- const std::string& user_email,
- const std::vector<MigratableCreditCard>& migratable_credit_cards,
- LocalCardMigrationCallback start_migrating_cards_callback) override;
void ShowWebauthnOfferDialog(
WebauthnDialogCallback offer_dialog_callback) override;
void ShowWebauthnVerifyPendingDialog(
WebauthnDialogCallback verify_pending_dialog_callback) override;
void UpdateWebauthnOfferDialogWithError() override;
bool CloseWebauthnDialog() override;
- void OfferVirtualCardOptions(
- const std::vector<CreditCard*>& candidates,
- base::OnceCallback<void(const std::string&)> callback) override;
- void CreditCardUploadCompleted(bool card_saved) override;
- void PinPopupView() override;
- PopupOpenArgs GetReopenPopupArgs(
- AutofillSuggestionTriggerSource trigger_source) const override;
- std::vector<Suggestion> GetPopupSuggestions() const override;
+ void PinAutofillSuggestions() override;
void UpdatePopup(const std::vector<Suggestion>& suggestions,
- PopupType popup_type,
+ FillingProduct main_filling_product,
AutofillSuggestionTriggerSource trigger_sources) override;
const GURL& GetLastCommittedPrimaryMainFrameURL() const override;
const translate::LanguageState* GetLanguageState() override;
const AutofillProfile* original_profile,
AutofillClient::SaveAddressProfilePromptOptions options,
AddressProfileSavePromptCallback callback) override;
- payments::PaymentsClient* GetPaymentsClient() override;
+ payments::PaymentsAutofillClient* GetPaymentsAutofillClient() override;
url::Origin GetLastCommittedPrimaryMainFrameOrigin() const override;
- bool IsTouchToFillCreditCardSupported() override { return false; }
bool ShowTouchToFillCreditCard(
base::WeakPtr<TouchToFillDelegate> delegate,
base::span<const autofill::CreditCard> cards_to_suggest) override {
// content::WebContentsObserver implementation.
void PrimaryMainFrameWasResized(bool width_changed) override;
void WebContentsDestroyed() override;
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
void LoadRiskData(
base::OnceCallback<void(const std::string&)> callback) override;
+#endif
void ShowSavePasswordPopup(
std::unique_ptr<password_manager::PasswordFormManagerForUI> form_to_save);
const bool has_server_error,
const std::u16string& tip_message,
const std::vector<MigratableCreditCard>& migratable_credit_cards,
- MigrationDeleteCardCallback delete_local_card_callback);
+ payments::PaymentsAutofillClient::MigrationDeleteCardCallback
+ delete_local_card_callback);
AutocompleteHistoryManager* GetAutocompleteHistoryManager();
+ std::unique_ptr<AutofillManager> CreateManager(
+ base::PassKey<ContentAutofillDriver> pass_key,
+ ContentAutofillDriver& driver) override;
private:
explicit AutofillClientEfl(content::WebContents* web_contents);
#include "base/memory/ref_counted.h"
#include "base/strings/utf_string_conversions.h"
#include "components/password_manager/core/browser/password_form.h"
-#include "components/password_manager/core/browser/password_store.h"
+#include "components/password_manager/core/browser/password_store/password_store.h"
namespace autofill {
#include "autofill_login_request.h"
#include "base/synchronization/waitable_event.h"
#include "components/password_manager/core/browser/password_form.h"
-#include "components/password_manager/core/browser/password_store.h"
+#include "components/password_manager/core/browser/password_store/password_store.h"
namespace autofill {
return nullptr;
}
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
std::unique_ptr<PersonalDataManager> pdm(new PersonalDataManager(
content::GetContentClientExport()->browser()->GetApplicationLocale()));
manager = pdm.get();
nullptr);
manager->AddObserver(this);
personal_data_manager_id_map_.AddWithID(std::move(pdm), unique_id);
+#endif
return manager;
}
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
-#include "components/autofill/core/browser/ui/popup_item_ids.h"
#include "content/browser/renderer_host/render_widget_host_view_aura.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/paths_efl.h"
if (autofill_popup_)
evas_object_show(autofill_popup_);
if (delegate_)
- delegate_->OnPopupShown();
+ delegate_->OnSuggestionsShown();
}
void AutofillPopupViewEfl::Hide()
if (autofill_popup_)
evas_object_hide(autofill_popup_);
if (delegate_)
- delegate_->OnPopupHidden();
+ delegate_->OnSuggestionsHidden();
}
void AutofillPopupViewEfl::ShowSavePasswordPopup(
}
bool isAutofillSpecial(const autofill::Suggestion& suggestion) {
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
return suggestion.popup_item_id != PopupItemId::kAutocompleteEntry &&
suggestion.popup_item_id != PopupItemId::kDatalistEntry;
+#else
+ return false;
+#endif
}
void AutofillPopupViewEfl::InitFormData(
- const std::vector<autofill::Suggestion>& suggestions,
- base::WeakPtr<AutofillPopupDelegate> delegate){
+ const std::vector<autofill::Suggestion>& suggestions,
+ base::WeakPtr<AutofillSuggestionDelegate> delegate) {
values_ = suggestions;
// m42 adds some "special" autofill sugesstions.
// This suggestions, like list separator is not useful for us
}
void AutofillPopupViewEfl::AcceptSuggestion(size_t index) {
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
if (delegate_ && index < values_.size()) {
delegate_->DidAcceptSuggestion(values_[index], index,
autofill::AutofillSuggestionTriggerSource());
}
+#endif
}
void AutofillPopupViewEfl::AcceptPasswordSuggestion(int option) {
selected_line_ = selected_line;
if (delegate_) {
if (selected_line_ < values_.size()) {
- delegate_->DidSelectSuggestion(
- values_[selected_line], autofill::AutofillSuggestionTriggerSource());
+ delegate_->DidSelectSuggestion(values_[selected_line]);
}
else {
delegate_->ClearPreviewedForm();
#include <Evas.h>
#include "base/memory/weak_ptr.h"
-#include "components/autofill/core/browser/ui/autofill_popup_delegate.h"
+#include "components/autofill/core/browser/ui/autofill_suggestion_delegate.h"
#include "components/autofill/core/browser/ui/suggestion.h"
#include "components/password_manager/core/browser/password_form_manager_for_ui.h"
#include "ui/gfx/geometry/point.h"
std::unique_ptr<password_manager::PasswordFormManagerForUI> form_to_save);
void UpdateFormDataPopup(const gfx::RectF& bounds);
void UpdateLocation(const gfx::RectF& focused_element_bounds);
- void InitFormData(
- const std::vector<autofill::Suggestion>& suggestions,
- base::WeakPtr<AutofillPopupDelegate> delegate);
+ void InitFormData(const std::vector<autofill::Suggestion>& suggestions,
+ base::WeakPtr<AutofillSuggestionDelegate> delegate);
void AcceptSuggestion(size_t index);
void AcceptPasswordSuggestion(int option);
void SetSelectedLine(size_t index);
Evas_Object* password_popup_;
std::vector<autofill::Suggestion> values_;
size_t selected_line_;
- base::WeakPtr<AutofillPopupDelegate> delegate_;
+ base::WeakPtr<AutofillSuggestionDelegate> delegate_;
std::unique_ptr<password_manager::PasswordFormManagerForUI> form_manager_;
};
#include "base/logging.h"
#include "base/time/time.h"
-#include "services/device/public/cpp/geolocation/geolocation_manager.h"
-
namespace device {
static double KilometerPerHourToMeterPerSecond(double kilometer_per_hour) {
void LocationProviderEfl::OnPermissionGranted() {
}
-std::unique_ptr<LocationProvider> NewSystemLocationProvider(
- scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
- GeolocationManager* geolocation_manager) {
- return base::WrapUnique(new LocationProviderEfl());
+std::unique_ptr<LocationProvider> NewSystemLocationProvider() {
+ return std::make_unique<LocationProviderEfl>();
}
} // namespace device
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "components/password_manager/core/browser/password_form.h"
-#include "components/password_manager/core/browser/password_store.h"
-#include "components/password_manager/core/browser/password_store_consumer.h"
+#include "components/password_manager/core/browser/password_store/password_store.h"
+#include "components/password_manager/core/browser/password_store/password_store_consumer.h"
#include "url/gurl.h"
using password_manager::PasswordStore;
if (store_) {
for (const auto& form : results) {
if (form->url == origin_) {
- store_->RemoveLogin(*form);
+ store_->RemoveLogin(FROM_HERE, *form);
break;
}
}
void RemoveLogins(const scoped_refptr<PasswordStore>& store) {
if (store.get()) {
- store->RemoveLoginsCreatedBetween(base::Time(), base::Time::Max(),
- base::NullCallback());
+ store->RemoveLoginsCreatedBetween(FROM_HERE, base::Time(),
+ base::Time::Max());
}
}
}
void PasswordManagerClientEfl::ShowPasswordSuggestions(
- ::autofill::FieldRendererId element_id,
- const ::autofill::FormData& form,
- uint64_t username_field_index,
- uint64_t password_field_index,
- ::base::i18n::TextDirection text_direction,
- const ::std::u16string& typed_username,
- int32_t options,
- const ::gfx::RectF& bounds) {
+ const autofill::PasswordSuggestionRequest& request) {
NOTIMPLEMENTED();
}
NOTIMPLEMENTED();
}
+void PasswordManagerClientEfl::NotifyKeychainError() {
+ NOTIMPLEMENTED();
+}
+
void PasswordManagerClientEfl::NotifyStorePasswordCalled() {
NOTIMPLEMENTED();
}
return nullptr;
}
-PasswordChangeSuccessTracker*
-PasswordManagerClientEfl::GetPasswordChangeSuccessTracker() {
+affiliations::AffiliationService*
+PasswordManagerClientEfl::GetAffiliationService() {
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
+std::unique_ptr<PasswordCrossDomainConfirmationPopupController>
+PasswordManagerClientEfl::ShowCrossDomainConfirmationPopup(
+ const gfx::RectF& element_bounds,
+ base::i18n::TextDirection text_direction,
+ const GURL& domain,
+ const std::u16string& password_origin,
+ base::OnceClosure confirmation_callback) {
NOTIMPLEMENTED();
return nullptr;
}
#include "components/password_manager/core/browser/password_feature_manager_impl.h"
#include "components/password_manager/core/browser/password_manager_client.h"
#include "components/password_manager/core/browser/password_manager_metrics_recorder.h"
-#include "components/password_manager/core/browser/password_store.h"
+#include "components/password_manager/core/browser/password_store/password_store.h"
#include "components/password_manager/core/browser/stub_credentials_filter.h"
#include "content/public/browser/render_frame_host_receiver_set.h"
#include "content/public/browser/web_contents_user_data.h"
const ::std::u16string& value,
bool autocomplete_attribute_has_username,
bool is_likely_otp) override;
- void ShowPasswordSuggestions(::autofill::FieldRendererId element_id,
- const ::autofill::FormData& form,
- uint64_t username_field_index,
- uint64_t password_field_index,
- ::base::i18n::TextDirection text_direction,
- const ::std::u16string& typed_username,
- int32_t options,
- const ::gfx::RectF& bounds) override;
+ void ShowPasswordSuggestions(
+ const autofill::PasswordSuggestionRequest& request) override;
bool PromptUserToChooseCredentials(
std::vector<std::unique_ptr<PasswordForm>> local_forms,
const url::Origin& origin,
void NotifySuccessfulLoginWithExistingPassword(
std::unique_ptr<password_manager::PasswordFormManagerForUI>
submitted_manager) override;
+ void NotifyKeychainError() override;
void NotifyStorePasswordCalled() override;
void AutomaticPasswordSave(
std::unique_ptr<PasswordFormManagerForUI> saved_form_manager,
}
PrefService* GetLocalStatePrefs() const override;
const syncer::SyncService* GetSyncService() const override;
- PasswordChangeSuccessTracker* GetPasswordChangeSuccessTracker() override;
+ affiliations::AffiliationService* GetAffiliationService() override;
private:
explicit PasswordManagerClientEfl(content::WebContents* web_contents,
void CheckSafeBrowsingReputation(const GURL& form_action,
const GURL& frame_url) override;
+ std::unique_ptr<PasswordCrossDomainConfirmationPopupController>
+ ShowCrossDomainConfirmationPopup(
+ const gfx::RectF& element_bounds,
+ base::i18n::TextDirection text_direction,
+ const GURL& domain,
+ const std::u16string& password_origin,
+ base::OnceClosure confirmation_callback) override;
+
password_manager::PasswordManager* GetPasswordManager();
gfx::RectF TransformToRootCoordinates(
#include "base/path_service.h"
#include "browser/webdata/web_data_service.h"
#include "browser/webdata/web_data_service_factory.h"
-#include "components/password_manager/core/browser/login_database.h"
-#include "components/password_manager/core/browser/password_store.h"
-#include "components/password_manager/core/browser/password_store_built_in_backend.h"
+#include "components/password_manager/core/browser/password_store/login_database.h"
+#include "components/password_manager/core/browser/password_store/password_store.h"
+#include "components/password_manager/core/browser/password_store/password_store_built_in_backend.h"
#include "components/sync/model/syncable_service.h"
#include "content/common/paths_efl.h"
#include "content/public/browser/browser_thread.h"
scoped_refptr<PasswordStore> ps = new password_manager::PasswordStore(
std::make_unique<password_manager::PasswordStoreBuiltInBackend>(
- std::move(login_db), syncer::WipeModelUponSyncDisabledBehavior()));
+ std::move(login_db), syncer::WipeModelUponSyncDisabledBehavior(),
+ nullptr));
if (!ps.get()) {
LOG(ERROR) << "Could not create password manager.";
#include "base/path_service.h"
#include "base/task/thread_pool.h"
#include "components/autofill/core/browser/geo/autofill_country.h"
-#include "components/autofill/core/browser/webdata/autofill_table.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/webdata/common/webdata_constants.h"
#include "content/common/paths_efl.h"
// All tables objects that participate in managing the database must
// be added here.
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
web_database_->AddTable(base::WrapUnique(new autofill::AutofillTable));
+#endif
web_database_->LoadDatabase();
autofill_web_data_ =
if (interface_name == autofill::mojom::AutofillDriver::Name_) {
autofill::ContentAutofillDriverFactory::BindAutofillDriver(
+ render_frame_host,
mojo::PendingAssociatedReceiver<autofill::mojom::AutofillDriver>(
- std::move(*handle)),
- render_frame_host);
+ std::move(*handle)));
return true;
}
#endif
switches::kXWalkExtensionPath)) {
return;
}
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP) // FIXME: m126 bringup
registry->AddInterface(
base::BindRepeating(&wrt::XWalkExtensionManager::Bind),
content::GetUIThreadTaskRunner({}));
#if BUILDFLAG(IS_TIZEN)
void ContentMainDelegateEfl::InitializeXWalkExtensions(
const std::string& extension_path) {
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
auto* extension_manager = wrt::XWalkExtensionManager::GetInstance();
if (extension_manager->HasDelegate())
return;
extension_manager->LoadExtensionsByPath(extension_path);
extension_manager->PreloadExtensions();
extension_manager->SetDelegate(std::make_unique<XWalkExtensionBrowserEfl>());
+#endif
}
#endif
/* LCOV_EXCL_STOP */
}
}
-static std::map<DataType, autofill::ServerFieldType> create_EWK_to_Autofill_profile_map() {
- std::map<DataType, autofill::ServerFieldType> profile_map;
+static std::map<DataType, autofill::FieldType>
+create_EWK_to_Autofill_profile_map() {
+ std::map<DataType, autofill::FieldType> profile_map;
profile_map[PROFILE_NAME] = autofill::NAME_FULL;
profile_map[PROFILE_COMPANY] = autofill::COMPANY_NAME;
profile_map[PROFILE_ADDRESS1] = autofill::ADDRESS_HOME_LINE1;
DataType DataName,
std::string locale,
autofill::AutofillProfile &ret) {
- static std::map<DataType, autofill::ServerFieldType> profile_map =
+ static std::map<DataType, autofill::FieldType> profile_map =
create_EWK_to_Autofill_profile_map();
if (profile_map.find(DataName) == profile_map.end()) {
return;
autofill::AutofillProfile to_Autofill_Profile(
const Ewk_Autofill_Profile* oldStyleProfile) {
std::string locale = EWebView::GetPlatformLocale();
- autofill::AutofillProfile ret(locale);
+ autofill::AutofillProfile ret(
+ locale, autofill::AutofillProfile::Source::kLocalOrSyncable,
+ autofill::i18n_model_definition::kLegacyHierarchyCountryCode);
if (!oldStyleProfile)
return ret;
return ret;
}
-static std::map<autofill::ServerFieldType, DataType>
+static std::map<autofill::FieldType, DataType>
create_Autofill_to_EWK_profile_map() {
- std::map<autofill::ServerFieldType, DataType> profile_map;
- std::map<DataType, autofill::ServerFieldType> autofill_map =
+ std::map<autofill::FieldType, DataType> profile_map;
+ std::map<DataType, autofill::FieldType> autofill_map =
create_EWK_to_Autofill_profile_map();
- for (std::map<DataType, autofill::ServerFieldType>::iterator it =
- autofill_map.begin(); it!=autofill_map.end(); ++it)
+ for (std::map<DataType, autofill::FieldType>::iterator it =
+ autofill_map.begin();
+ it != autofill_map.end(); ++it) {
profile_map[it->second] = it->first;
+ }
return profile_map;
}
void to_EWK_Profile_set_data(const autofill::AutofillProfile& newStyleProfile,
- autofill::ServerFieldType DataName,
- std::string locale,
- Ewk_Autofill_Profile* ret) {
+ autofill::FieldType DataName,
+ std::string locale,
+ Ewk_Autofill_Profile* ret) {
std::u16string value;
- static std::map<autofill::ServerFieldType, DataType> profile_map =
+ static std::map<autofill::FieldType, DataType> profile_map =
create_Autofill_to_EWK_profile_map();
if (DataName == autofill::NAME_FULL ||
DataName == autofill::ADDRESS_HOME_COUNTRY) {
PersonalDataManagerForEWKContext(ewk_context);
DCHECK(manager);
+ Eina_List* list = nullptr;
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
std::vector<autofill::AutofillProfile*> dataVector =
manager->GetProfiles();
- Eina_List* list = nullptr;
for (unsigned i = 0; i < dataVector.size(); ++i) {
autofill::AutofillProfile* profile = dataVector[i];
if (profile) {
list = eina_list_append(list, p);
}
}
+#endif
return list;
}
PersonalDataManagerForEWKContext(ewk_context);
DCHECK(manager);
+ Ewk_Autofill_Profile* ret = nullptr;
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
autofill::AutofillProfile* profile = manager->GetProfileByGUID(UnsignedToGUID(id));
- Ewk_Autofill_Profile* ret = nullptr;
if (profile)
ret = to_Ewk_Autofill_Profile(*profile);
+#endif
return ret;
}
PersonalDataManagerForEWKContext(ewk_context);
DCHECK(manager);
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
autofill::AutofillProfile* profile = manager->GetProfileByGUID(UnsignedToGUID(id));
if (profile)
manager->UpdateProfile(to_Autofill_Profile(ewk_profile));
else
manager->AddProfile(to_Autofill_Profile(ewk_profile));
+#endif
return EINA_TRUE;
}
PersonalDataManagerForEWKContext(ewk_context);
DCHECK(manager);
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
manager->AddProfile(to_Autofill_Profile(profile));
+#endif
return EINA_TRUE;
}
#include "renderer/plugins/plugin_placeholder_hole.h"
#endif
-#if defined(TIZEN_AUTOFILL)
-using autofill::AutofillAgent;
-using autofill::PasswordAutofillAgent;
-using autofill::PasswordGenerationAgent;
-#endif
-
#if defined(TIZEN_PEPPER_EXTENSIONS)
#include "common/trusted_pepper_plugin_info_cache.h"
#include "common/trusted_pepper_plugin_util.h"
#include "renderer/pepper/pepper_helper.h"
#endif
+#if defined(TIZEN_AUTOFILL)
+using autofill::AutofillAgent;
+using autofill::PasswordAutofillAgent;
+using autofill::PasswordGenerationAgent;
+using EnableHeavyFormDataScraping =
+ autofill::PasswordAutofillAgent::EnableHeavyFormDataScraping;
+#endif
+
// Chromium-efl deliberately uses a different value than
// default_maximum_page_scale_factor (4.0) because it has shown
// better empirical results.
render_frame_observer->associated_interfaces();
std::unique_ptr<PasswordAutofillAgent> password_autofill_agent =
- std::make_unique<PasswordAutofillAgent>(render_frame, registry);
+ std::make_unique<PasswordAutofillAgent>(
+ render_frame, registry, EnableHeavyFormDataScraping(false));
std::unique_ptr<PasswordGenerationAgent> password_generation_agent =
std::make_unique<PasswordGenerationAgent>(
render_frame, password_autofill_agent.get(), registry);
- new AutofillAgent(render_frame, std::move(password_autofill_agent),
+ new AutofillAgent(render_frame, /* config= */ AutofillAgent::Config{},
+ std::move(password_autofill_agent),
std::move(password_generation_agent), registry);
}
#endif
content::RenderFrame* render_frame,
v8::Handle<v8::Context> context,
int world_id) {
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP) // FIXME: m126 bringup
if (ShouldRegisterXWalkExtension(world_id))
wrt::XWalkExtensionRendererController::DidCreateScriptContext(context);
#endif
blink::WebFrame* frame,
v8::Handle<v8::Context> context,
int world_id) {
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP) // FIXME: m126 bringup
if (ShouldRegisterXWalkExtension(world_id))
wrt::XWalkExtensionRendererController::WillReleaseScriptContext(context);
#endif
blink::mojom::StreamDevices& stream_devices =
*stream_devices_set.stream_devices[0];
+#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
if (request.audio_type ==
blink::mojom::MediaStreamType::DEVICE_AUDIO_CAPTURE) {
const blink::MediaStreamDevice* audio_device =
return;
}
}
+#endif
std::move(callback).Run(stream_devices_set,
blink::mojom::MediaStreamRequestResult::OK,
bool WebContentsDelegateEfl::CheckMediaAccessPermission(
RenderFrameHost* render_frame_host,
- const GURL& security_origin,
+ const url::Origin& security_origin,
blink::mojom::MediaStreamType type) {
return true;
}
#if defined(TIZEN_MULTIMEDIA)
bool CheckMediaAccessPermission(RenderFrameHost* render_frame_host,
- const GURL& security_origin,
+ const url::Origin& security_origin,
blink::mojom::MediaStreamType type) override;
void RequestMediaAccessPermission(WebContents* web_contents,
namespace content {
class WebContentsAccessibility;
+#if defined(TIZEN_ATK_SUPPORT)
+class RenderWidgetHostView;
+#endif
}
namespace ui {
virtual content::WebContentsAccessibility*
AccessibilityGetWebContentsAccessibility() = 0;
+#if defined(TIZEN_ATK_SUPPORT)
+ virtual content::RenderWidgetHostView* AccessibilityGetView() = 0;
+#endif
+
protected:
AXPlatformTreeManagerDelegate() = default;
};
}
webpack_build("electron_asar_bundle") {
- inputs = rebase_path(
- auto_filenames.asar_bundle_deps, ".", "//electron")
+ inputs = rebase_path(auto_filenames.asar_bundle_deps, ".", "//electron")
config_file = "//electron/build/webpack/webpack.config.asar.js"
out_file = "$root_gen_dir/electron/js2c/asar_bundle.js"
}
webpack_build("electron_browser_bundle") {
- inputs = rebase_path(
- auto_filenames.browser_bundle_deps, ".", "//electron")
+ inputs = rebase_path(auto_filenames.browser_bundle_deps, ".", "//electron")
config_file = "//electron/build/webpack/webpack.config.browser.js"
out_file = "$root_gen_dir/electron/js2c/browser_init.js"
}
webpack_build("electron_renderer_bundle") {
- inputs = rebase_path(
- auto_filenames.renderer_bundle_deps, ".", "//electron")
+ inputs = rebase_path(auto_filenames.renderer_bundle_deps, ".", "//electron")
config_file = "//electron/build/webpack/webpack.config.renderer.js"
out_file = "$root_gen_dir/electron/js2c/renderer_init.js"
}
webpack_build("electron_worker_bundle") {
- inputs = rebase_path(
- auto_filenames.worker_bundle_deps, ".", "//electron")
+ inputs = rebase_path(auto_filenames.worker_bundle_deps, ".", "//electron")
config_file = "//electron/build/webpack/webpack.config.worker.js"
out_file = "$root_gen_dir/electron/js2c/worker_init.js"
}
webpack_build("electron_sandboxed_renderer_bundle") {
- inputs = rebase_path(
- auto_filenames.sandbox_bundle_deps, ".", "//electron")
+ inputs = rebase_path(auto_filenames.sandbox_bundle_deps, ".", "//electron")
config_file = "//electron/build/webpack/webpack.config.sandboxed_renderer.js"
out_file = "$root_gen_dir/electron/js2c/sandbox_bundle.js"
}
webpack_build("electron_isolated_renderer_bundle") {
- inputs = rebase_path(
- auto_filenames.isolated_bundle_deps, ".", "//electron")
+ inputs = rebase_path(auto_filenames.isolated_bundle_deps, ".", "//electron")
config_file = "//electron/build/webpack/webpack.config.isolated_renderer.js"
out_file = "$root_gen_dir/electron/js2c/isolated_bundle.js"
}
webpack_build("electron_utility_bundle") {
- inputs = rebase_path(
- auto_filenames.utility_bundle_deps, ".", "//electron")
+ inputs = rebase_path(auto_filenames.utility_bundle_deps, ".", "//electron")
config_file = "//electron/build/webpack/webpack.config.utility.js"
out_file = "$root_gen_dir/electron/js2c/utility_init.js"
grit("wrt_resources") {
source = "//wrt/wrt_resources.grd"
- defines = [
- "enable_extensions=$enable_chrome_extensions",
- ]
+ defines = [ "enable_extensions=$enable_chrome_extensions" ]
outputs = [
"grit/wrt_resources.h",
"wrt_resources.pak",
mojom("mojo_bindings") {
cpp_only = true
- sources = [
- "src/common/wrt.mojom",
- ]
+ sources = [ "src/common/wrt.mojom" ]
public_deps = [
"//mojo/public/mojom/base",
"//ui/gfx/geometry/mojom",
}
sources = wrt_lib_sources + [
- "//chrome/browser/app_mode/app_mode_utils.cc",
- "//chrome/browser/app_mode/app_mode_utils.h",
- "//chrome/browser/browser_features.cc",
- "//chrome/browser/browser_features.h",
- "//chrome/browser/browser_process.cc",
- "//chrome/browser/browser_process.h",
- "//chrome/browser/devtools/devtools_contents_resizing_strategy.cc",
- "//chrome/browser/devtools/devtools_contents_resizing_strategy.h",
- "//chrome/browser/devtools/devtools_embedder_message_dispatcher.cc",
- "//chrome/browser/devtools/devtools_embedder_message_dispatcher.h",
- "//chrome/browser/devtools/devtools_file_system_indexer.cc",
- "//chrome/browser/devtools/devtools_file_system_indexer.h",
- "//chrome/browser/icon_loader.cc",
- "//chrome/browser/icon_loader.h",
- "//chrome/browser/icon_loader_auralinux.cc",
- "//chrome/browser/icon_manager.cc",
- "//chrome/browser/icon_manager.h",
- "//chrome/browser/net/chrome_mojo_proxy_resolver_factory.cc",
- "//chrome/browser/net/chrome_mojo_proxy_resolver_factory.h",
- "//chrome/browser/net/proxy_config_monitor.cc",
- "//chrome/browser/net/proxy_config_monitor.h",
- "//chrome/browser/net/proxy_service_factory.cc",
- "//chrome/browser/net/proxy_service_factory.h",
- "//chrome/browser/process_singleton.h",
- "//chrome/browser/process_singleton_posix.cc",
- "//chrome/browser/ui/exclusive_access/exclusive_access_controller_base.cc",
- "//chrome/browser/ui/exclusive_access/exclusive_access_controller_base.h",
- "//chrome/browser/ui/exclusive_access/exclusive_access_manager.cc",
- "//chrome/browser/ui/exclusive_access/exclusive_access_manager.h",
- "//chrome/browser/ui/exclusive_access/fullscreen_controller.cc",
- "//chrome/browser/ui/exclusive_access/fullscreen_controller.h",
- "//chrome/browser/ui/exclusive_access/fullscreen_within_tab_helper.cc",
- "//chrome/browser/ui/exclusive_access/fullscreen_within_tab_helper.h",
- "//chrome/browser/ui/exclusive_access/keyboard_lock_controller.cc",
- "//chrome/browser/ui/exclusive_access/keyboard_lock_controller.h",
- "//chrome/browser/ui/exclusive_access/mouse_lock_controller.cc",
- "//chrome/browser/ui/exclusive_access/mouse_lock_controller.h",
- "//electron/shell/browser/certificate_manager_model.cc",
- "//electron/shell/browser/certificate_manager_model.h",
- "//electron/shell/browser/lib/power_observer_linux.cc",
- "//electron/shell/browser/relauncher_linux.cc",
- "//electron/shell/common/node_bindings_linux.cc",
- ]
+ "//chrome/browser/app_mode/app_mode_utils.cc",
+ "//chrome/browser/app_mode/app_mode_utils.h",
+ "//chrome/browser/browser_features.cc",
+ "//chrome/browser/browser_features.h",
+ "//chrome/browser/browser_process.cc",
+ "//chrome/browser/browser_process.h",
+ "//chrome/browser/devtools/devtools_contents_resizing_strategy.cc",
+ "//chrome/browser/devtools/devtools_contents_resizing_strategy.h",
+ "//chrome/browser/devtools/devtools_embedder_message_dispatcher.cc",
+ "//chrome/browser/devtools/devtools_embedder_message_dispatcher.h",
+ "//chrome/browser/devtools/devtools_file_system_indexer.cc",
+ "//chrome/browser/devtools/devtools_file_system_indexer.h",
+ "//chrome/browser/icon_loader.cc",
+ "//chrome/browser/icon_loader.h",
+ "//chrome/browser/icon_loader_auralinux.cc",
+ "//chrome/browser/icon_manager.cc",
+ "//chrome/browser/icon_manager.h",
+ "//chrome/browser/net/chrome_mojo_proxy_resolver_factory.cc",
+ "//chrome/browser/net/chrome_mojo_proxy_resolver_factory.h",
+ "//chrome/browser/net/proxy_config_monitor.cc",
+ "//chrome/browser/net/proxy_config_monitor.h",
+ "//chrome/browser/net/proxy_service_factory.cc",
+ "//chrome/browser/net/proxy_service_factory.h",
+ "//chrome/browser/process_singleton.h",
+ "//chrome/browser/process_singleton_posix.cc",
+ "//chrome/browser/ui/exclusive_access/exclusive_access_controller_base.cc",
+ "//chrome/browser/ui/exclusive_access/exclusive_access_controller_base.h",
+ "//chrome/browser/ui/exclusive_access/exclusive_access_manager.cc",
+ "//chrome/browser/ui/exclusive_access/exclusive_access_manager.h",
+ "//chrome/browser/ui/exclusive_access/fullscreen_controller.cc",
+ "//chrome/browser/ui/exclusive_access/fullscreen_controller.h",
+ "//chrome/browser/ui/exclusive_access/fullscreen_within_tab_helper.cc",
+ "//chrome/browser/ui/exclusive_access/fullscreen_within_tab_helper.h",
+ "//chrome/browser/ui/exclusive_access/keyboard_lock_controller.cc",
+ "//chrome/browser/ui/exclusive_access/keyboard_lock_controller.h",
+ "//electron/shell/browser/certificate_manager_model.cc",
+ "//electron/shell/browser/certificate_manager_model.h",
+ "//electron/shell/browser/lib/power_observer_linux.cc",
+ "//electron/shell/browser/relauncher_linux.cc",
+ "//electron/shell/common/node_bindings_linux.cc",
+ ]
sources += rebase_path(electron_override_sources, ".", "overrides/electron")
if (tizen_product_tv) {
sources += wrt_lib_sources_tv
}
}
- unused_electron_sources = [
- "shell/browser/api/electron_api_desktop_capturer.cc",
- "shell/browser/api/electron_api_global_shortcut.cc",
- "shell/browser/api/electron_api_native_theme.cc",
- "shell/browser/api/electron_api_safe_storage.cc",
- "shell/browser/electron_autofill_driver.cc",
- "shell/browser/electron_autofill_driver_factory.cc",
- "shell/browser/osr/osr_host_display_client.cc",
- "shell/browser/osr/osr_render_widget_host_view.cc",
- "shell/browser/osr/osr_video_consumer.cc",
- "shell/browser/osr/osr_view_proxy.cc",
- "shell/browser/osr/osr_web_contents_view.cc",
- "shell/browser/plugins/plugin_utils.cc",
- "shell/browser/ui/autofill_popup.cc",
- "shell/browser/ui/webui/accessibility_ui.cc",
- "shell/renderer/api/electron_api_spell_check_client.cc",
- "shell/renderer/electron_autofill_agent.cc",
- ] + electron_override_sources
+ unused_electron_sources =
+ [
+ "shell/browser/api/electron_api_desktop_capturer.cc",
+ "shell/browser/api/electron_api_global_shortcut.cc",
+ "shell/browser/api/electron_api_native_theme.cc",
+ "shell/browser/api/electron_api_safe_storage.cc",
+ "shell/browser/electron_autofill_driver.cc",
+ "shell/browser/electron_autofill_driver_factory.cc",
+ "shell/browser/osr/osr_host_display_client.cc",
+ "shell/browser/osr/osr_render_widget_host_view.cc",
+ "shell/browser/osr/osr_video_consumer.cc",
+ "shell/browser/osr/osr_view_proxy.cc",
+ "shell/browser/osr/osr_web_contents_view.cc",
+ "shell/browser/plugins/plugin_utils.cc",
+ "shell/browser/ui/autofill_popup.cc",
+ "shell/browser/ui/webui/accessibility_ui.cc",
+ "shell/renderer/api/electron_api_spell_check_client.cc",
+ "shell/renderer/electron_autofill_agent.cc",
+ ] + electron_override_sources
electron_sources = filenames.lib_sources + filenames.lib_sources_posix
if (enable_chrome_extensions) {
executable("wrt") {
testonly = true
- deps = [
- "//tizen_src/ewk/efl_integration:libchromium-ewk",
- ]
+ deps = [ "//tizen_src/ewk/efl_integration:libchromium-ewk" ]
sources = [ "src/app/wrt_main.cc" ]
ldflags = [
"-pie",
- "-Wl,--export-dynamic"
+ "-Wl,--export-dynamic",
]
cflags = [ "-fPIC" ]
if (is_tizen) {
}
shared_library("wrt-service-override") {
- sources = [
- "src/common/wrt_service_override.cc"
- ]
+ sources = [ "src/common/wrt_service_override.cc" ]
libs = [ "dlog" ]
- ldflags = [
- "-Wl,--export-dynamic"
- ]
+ ldflags = [ "-Wl,--export-dynamic" ]
cflags = [ "-fPIC" ]
}
testonly = true
deps = [
":wrt-service-override",
- "//tizen_src/ewk/efl_integration:libchromium-ewk"
+ "//tizen_src/ewk/efl_integration:libchromium-ewk",
]
sources = [
"src/app/service_main.cc",