зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1634190 - P1: Delete ghost functions r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D85943
This commit is contained in:
Родитель
a773454b8e
Коммит
ae7d0cf614
|
@ -18,22 +18,9 @@ extern const gchar introspection_xml[] =
|
|||
"<method name=\"Raise\"/>"
|
||||
"<method name=\"Quit\"/>"
|
||||
"<property name=\"CanQuit\" type=\"b\" access=\"read\"/>"
|
||||
#ifdef MPRIS_FULLSCREEN
|
||||
"<property name=\"Fullscreen\" type=\"b\" access=\"readwrite\">"
|
||||
"<annotation name=\"org.mpris.MediaPlayer2.property.optional\" value=\"true\"/>"
|
||||
"</property>"
|
||||
"<property name=\"CanSetFullscreen\" type=\"b\" access=\"read\">"
|
||||
"<annotation name=\"org.mpris.MediaPlayer2.property.optional\" value=\"true\"/>"
|
||||
"</property>"
|
||||
#endif
|
||||
"<property name=\"CanRaise\" type=\"b\" access=\"read\"/>"
|
||||
"<property name=\"HasTrackList\" type=\"b\" access=\"read\"/>"
|
||||
"<property name=\"Identity\" type=\"s\" access=\"read\"/>"
|
||||
#ifdef MPRIS_DESKTOP_ENTRY
|
||||
"<property name=\"DesktopEntry\" type=\"s\" access=\"read\">"
|
||||
"<annotation name=\"org.mpris.MediaPlayer2.property.optional\" value=\"true\"/>"
|
||||
"</property>"
|
||||
#endif
|
||||
"<property name=\"SupportedUriSchemes\" type=\"as\" access=\"read\"/>"
|
||||
"<property name=\"SupportedMimeTypes\" type=\"as\" access=\"read\"/>"
|
||||
"</interface>"
|
||||
|
@ -58,21 +45,9 @@ extern const gchar introspection_xml[] =
|
|||
"<property name=\"PlaybackStatus\" type=\"s\" access=\"read\">"
|
||||
"<annotation name=\"org.freedesktop.DBus.Property.EmitsChangedSignal\" value=\"true\"/>"
|
||||
"</property>"
|
||||
#ifdef MPRIS_LOOP_STATUS
|
||||
"<property name=\"LoopStatus\" type=\"s\" access=\"readwrite\">"
|
||||
"<annotation name=\"org.freedesktop.DBus.Property.EmitsChangedSignal\" value=\"true\"/>"
|
||||
"<annotation name=\"org.mpris.MediaPlayer2.property.optional\" value=\"true\"/>"
|
||||
"</property>"
|
||||
#endif
|
||||
"<property name=\"Rate\" type=\"d\" access=\"readwrite\">"
|
||||
"<annotation name=\"org.freedesktop.DBus.Property.EmitsChangedSignal\" value=\"true\"/>"
|
||||
"</property>"
|
||||
#ifdef MRPIS_SHUFFLE
|
||||
"<property name=\"Shuffle\" type=\"b\" access=\"readwrite\">"
|
||||
"<annotation name=\"org.freedesktop.DBus.Property.EmitsChangedSignal\" value=\"true\"/>"
|
||||
"<annotation name=\"org.mpris.MediaPlayer2.property.optional\" value=\"true\"/>"
|
||||
"</property>"
|
||||
#endif
|
||||
"<property name=\"Metadata\" type=\"a{sv}\" access=\"read\">"
|
||||
"<annotation name=\"org.freedesktop.DBus.Property.EmitsChangedSignal\" value=\"true\"/>"
|
||||
"</property>"
|
||||
|
|
|
@ -76,16 +76,8 @@ class MPRISServiceHandler final : public dom::MediaControlKeySource {
|
|||
// Implementations of the MPRIS API Methods/Properties. constexpr'ed properties
|
||||
// will be what the user agent doesn't support and thus they are known at
|
||||
// compile time.
|
||||
#ifdef MPRIS_FULLSCREEN
|
||||
bool GetFullscreen();
|
||||
void SetFullscreen(bool aFullscreen);
|
||||
bool CanSetFullscreen();
|
||||
#endif
|
||||
bool HasTrackList();
|
||||
const char* Identity() const;
|
||||
#ifdef MPRIS_DESKTOP_ENTRY
|
||||
const char* DesktopEntry();
|
||||
#endif
|
||||
GVariant* SupportedUriSchemes();
|
||||
GVariant* SupportedMimeTypes();
|
||||
constexpr bool CanRaise();
|
||||
|
@ -106,20 +98,11 @@ class MPRISServiceHandler final : public dom::MediaControlKeySource {
|
|||
// supported for that URI it will raise a DBUS Error
|
||||
bool OpenUri(char* aUri);
|
||||
|
||||
#ifdef MPRIS_LOOP_STATUS
|
||||
MPRISLoopStatus GetLoopStatus();
|
||||
#endif
|
||||
|
||||
double GetRate() const;
|
||||
bool SetRate(double aRate);
|
||||
constexpr double GetMinimumRate();
|
||||
constexpr double GetMaximumRate();
|
||||
|
||||
#ifdef MPRIS_SHUFFLE
|
||||
bool GetShuffle() const;
|
||||
void SetShuffle(bool aShuffle);
|
||||
#endif
|
||||
|
||||
double GetVolume() const;
|
||||
bool SetVolume(double aVolume);
|
||||
int64_t GetPosition() const;
|
||||
|
|
Загрузка…
Ссылка в новой задаче