Bug 1786174 - Fix some other WebExtension warnings from the linting logs. r=geckoview-reviewers,calu

Differential Revision: https://phabricator.services.mozilla.com/D155153
This commit is contained in:
Ryan VanderMeulen 2022-08-31 22:10:39 +00:00
parent 3744dc5f92
commit 450ee76669
3 changed files with 10 additions and 5 deletions

View File

@ -1993,7 +1993,7 @@ package org.mozilla.geckoview {
@Retention(value=RetentionPolicy.SOURCE) public static interface WebExtension.BrowsingDataTypes {
}
public static interface WebExtension.ContextFlags {
@Retention(value=RetentionPolicy.SOURCE) public static interface WebExtension.ContextFlags {
}
public static class WebExtension.CreateTabDetails {
@ -2048,10 +2048,10 @@ package org.mozilla.geckoview {
field public final int id;
}
public static interface WebExtension.Download.DownloadInterruptReason {
@Retention(value=RetentionPolicy.SOURCE) public static interface WebExtension.Download.DownloadInterruptReason {
}
public static interface WebExtension.Download.DownloadState {
@Retention(value=RetentionPolicy.SOURCE) public static interface WebExtension.Download.DownloadState {
}
public static interface WebExtension.Download.Info {
@ -2094,7 +2094,7 @@ package org.mozilla.geckoview {
field public final boolean saveAs;
}
public static interface WebExtension.DownloadRequest.ConflictActionFlags {
@Retention(value=RetentionPolicy.SOURCE) public static interface WebExtension.DownloadRequest.ConflictActionFlags {
}
@Retention(value=RetentionPolicy.SOURCE) public static interface WebExtension.EnabledFlags {

View File

@ -1944,6 +1944,7 @@ public class WebExtension {
// TODO: make public bug 1595822
@Retention(RetentionPolicy.SOURCE)
@IntDef(
flag = true,
value = {
@ -2052,6 +2053,7 @@ public class WebExtension {
*/
static class MenuItem {
@Retention(RetentionPolicy.SOURCE)
@IntDef(
flag = false,
value = {MenuType.NORMAL, MenuType.CHECKBOX, MenuType.RADIO, MenuType.SEPARATOR})
@ -2320,6 +2322,7 @@ public class WebExtension {
* Represents a download in progress where the app is currently receiving data from the server.
* See also {@link Info#state()}.
*/
@Retention(RetentionPolicy.SOURCE)
@IntDef({STATE_IN_PROGRESS, STATE_INTERRUPTED, STATE_COMPLETE})
public @interface DownloadState {}
@ -2335,6 +2338,7 @@ public class WebExtension {
/**
* Represents a possible reason why a download was interrupted. See also {@link Info#error()}.
*/
@Retention(RetentionPolicy.SOURCE)
@IntDef({
INTERRUPT_REASON_NO_INTERRUPT,
INTERRUPT_REASON_FILE_FAILED,
@ -2596,6 +2600,7 @@ public class WebExtension {
*/
public final boolean allowHttpErrors;
@Retention(RetentionPolicy.SOURCE)
@IntDef(
flag = true,
value = {CONFLICT_ACTION_UNIQUIFY, CONFLICT_ACTION_OVERWRITE, CONFLICT_ACTION_PROMPT})

View File

@ -1224,4 +1224,4 @@ to allow adding gecko profiler markers.
[65.24]: {{javadoc_uri}}/CrashReporter.html#sendCrashReport(android.content.Context,android.os.Bundle,java.lang.String)
[65.25]: {{javadoc_uri}}/GeckoResult.html
[api-version]: 33ebc0f936697e14d12094ff872be822275dc21b
[api-version]: 771802b68452c32d672df605e3a26d0eebd89b84