private:
// NativeWindow:
+ void CloseImmediately() override;
+ void Focus(bool focus) override;
void Hide() override;
+ void SetEnabled(bool enable) override;
// WRTNativeWindow:
- void CloseImmediately() override;
- void Focus(bool focus) override;
void OnRotation(int degree) override;
void SetWebContents(content::WebContents* web_contents) override;
void LowerWindow() override;
bool IsRunningAsBackground() override;
bool IsSameWindowId(const unsigned int window_id) override;
- void SetEnabled(bool enable) override;
void SetPageVisibility(bool visible) override;
bool WillHandleConformantChange() override;
bool ShouldHandleConformantChange() override;
#include "wrt/src/common/application_data.h"
#include "wrt/src/common/wrt_profile_delegate.h"
-#if BUILDFLAG(IS_TIZEN_TV)
-#include "base/path_service.h"
-#include "tizen_src/chromium_impl/content/common/paths_efl.h"
-#include "wrt/src/browser/tv/wrt_native_window_tv.h"
-#endif
-
#if defined(TIZEN_ATK_SUPPORT)
#include "tizen_src/ewk/efl_integration/eweb_accessibility.h"
#include "tizen_src/ewk/efl_integration/eweb_accessibility_util.h"
#endif
#if BUILDFLAG(IS_TIZEN_TV)
+#include "wrt/src/browser/tv/wrt_native_window_tv.h"
+
using WRTNativeWindowType = wrt::WRTNativeWindowTV;
#else
using WRTNativeWindowType = wrt::WRTNativeWindow;
}
void WRTNativeWindow::SetBackgroundColor(SkColor color) {
-#if BUILDFLAG(IS_TIZEN_TV)
- content::WebContentsViewAura* aura = GetWebContentsViewAura();
- aura->SetBackgroundColor(color);
-#endif
+ GetWebContentsViewAura()->SetBackgroundColor(color);
}
SkColor WRTNativeWindow::GetBackgroundColor() {
-#if BUILDFLAG(IS_TIZEN_TV)
- content::WebContentsViewAura* aura = GetWebContentsViewAura();
- return aura->GetBackgroundColor();
-#else
- return SK_ColorWHITE;
-#endif
+ return GetWebContentsViewAura()->GetBackgroundColor();
}
void WRTNativeWindow::SetHasShadow(bool has_shadow) {