mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
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:
parent
3744dc5f92
commit
450ee76669
@ -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 {
|
||||
|
@ -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})
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user