コード例 #1
0
ファイル: PlatformScreen.cpp プロジェクト: kjthegod/WebKit
WebScreenOrientationType screenOrientationType(Widget* widget)
{
    HostWindow* hostWindow = toHostWindow(widget);
    if (!hostWindow)
        return WebScreenOrientationUndefined;
    return hostWindow->screenInfo().orientationType;
}
コード例 #2
0
ファイル: PlatformScreen.cpp プロジェクト: kjthegod/WebKit
uint16_t screenOrientationAngle(Widget* widget)
{
    HostWindow* hostWindow = toHostWindow(widget);
    if (!hostWindow)
        return 0;
    return hostWindow->screenInfo().orientationAngle;
}
コード例 #3
0
ファイル: PlatformScreen.cpp プロジェクト: kjthegod/WebKit
FloatRect screenAvailableRect(Widget* widget)
{
    HostWindow* hostWindow = toHostWindow(widget);
    if (!hostWindow)
        return FloatRect();
    return IntRect(hostWindow->screenInfo().availableRect);
}
コード例 #4
0
ファイル: PlatformScreen.cpp プロジェクト: kjthegod/WebKit
bool screenIsMonochrome(Widget* widget)
{
    HostWindow* hostWindow = toHostWindow(widget);
    if (!hostWindow)
        return false;
    return hostWindow->screenInfo().isMonochrome;
}
コード例 #5
0
ファイル: PlatformScreen.cpp プロジェクト: kjthegod/WebKit
int screenDepthPerComponent(Widget* widget)
{
    HostWindow* hostWindow = toHostWindow(widget);
    if (!hostWindow)
        return 0;
    return hostWindow->screenInfo().depthPerComponent;
}
コード例 #6
0
ファイル: PlatformScreen.cpp プロジェクト: kjthegod/WebKit
int screenDepth(Widget* widget)
{
    HostWindow* hostWindow = toHostWindow(widget);
    if (!hostWindow)
        return 0;
    return hostWindow->screenInfo().depth;
}