// No need to reload if the current entry matches that of the
// NavigationRequest supplied to DidStartNavigation() as NavigationRequest
// handles it.
-#if defined(OS_TIZEN_TV_PRODUCT) && defined(ENABLE_WRT_JS)
+#if BUILDFLAG(IS_TIZEN_TV) && defined(ENABLE_WRT_JS)
if (need_reload_by_ua_change_)
#endif
ForEachFrameTree(base::BindRepeating([](FrameTree* frame_tree) {
void SetAtkEnabled(bool enabled);
#endif
-#if defined(OS_TIZEN_TV_PRODUCT) && defined(ENABLE_WRT_JS)
+#if BUILDFLAG(IS_TIZEN_TV) && defined(ENABLE_WRT_JS)
void SetReloadByUserAgentChange(bool will_reload) {
need_reload_by_ua_change_ = will_reload;
}
bool spatial_navigation_enabled_ = false;
#endif
-#if defined(OS_TIZEN_TV_PRODUCT) && defined(ENABLE_WRT_JS)
+#if BUILDFLAG(IS_TIZEN_TV) && defined(ENABLE_WRT_JS)
bool need_reload_by_ua_change_ = true;
#endif
#include "ui/gfx/icc_profile.h"
#include "url/gurl.h"
-#if defined(TIZEN_MULTIMEDIA) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(TIZEN_MULTIMEDIA) && BUILDFLAG(IS_TIZEN_TV)
#include "content/public/renderer/render_frame.h"
#include "media/base/media_url_demuxer.h"
#include "third_party/blink/public/web/web_local_frame.h"
RenderFrame* render_frame,
const GURL& url,
scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
-#if defined(TIZEN_MULTIMEDIA) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(TIZEN_MULTIMEDIA) && BUILDFLAG(IS_TIZEN_TV)
if (content::IsHbbTV()) {
blink::WebLocalFrame* frame = render_frame->GetWebFrame();
return std::make_unique<media::MediaUrlDemuxer>(
namespace {
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
const int32_t kMaxTextureSamples = 4;
#endif
attrib_helper.should_use_native_gmb_for_backbuffer = use_image_chromium_;
attrib_helper.context_type = gpu::CONTEXT_TYPE_OPENGLES2;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
if (attrib_helper.samples > 1 && attrib_helper.sample_buffers > 1) {
attrib_helper.samples = std::min(attrib_helper.samples, kMaxTextureSamples);
}
#include "content/renderer/java/gin_java_bridge_dispatcher.h"
#endif
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
#if defined(ENABLE_WRT_JS)
#include "third_party/blink/public/platform/web_application_type.h"
#endif
navigation_params->http_method = WebString::FromASCII(common_params->method);
navigation_params->error_code = error_code;
-#if defined(ENABLE_WRT_JS) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(ENABLE_WRT_JS) && BUILDFLAG(IS_TIZEN_TV)
if (blink::IsTIZENWRT())
navigation_params->grant_load_local_resources = true;
#endif
gl::GLApi* api() const;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
void SetTextureSamples(GLsizei samples) { texture_samples_ = samples; }
#endif
private:
raw_ptr<GLES2DecoderImpl> decoder_;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
GLsizei texture_samples_;
#endif
GLuint id_;
GLenum offscreen_target_depth_format_;
GLenum offscreen_target_stencil_format_;
GLsizei offscreen_target_samples_;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
GLsizei offscreen_texture_samples_;
#endif
GLboolean offscreen_target_buffer_preserved_;
BackFramebuffer::BackFramebuffer(GLES2DecoderImpl* decoder)
: decoder_(decoder),
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
texture_samples_(0),
#endif
id_(0) {
decoder_->error_state_.get());
ScopedFramebufferBinder binder(decoder_, id_);
GLuint attach_id = texture ? texture->id() : 0;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
if (texture_samples_ > 1) {
glFramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
GL_TEXTURE_2D, attach_id, 0,
offscreen_target_depth_format_(0),
offscreen_target_stencil_format_(0),
offscreen_target_samples_(0),
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
offscreen_texture_samples_(0),
#endif
offscreen_target_buffer_preserved_(true),
// ANGLE only supports packed depth/stencil formats, so use it if it is
// available.
const bool depth24_stencil8_supported =
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
offscreen_texture_samples_ <= 1 &&
#endif
feature_info_->feature_flags().packed_depth24_stencil8;
// Create the target frame buffer. This is the one that the client renders
// directly to.
offscreen_target_frame_buffer_ = std::make_unique<BackFramebuffer>(this);
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
offscreen_target_frame_buffer_->SetTextureSamples(
offscreen_texture_samples_);
#endif
// Create the saved offscreen texture. The target frame buffer is copied
// here when SwapBuffers is called.
offscreen_saved_frame_buffer_ = std::make_unique<BackFramebuffer>(this);
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
offscreen_saved_frame_buffer_->SetTextureSamples(
offscreen_texture_samples_);
#endif
}
}
int32_t target_samples = offscreen_target_samples_;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
if (target_samples == 1 && offscreen_texture_samples_ > 1)
target_samples = offscreen_texture_samples_;
#endif
#else
PIXEL_FORMAT_MAX =
PIXEL_FORMAT_YUV444AP10, // Must always be equal to largest entry logged.
-#endif // defined(OS_TIZEN)
+#endif // BUILDFLAG(IS_TIZEN)
};
// These values are persisted to logs. Entries should not be renumbered and
namespace {
const char kCheckPrivilegeOperationName[] = "check_ace_privilege";
const char kGetWindowIdOperationName[] = "get_window_id";
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
const char kSetIMERecommendedWordsName[] = "set_ime_recommended_words";
const char kSetIMERecommendedWordsTypeName[] = "set_ime_recommended_words_type";
#endif
return has_privilege;
}
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
bool ExtensionSystemSamsungTizen::SetIMERecommendedWords(const Var& words) {
Var call_result = GenericSyncCall(kSetIMERecommendedWordsName, words);
if (call_result.is_bool())
DidUpdateTextOfFocusedElementByNonUserInput();
#else
ShowVirtualKeyboard();
-#endif // endif defined(OS_TIZEN_TV_PRODUCT)
+#endif // BUILDFLAG(IS_TIZEN_TV)
}
#else
#include "ppapi/proxy/dispatch_reply_message.h"
#include "ppapi/proxy/ppapi_messages.h"
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
#include "content/browser/renderer_host/pepper/remote_controller_wrt.h"
#include "ewk/efl_integration/common/application_type.h"
#endif
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (delegate_)
return delegate_.get();
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
if (IsTIZENWRT())
delegate_ = CreateRemoteControllerWRT(pp_instance(), host_);
#endif
ListClosedCallback);
edje_object_signal_callback_del(edje_obj, kMouseClicked1, kDimmObj,
ListClosedCallback);
-#if defined(OS_TIZEN)
+#if BUILDFLAG(IS_TIZEN)
eext_object_event_callback_del(layout_, EEXT_CALLBACK_BACK,
HWBackKeyCallback);
#endif
#include "media/base/tizen/video_plane_controller.h"
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
#include "ui/display/device_display_info_efl.h"
#endif
#include "ui/display/display.h"
#include "ui/display/screen.h"
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
#include <player_product.h>
#endif
int VideoPlaneControllerCapi::Initialize() {
int ret = PLAYER_ERROR_NONE;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
ret = player_set_display_mode(player_handle_, PLAYER_DISPLAY_MODE_DST_ROI);
if (ret != PLAYER_ERROR_NONE)
int VideoPlaneControllerCapi::SetVideoRect(const gfx::RectF& rect) {
int ret = PLAYER_ERROR_NONE;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
ret = player_set_display_roi_area(player_handle_, rect.x(), rect.y(),
rect.width(), rect.height());
#endif
int VideoPlaneControllerCapi::PlayerSetCropRatio(const gfx::RectF& rect) {
int ret = PLAYER_ERROR_NONE;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
LOG(INFO) << "crop_ratio : (" << rect.x() << ", " << rect.y() << ", "
<< rect.width() << ", " << rect.height() << ")";
player_display_rotation_e
VideoPlaneControllerCapi::ConvertToPlayerDisplayRotation(int rotation) {
switch (rotation) {
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
case 90:
return PLAYER_DISPLAY_ROTATION_270;
case 180:
<< GetBuffer(DemuxerStream::VIDEO).buffer_percent << "%"
<< "\tAUDIO: " << GetBuffer(DemuxerStream::AUDIO).buffer_percent
<< "%";
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
// The buffer is controlled in time domain, however we want to stop
// pushing data in case of size overflow as well
buffer.has_size_overflow = (buffer_status == kBufferOverflow);
}
// FIXME: TM1 is giving wrong time size for pipeline.
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
if ((ret = esplusplayer_set_buffer_time_status_cb(
player, callbacks.time_status_cb, this)) !=
ESPLUSPLAYER_ERROR_TYPE_NONE) {
#include "media/filters/media_capabilities.h"
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
#include <capi-system-info/system_info.h>
#include "base/command_line.h"
namespace {
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
bool IsCameraHardwareEncoderEnabled() {
#if !defined(EWK_BRINGUP) // Fixme: Remove after Port Video Encoders Patch is merged
// const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
#if defined(TIZEN_VD_MULTIPLE_MIXERDECODER)
if ((MediaType::Video == type) && content::IsTIZENWRT())
return 3;
-#elif defined(OS_TIZEN_TV_PRODUCT)
+#elif BUILDFLAG(IS_TIZEN_TV)
if (MediaType::Video == type) {
if (
#if !defined(EWK_BRINGUP) // Fixme: Remove after HDR and codec related patch is merged
using TVCapabilitiesSetup =
RuntimeAVCapabilitiesSetup<TVAudioCapabilities, TVVideoCapabilities>;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
using DefaultCapabilitiesSetup = TVCapabilitiesSetup;
#elif defined(OS_TIZEN_DA_PRODUCT)
using DefaultCapabilitiesSetup = DACapabilitiesSetup;
#include "ewk_interface_main.h"
+#include "build/build_config.h"
+
#define TIZEN_VERSION \
(TIZEN_VERSION_MAJOR * 10000 + TIZEN_VERSION_MINOR * 100 + \
TIZEN_VERSION_PATCH)
(TIZEN_VERSION >= (major * 10000 + minor * 100 + patch))
#define CHROMIUM_PRELOAD_LIB_PATH LIB_RO_ROOT_DIR "/lib/" CHROMIUM_IMPL_LIB_FILE
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
#define PATH_PRELOAD_CHROMIUM_EFL_IMG APP_RO_ROOT_DIR "/res/chromium-efl.img"
#define MOUNT_ARGS_PRELOAD_CHROMIUM \
PATH_PRELOAD_CHROMIUM_EFL_IMG " " LIB_RO_ROOT_DIR " -t squashfs -o loop,ro"
#include <ttrace.h>
#include <sys/resource.h>
-#endif
+#endif // BUILDFLAG(IS_TIZEN_TV)
#include <EWebKit.h>
#include <EWebKit_internal.h>
return ((unsigned long long)ts.tv_sec * 1000) + (ts.tv_nsec / 1000000);
}
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
bool g_upgrade_lib = false; // conservative policy
const char* kChromiumMountReady = "/tmp/.chromium_mount.ready";
const char* kUWETag = "USE_UWE";
LOG(INFO) << "Set process priority : " << absolute;
}
#endif // TIZEN_VERSION_AT_LEAST(7, 0, 0)
-#endif // OS_TIZEN_TV_PRODUCT
+#endif // BUILDFLAG(IS_TIZEN_TV)
void* open_library() {
if (g_impl_lib_handle)
return g_impl_lib_handle;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
g_upgrade_lib = (g_upgrade_lib && !access(CHROMIUM_UPGRADE_LIB_PATH, F_OK));
const char* path =
g_upgrade_lib ? CHROMIUM_UPGRADE_LIB_PATH : CHROMIUM_PRELOAD_LIB_PATH;
}
Eina_Bool ewk_wait_chromium_ready(unsigned int timeout_msec) {
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
LOG(INFO) << "ewk_wait_chromium_ready called. timeout : " << timeout_msec;
int ret = LwipcWaitEvent(kChromiumMountReady, timeout_msec);
}
Eina_Bool ewk_check_chromium_ready() {
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
LOG(INFO) << "ewk_check_chromium_ready called.";
if (LwipcIsDone(kChromiumMountReady) > 0) {
}
int ewk_set_version_policy(int preference) {
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
int ret = preference;
if (0 == preference)
g_upgrade_lib = false; // conservative
const char** argv) {
LOG(INFO) << "EWK-INTERFACE : efl_webprocess_main called..";
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
if (!g_impl_lib_handle && !access(CHROMIUM_UPGRADE_LIB_PATH, F_OK)) {
// If library is not loaded and upgrade package is installed,
// we need to decide upgrade library by command line flag --impl-library
__attribute__((visibility("default"))) int WRTMain(int argc, char** argv) {
LOG(INFO) << "EWK-INTERFACE : WRTMain called..";
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
#if TIZEN_VERSION_AT_LEAST(7, 0, 0)
if (!ewk_check_chromium_ready())
SetPriority(-20);
bool AreTrustedPepperPluginsDisabled() {
auto command_line = base::CommandLine::ForCurrentProcess();
return
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
content::IsWebBrowser() &&
#endif
!command_line->HasSwitch(switches::kEnableTrustedPepperPlugins);
return true;
}
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
void DevToolsDelegateEfl::ReleasePort() {
content::DevToolsUtilManager::GetInstance()->ReleasePort();
}
#include <unistd.h>
#include "base/logging.h"
#include "devtools_port_msg.h"
-#if defined(OS_TIZEN)
+#if BUILDFLAG(IS_TIZEN)
#include <vconf/vconf.h>
#endif
namespace devtools_http_handler {
bool DevToolsPortManager::ProcessCompare() {
std::string processName = GetCurrentProcessName();
-#if defined(OS_TIZEN)
+#if BUILDFLAG(IS_TIZEN)
char* vconfWidgetName = vconf_get_str("db/rwi/inspected_appid");
#else
char* vconfWidgetName = NULL;
command_line.AppendSwitchASCII(switches::kTizenAppVersion, tizen_app_version);
return true;
#else
- LOG(WARNING) << "OS_TIZEN is not enabled.";
+ LOG(WARNING) << "IS_TIZEN is not enabled.";
return false;
#endif // IS_TIZEN
}
#include "devtools_port_manager.h"
#include "public/ewk_media_downloadable_font_info.h"
#include "browser/mixed_content_observer.h"
-#endif // OS_TIZEN_TV_PRODUCT
+#endif
#if defined(TIZEN_PEPPER_EXTENSIONS)
#include "efl/window_factory.h"
void ClearLabels();
void AddDynamicCertificatePath(const std::string& host,
const std::string& cert_path);
+
+ bool SetMixedContents(bool allow);
+ void ClearAllTilesResources();
+ bool UseEarlyRWI() { return use_early_rwi_; }
+ bool RWIInfoShowed() { return rwi_info_showed_; }
+ GURL RWIURL() { return rwi_gurl_; }
+ void OnDialogClosed();
#endif // IS_TIZEN_TV
void SetDidChangeThemeColorCallback(
void OnSelectionRectReceived(const gfx::Rect& selection_rect) const;
-#if BUILDFLAG(IS_TIZEN_TV)
- bool SetMixedContents(bool allow);
- void ClearAllTilesResources();
- bool UseEarlyRWI() { return use_early_rwi_; }
- bool RWIInfoShowed() { return rwi_info_showed_; }
- GURL RWIURL() { return rwi_gurl_; }
- void OnDialogClosed();
-#endif // OS_TIZEN_TV_PRODUCT
-
private:
static void NativeViewResize(void* data,
Evas* e,
#if BUILDFLAG(IS_TIZEN_TV)
void InitInspectorServer();
+
+ void RunPendingSetFocus(Eina_Bool focus);
#endif
#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
service_h reply,
service_result_e result,
void* data);
-#endif
-#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
bool LaunchCamera(std::u16string mimetype);
#endif
+
JavaScriptDialogManagerEfl* GetJavaScriptDialogManagerEfl();
// Changes viewport without resizing Evas_Object representing webview
void UpdateContextMenuWithParams(const content::ContextMenuParams& params);
static Eina_Bool DelayedPopulateAndShowContextMenu(void* data);
-#if BUILDFLAG(IS_TIZEN_TV)
- void RunPendingSetFocus(Eina_Bool focus);
-#endif
scoped_refptr<WebViewEvasEventHandler> evas_event_handler_;
scoped_refptr<Ewk_Context> context_;
exceeded_indexed_db_quota_callback_;
std::unique_ptr<Ewk_Security_Origin> exceeded_indexed_db_quota_origin_;
-#if BUILDFLAG(IS_TIZEN)
- blink::mojom::FileChooserParams::Mode filechooser_mode_;
-#endif
std::map<const _Ewk_Quota_Permission_Request*,
content::QuotaPermissionContext::PermissionCallback>
quota_permission_request_map_;
#if BUILDFLAG(IS_TIZEN)
+ blink::mojom::FileChooserParams::Mode filechooser_mode_;
Ecore_Event_Handler* window_rotate_handler_ = nullptr;
#endif
bool use_early_rwi_;
bool rwi_info_showed_;
GURL rwi_gurl_;
+
+ base::OnceClosure pending_setfocus_closure_;
#endif
std::unique_ptr<_Ewk_Back_Forward_List> back_forward_list_;
static content::WebContentsEflDelegate::WebContentsCreateCallback
create_new_window_web_contents_cb_;
- private:
#if defined(TIZEN_VIDEO_HOLE)
void EnableVideoHoleSupportInternal();
#endif
#endif
Ecore_Timer* delayed_show_context_menu_timer_ = nullptr;
-
-#if BUILDFLAG(IS_TIZEN_TV)
- base::OnceClosure pending_setfocus_closure_;
-#endif
};
const unsigned int g_default_tilt_motion_sensitivity = 3;
#include "ppapi/cpp/samsung/extension_system_samsung_wrt.h"
#include "private/ewk_value_private.h"
-#if defined(OS_TIZEN_TV_PRODUCT) && defined(USE_WAYLAND)
+#if BUILDFLAG(IS_TIZEN_TV) && defined(USE_WAYLAND)
#include <Ecore_Evas.h>
#if TIZEN_VERSION_AT_LEAST(5, 0, 0)
#include <Ecore_Wl2.h>
#include <Ecore_Wayland.h>
#endif
#include <tizen-extension-client-protocol.h>
-#endif // defined(OS_TIZEN_TV_PRODUCT) && defined(USE_WAYLAND)
+#endif // BUILDFLAG(IS_TIZEN_TV) && defined(USE_WAYLAND)
namespace {
static const char kTypeWebBrowserName[] = "WebBrowser";
static base::LazyInstance<std::string>::Leaky current_embedder_name =
LAZY_INSTANCE_INITIALIZER;
-#if defined(OS_TIZEN_TV_PRODUCT) && defined(USE_WAYLAND)
+#if BUILDFLAG(IS_TIZEN_TV) && defined(USE_WAYLAND)
struct WLRegistryDestroy {
void operator()(void* x) const {
}
#endif // TIZEN_VERSION_AT_LEAST(5, 0, 0)
-#endif // defined(OS_TIZEN_TV_PRODUCT) && defined(USE_WAYLAND)
+#endif // BUILDFLAG(IS_TIZEN_TV) && defined(USE_WAYLAND)
} // namespace
}
void EwkExtensionSystemDelegate::SetWindowId(const Evas_Object* main_window) {
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
Evas* evas = evas_object_evas_get(main_window);
if (!evas) {
LOG(ERROR) << "Evas can`t be acquired for main window";
Ecore_X_Window ww = ecore_evas_gl_x11_window_get(ee);
window_id_ = static_cast<int>(ww);
#endif // defined(USE_WAYLAND)
-#endif // defined(OS_TIZEN_TV_PRODUCT)
+#endif // BUILDFLAG(IS_TIZEN_TV)
}
#include "ewk/efl_integration/ewk_privilege_checker.h"
-#if defined(OS_TIZEN)
+#if BUILDFLAG(IS_TIZEN)
#include <app_manager.h>
#include <cynara-client.h>
#include <pkgmgr-info.h>
#include <unistd.h>
-#endif // defined(OS_TIZEN)
+#endif // BUILDFLAG(IS_TIZEN)
#include <fstream>
#include <memory>
#include "base/compiler_specific.h"
#include "base/logging.h"
-#if defined(OS_TIZEN)
+#if BUILDFLAG(IS_TIZEN)
namespace {
bool GetPkgApiVersion(std::string* api_version) {
char* app_id = nullptr;
}
} // namespace
-#endif // defined(OS_TIZEN)
+#endif // BUILDFLAG(IS_TIZEN)
namespace content {
}
bool EwkPrivilegeChecker::CheckPrivilege(const std::string& privilege_name) {
-#if defined(OS_TIZEN)
+#if BUILDFLAG(IS_TIZEN)
static constexpr char kSmackLabelFilePath[] = "/proc/self/attr/current";
int ret;
return false;
}
return true;
-#else // defined(OS_TIZEN)
+#else // BUILDFLAG(IS_TIZEN)
ALLOW_UNUSED_LOCAL(privilege_name);
return false;
#endif
void ewk_settings_spatial_navigation_enabled_set(Ewk_Settings* settings, Eina_Bool enable)
{
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
EINA_SAFETY_ON_NULL_RETURN(settings);
LOG(INFO)<<"ewk_settings_spatial_navigation_enabled_set, enabled: " <<(bool)enable;
settings->getPreferences().spatial_navigation_enabled = !!enable;
void ewk_view_set_cursor_by_client(Evas_Object* ewkView, Eina_Bool enable) {}
void ewk_view_widget_pepper_extension_callback_set(Evas_Object* ewk_view, Generic_Sync_Call_Callback cb, void* user_data) {
-#if defined(TIZEN_PEPPER_EXTENSIONS) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(TIZEN_PEPPER_EXTENSIONS) && BUILDFLAG(IS_TIZEN_TV)
EWK_VIEW_IMPL_GET_OR_RETURN(ewk_view, impl);
impl->SetPepperExtensionCallback(cb, user_data);
#else
}
void ewk_view_widget_pepper_extension_info_set(Evas_Object* ewk_view, Ewk_Value widget_pepper_ext_info) {
-#if defined(TIZEN_PEPPER_EXTENSIONS) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(TIZEN_PEPPER_EXTENSIONS) && BUILDFLAG(IS_TIZEN_TV)
EWK_VIEW_IMPL_GET_OR_RETURN(ewk_view, impl);
impl->SetPepperExtensionWidgetInfo(widget_pepper_ext_info);
#else
// WebViewPlugin::Delegate method.
v8::Local<v8::Value> GetV8Handle(v8::Isolate*) override;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
bool PluginIsAvplayer() override { return true; }
#endif
void OnUnobscuredRectUpdate(const gfx::Rect& unobscured_rect) override;
v8::Local<v8::Value> GetV8Handle(v8::Isolate*) override;
v8::Local<v8::Object> GetV8ScriptableObject(
v8::Isolate* isolate) const override;
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
bool PluginIsAvplayer() { return false; }
#endif
void OnUnobscuredRectUpdate(const gfx::Rect& unobscured_rect) override;
#include <app_manager.h>
#endif
+#if BUILDFLAG(IS_TIZEN_TV)
+#include "browser/mixed_content_observer.h"
+#include "devtools_port_manager.h"
+#endif
+
#if defined(TIZEN_MULTIMEDIA)
#include "base/functional/callback.h"
#include "content/public/browser/media_capture_devices.h"
#include "browser/autofill/autofill_request_manager.h"
#endif
-#if BUILDFLAG(IS_TIZEN_TV)
-#include "devtools_port_manager.h"
-#endif // OS_TIZEN_TV_PRODUCT
-
#if defined(TIZEN_AUTOFILL)
#include "base/command_line.h"
#include "browser/autofill/autofill_client_efl.h"
using autofill::ContentAutofillDriverFactory;
using password_manager::PasswordManagerClientEfl;
#endif
-#if BUILDFLAG(IS_TIZEN_TV)
-#include "browser/mixed_content_observer.h"
-#endif
using std::u16string;
using namespace ui;
#include "ui/gfx/geometry/size.h"
#include "url/gurl.h"
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if BUILDFLAG(IS_TIZEN_TV)
#include "private/ewk_context_private.h"
#endif