Changeset 256113 in webkit


Ignore:
Timestamp:
Feb 10, 2020 2:13:38 AM (4 years ago)
Author:
eocanha@igalia.com
Message:

[GTK] Mouse pointer no longer hidden during fullscreen video playback
https://bugs.webkit.org/show_bug.cgi?id=197346

Reviewed by Adrian Perez de Castro.

.:

Enabled the CURSOR_VISIBILITY feature on the GTK port.

  • Source/cmake/OptionsGTK.cmake:

Source/WebKit:

Covered by existing tests.

  • UIProcess/API/gtk/PageClientImpl.cpp:

(WebKit::PageClientImpl::setCursorHiddenUntilMouseMoves): Added implementation.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r255912 r256113  
     12020-02-10  Enrique Ocaña González  <eocanha@igalia.com>
     2
     3        [GTK] Mouse pointer no longer hidden during fullscreen video playback
     4        https://bugs.webkit.org/show_bug.cgi?id=197346
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        Enabled the CURSOR_VISIBILITY feature on the GTK port.
     9
     10        * Source/cmake/OptionsGTK.cmake:
     11
    1122020-02-06  Carlos Garcia Campos  <cgarcia@igalia.com>
    213
  • trunk/Source/WebKit/ChangeLog

    r256112 r256113  
     12020-02-10  Enrique Ocaña González  <eocanha@igalia.com>
     2
     3        [GTK] Mouse pointer no longer hidden during fullscreen video playback
     4        https://bugs.webkit.org/show_bug.cgi?id=197346
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        Covered by existing tests.
     9
     10        * UIProcess/API/gtk/PageClientImpl.cpp:
     11        (WebKit::PageClientImpl::setCursorHiddenUntilMouseMoves): Added implementation.
     12
    1132020-02-10  Adrian Perez de Castro  <aperez@igalia.com>
    214
  • trunk/Source/WebKit/UIProcess/API/gtk/PageClientImpl.cpp

    r255343 r256113  
    156156}
    157157
    158 void PageClientImpl::setCursorHiddenUntilMouseMoves(bool /* hiddenUntilMouseMoves */)
    159 {
    160     notImplemented();
     158void PageClientImpl::setCursorHiddenUntilMouseMoves(bool hiddenUntilMouseMoves)
     159{
     160    if (!hiddenUntilMouseMoves)
     161        return;
     162
     163    setCursor(WebCore::noneCursor());
     164
     165    // There's no need to set a timer to restore the cursor by hand. It will
     166    // be automatically restored when the mouse moves.
    161167}
    162168
  • trunk/Source/cmake/OptionsGTK.cmake

    r255475 r256113  
    152152WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_AUTOCAPITALIZE PRIVATE ON)
    153153WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CONTENT_EXTENSIONS PRIVATE ON)
     154WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CURSOR_VISIBILITY PRIVATE ON)
    154155WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DARK_MODE_CSS PRIVATE ON)
    155156WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DATALIST_ELEMENT PRIVATE ON)
Note: See TracChangeset for help on using the changeset viewer.