#include "TextTrackCue.h"
#endif
+#if ENABLE(TIZEN_VIEWPORT_META_TAG) && ENABLE(TIZEN_FULLSCREEN_API)
+#include "EflScreenUtilities.h"
+#endif
+
using namespace std;
namespace WebCore {
static const double timeWithoutMouseMovementBeforeHidingControls = 3;
+static const int defaultScreenWidth = 720;
MediaControlRootElement::MediaControlRootElement(Document* document)
: MediaControls(document)
#endif
, m_isMouseOverControls(false)
, m_isFullscreen(false)
+#if ENABLE(TIZEN_FULLSCREEN_API)
+ , m_resolutionScale(1.0f)
+#endif
{
}
if (Page* page = document()->page()) {
page->chrome()->setCursorHiddenUntilMouseMoves(true);
+
+#if ENABLE(TIZEN_VIEWPORT_META_TAG) && ENABLE(TIZEN_FULLSCREEN_API)
+ int screenWidth = getDefaultScreenResolution().width();
+ if (screenWidth != defaultScreenWidth)
+ m_panel->setInlineStyleProperty(CSSPropertyZoom, String::number(screenWidth/defaultScreenWidth));
+#endif
}
#if !ENABLE(TIZEN_GSTREAMER_VIDEO)
// And if we reenter fullscreen we also want the panel in the standard position.
m_panel->resetPosition();
+#if ENABLE(TIZEN_VIEWPORT_META_TAG) && ENABLE(TIZEN_FULLSCREEN_API)
+ if (getDefaultScreenResolution().width() != defaultScreenWidth)
+ m_panel->removeInlineStyleProperty(CSSPropertyZoom);
+#endif
+
#if !ENABLE(TIZEN_GSTREAMER_VIDEO)
stopHideFullscreenControlsTimer();
#endif