#endif
#if BUILDFLAG(IS_EFL)
autofill::switches::kDisableAutofill,
+ blink::switches::kUseInternalPopupMenu,
#endif
#if BUILDFLAG(IS_TIZEN)
switches::kDiscardableMemoryLimit,
#if BUILDFLAG(IS_EFL)
// No plan to support complex UI for date/time INPUT types.
- WebRuntimeFeatures::EnableInputMultipleFieldsUI(false);
-
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ blink::switches::kUseInternalPopupMenu)) {
+ WebRuntimeFeatures::EnableInputMultipleFieldsUI(false);
+ }
// Small accelerated 2d canvas has tct issues, which are known in
// upstream version also.
WebRuntimeFeatures::EnableAcceleratedSmallCanvases(false);
render_thread = this;
g_main_task_runner.Get() = base::SingleThreadTaskRunner::GetCurrentDefault();
+#if BUILDFLAG(IS_EFL)
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ blink::switches::kUseInternalPopupMenu)) {
+ blink::WebView::SetUseExternalPopupMenus(false);
+ }
+#endif
+
// Register this object as the main thread.
ChildProcess::current()->set_main_thread(this);
extern const char kSendMouseEventsDisabledFormControlsPolicy_ForceEnable[] =
"1";
+// Enables internal popup menu
+#if BUILDFLAG(IS_EFL)
+const char kUseInternalPopupMenu[] = "use-internal-popup-menu";
+#endif
} // namespace switches
} // namespace blink
#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_SWITCHES_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_SWITCHES_H_
+#include "build/build_config.h"
#include "third_party/blink/public/common/common_export.h"
namespace blink {
BLINK_COMMON_EXPORT extern const char kTouchTextSelectionStrategy[];
BLINK_COMMON_EXPORT extern const char kTouchTextSelectionStrategy_Character[];
BLINK_COMMON_EXPORT extern const char kTouchTextSelectionStrategy_Direction[];
+#if BUILDFLAG(IS_EFL)
+BLINK_COMMON_EXPORT extern const char kUseInternalPopupMenu[];
+#endif
BLINK_COMMON_EXPORT extern const char kWebSQLAccess[];
} // namespace switches
web_view_impl->SetIgnoreViewportTagScaleLimits(prefs.force_enable_zoom);
settings->SetLoadWithOverviewMode(prefs.shrinks_viewport_contents_to_fit);
settings->SetUsesEncodingDetector(prefs.uses_encoding_detector);
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ blink::switches::kUseInternalPopupMenu)) {
+ RuntimeEnabledFeatures::SetPagePopupEnabled(false);
+ }
#endif
#if BUILDFLAG(IS_TIZEN)
NotifyPopupOpeningObservers();
ColorChooserUIController* controller = nullptr;
-#if defined(USE_EFL)
- // EFL port's color picker implementation is based on
- // ColorChooserUIController, similar to Android's impl.
- controller =
- MakeGarbageCollected<ColorChooserUIController>(frame, chooser_client);
-#else
if (RuntimeEnabledFeatures::PagePopupEnabled()) {
controller = MakeGarbageCollected<ColorChooserPopupUIController>(
frame, this, chooser_client);
controller =
MakeGarbageCollected<ColorChooserUIController>(frame, chooser_client);
}
-#endif
controller->OpenUI();
return controller;
}