remote-desktop: Unify codestyle in API
The code style in the remote-desktop API is currently a mess. While, the overall code style in mutter and gnome-remote-desktop is to use spaces as tabulator, the remote-desktop API is mixed with both spaces as tabulators and actual tabulators. In addition to that, the code style in the XDG desktop portal APIs uses spaces as tabulators as well. To unify the code style, replace all actual tabulators with spaces. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2255>
This commit is contained in:
parent
cff95d4932
commit
ecd45d28ac
@ -14,27 +14,27 @@
|
|||||||
<interface name="org.gnome.Mutter.RemoteDesktop">
|
<interface name="org.gnome.Mutter.RemoteDesktop">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
CreateSession:
|
CreateSession:
|
||||||
@session_path: Path to the new session object
|
@session_path: Path to the new session object
|
||||||
-->
|
-->
|
||||||
<method name="CreateSession">
|
<method name="CreateSession">
|
||||||
<arg name="session_path" type="o" direction="out" />
|
<arg name="session_path" type="o" direction="out" />
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
SupportedDeviceTypes:
|
SupportedDeviceTypes:
|
||||||
@short_description: Bit mask of supported device types
|
@short_description: Bit mask of supported device types
|
||||||
|
|
||||||
Device types:
|
Device types:
|
||||||
1: keyboard
|
1: keyboard
|
||||||
2: pointer
|
2: pointer
|
||||||
4: touchscreen
|
4: touchscreen
|
||||||
-->
|
-->
|
||||||
<property name="SupportedDeviceTypes" type="u" access="read" />
|
<property name="SupportedDeviceTypes" type="u" access="read" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Version:
|
Version:
|
||||||
@short_description: API version
|
@short_description: API version
|
||||||
-->
|
-->
|
||||||
<property name="Version" type="i" access="read" />
|
<property name="Version" type="i" access="read" />
|
||||||
|
|
||||||
@ -47,41 +47,42 @@
|
|||||||
<interface name="org.gnome.Mutter.RemoteDesktop.Session">
|
<interface name="org.gnome.Mutter.RemoteDesktop.Session">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
SessionId:
|
SessionId:
|
||||||
|
|
||||||
An identification string used for identifying a remote desktop session.
|
An identification string used for identifying a remote desktop session.
|
||||||
It can be used to associate screen cast sessions with a remote desktop session.
|
It can be used to associate screen cast sessions with a remote desktop
|
||||||
|
session.
|
||||||
-->
|
-->
|
||||||
<property name="SessionId" type="s" access="read" />
|
<property name="SessionId" type="s" access="read" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Start:
|
Start:
|
||||||
|
|
||||||
Start the remote desktop session
|
Start the remote desktop session
|
||||||
-->
|
-->
|
||||||
<method name="Start" />
|
<method name="Start" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Stop:
|
Stop:
|
||||||
|
|
||||||
Stop the remote desktop session
|
Stop the remote desktop session
|
||||||
-->
|
-->
|
||||||
<method name="Stop" />
|
<method name="Stop" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Closed:
|
Closed:
|
||||||
|
|
||||||
The session has closed.
|
The session has closed.
|
||||||
|
|
||||||
A session doesn't have to have been started before it may be closed.
|
A session doesn't have to have been started before it may be closed.
|
||||||
After it being closed, it can no longer be used.
|
After it being closed, it can no longer be used.
|
||||||
-->
|
-->
|
||||||
<signal name="Closed" />
|
<signal name="Closed" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyKeyboardKeycode:
|
NotifyKeyboardKeycode:
|
||||||
|
|
||||||
A key identified by an evdev keycode was pressed or released
|
A key identified by an evdev keycode was pressed or released
|
||||||
-->
|
-->
|
||||||
<method name="NotifyKeyboardKeycode">
|
<method name="NotifyKeyboardKeycode">
|
||||||
<arg name="keycode" type="u" direction="in" />
|
<arg name="keycode" type="u" direction="in" />
|
||||||
@ -89,9 +90,9 @@
|
|||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyKeyboardKeysym:
|
NotifyKeyboardKeysym:
|
||||||
|
|
||||||
A key identified by a keysym was pressed or released
|
A key identified by a keysym was pressed or released
|
||||||
-->
|
-->
|
||||||
<method name="NotifyKeyboardKeysym">
|
<method name="NotifyKeyboardKeysym">
|
||||||
<arg name="keysym" type="u" direction="in" />
|
<arg name="keysym" type="u" direction="in" />
|
||||||
@ -99,9 +100,9 @@
|
|||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyPointerButton:
|
NotifyPointerButton:
|
||||||
|
|
||||||
A pointer button was pressed or released
|
A pointer button was pressed or released
|
||||||
-->
|
-->
|
||||||
<method name="NotifyPointerButton">
|
<method name="NotifyPointerButton">
|
||||||
<arg name="button" type="i" direction="in" />
|
<arg name="button" type="i" direction="in" />
|
||||||
@ -109,34 +110,35 @@
|
|||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyPointerAxis:
|
NotifyPointerAxis:
|
||||||
|
|
||||||
A smooth pointer axis event notification. Relative motion deltas are to be
|
A smooth pointer axis event notification. Relative motion deltas are to
|
||||||
interpreted as pixel movement of a standardized mouse.
|
be interpreted as pixel movement of a standardized mouse.
|
||||||
|
|
||||||
Additionally to the smooth pointer axis event notification, an emulated
|
Additionally to the smooth pointer axis event notification, an emulated
|
||||||
discrete pointer axis event notification is emitted based on the submitted
|
discrete pointer axis event notification is emitted based on the
|
||||||
accumulated smooth scrolling steps.
|
submitted accumulated smooth scrolling steps.
|
||||||
The base for these emulated discrete pointer axis event is the discrete step
|
The base for these emulated discrete pointer axis event is the discrete
|
||||||
with the value 10.0.
|
step with the value 10.0.
|
||||||
This means that for a delta dx (or dy) with the value 10.0 one emulated
|
This means that for a delta dx (or dy) with the value 10.0 one emulated
|
||||||
discrete scrolling event is emitted.
|
discrete scrolling event is emitted.
|
||||||
For a high resolution smooth pointer axis event, a smaller value is submitted
|
For a high resolution smooth pointer axis event, a smaller value is
|
||||||
for each scrolling step.
|
submitted for each scrolling step.
|
||||||
This means: For a double resolution mouse wheel one emulated discrete event
|
This means: For a double resolution mouse wheel one emulated discrete
|
||||||
is emitted for 2 smooth pointer axis events with each having the value 5.0.
|
event is emitted for 2 smooth pointer axis events with each having the
|
||||||
|
value 5.0.
|
||||||
|
|
||||||
Possible @flags:
|
Possible @flags:
|
||||||
1: finish - scroll motion was finished (e.g. fingers lifted)
|
1: finish - scroll motion was finished (e.g. fingers lifted)
|
||||||
2: source_wheel - The scroll event is originated by a mouse wheel.
|
2: source_wheel - The scroll event is originated by a mouse wheel.
|
||||||
4: source_finger - The scroll event is originated by one or more fingers on
|
4: source_finger - The scroll event is originated by one or more
|
||||||
the device (eg. touchpads).
|
fingers on the device (eg. touchpads).
|
||||||
8: source_continuous - The scroll event is originated by the motion of some
|
8: source_continuous - The scroll event is originated by the motion
|
||||||
device (eg. a scroll button is set).
|
of some device (eg. a scroll button is set).
|
||||||
|
|
||||||
Maximum one of the @flags 'source_wheel', 'source_finger',
|
Maximum one of the @flags 'source_wheel', 'source_finger',
|
||||||
'source_continuous' may be specified.
|
'source_continuous' may be specified.
|
||||||
If no source flag is specified, `source_finger` is assumed.
|
If no source flag is specified, `source_finger` is assumed.
|
||||||
-->
|
-->
|
||||||
<method name="NotifyPointerAxis">
|
<method name="NotifyPointerAxis">
|
||||||
<arg name="dx" type="d" direction="in" />
|
<arg name="dx" type="d" direction="in" />
|
||||||
@ -145,9 +147,9 @@
|
|||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyPointerAxisDiscrete:
|
NotifyPointerAxisDiscrete:
|
||||||
|
|
||||||
A discrete pointer axis event notification
|
A discrete pointer axis event notification
|
||||||
-->
|
-->
|
||||||
<method name="NotifyPointerAxisDiscrete">
|
<method name="NotifyPointerAxisDiscrete">
|
||||||
<arg name="axis" type="u" direction="in" />
|
<arg name="axis" type="u" direction="in" />
|
||||||
@ -155,9 +157,9 @@
|
|||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyPointerMotionRelative:
|
NotifyPointerMotionRelative:
|
||||||
|
|
||||||
A relative pointer motion event notification
|
A relative pointer motion event notification
|
||||||
-->
|
-->
|
||||||
<method name="NotifyPointerMotionRelative">
|
<method name="NotifyPointerMotionRelative">
|
||||||
<arg name="dx" type="d" direction="in" />
|
<arg name="dx" type="d" direction="in" />
|
||||||
@ -165,9 +167,9 @@
|
|||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyPointerMotionAbsolute:
|
NotifyPointerMotionAbsolute:
|
||||||
|
|
||||||
A absolute pointer motion event notification
|
A absolute pointer motion event notification
|
||||||
-->
|
-->
|
||||||
<method name="NotifyPointerMotionAbsolute">
|
<method name="NotifyPointerMotionAbsolute">
|
||||||
<arg name="stream" type="s" direction="in" />
|
<arg name="stream" type="s" direction="in" />
|
||||||
@ -176,9 +178,9 @@
|
|||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyTouchDown:
|
NotifyTouchDown:
|
||||||
|
|
||||||
A absolute pointer motion event notification
|
A absolute pointer motion event notification
|
||||||
-->
|
-->
|
||||||
<method name="NotifyTouchDown">
|
<method name="NotifyTouchDown">
|
||||||
<arg name="stream" type="s" direction="in" />
|
<arg name="stream" type="s" direction="in" />
|
||||||
@ -188,9 +190,9 @@
|
|||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyTouchMotion:
|
NotifyTouchMotion:
|
||||||
|
|
||||||
A absolute pointer motion event notification
|
A absolute pointer motion event notification
|
||||||
-->
|
-->
|
||||||
<method name="NotifyTouchMotion">
|
<method name="NotifyTouchMotion">
|
||||||
<arg name="stream" type="s" direction="in" />
|
<arg name="stream" type="s" direction="in" />
|
||||||
@ -200,9 +202,9 @@
|
|||||||
</method>
|
</method>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
NotifyTouchUp:
|
NotifyTouchUp:
|
||||||
|
|
||||||
A absolute pointer motion event notification
|
A absolute pointer motion event notification
|
||||||
-->
|
-->
|
||||||
<method name="NotifyTouchUp">
|
<method name="NotifyTouchUp">
|
||||||
<arg name="slot" type="u" direction="in" />
|
<arg name="slot" type="u" direction="in" />
|
||||||
|
Loading…
Reference in New Issue
Block a user