Closed Bug 831783 Opened 11 years ago Closed 11 years ago

Clean up event constants

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 21

People

(Reporter: kats, Assigned: kats)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
There's a bunch of event constants in GeckoEvents.java that are not used, and some in the XUL fennec GeckoEvents that are horribly out of date. Patch attached. Try build running at https://tbpl.mozilla.org/?tree=Try&rev=2b061861aa1e

Presumably this patch won't break XUL fennec any more than it is already broken, and hopefully will actually fix some things and/or make it more consistent.
Attachment #703344 - Flags: review?(snorp)
Comment on attachment 703344 [details] [diff] [review]
Patch

Review of attachment 703344 [details] [diff] [review]:
-----------------------------------------------------------------

::: embedding/android/GeckoEvent.java
@@ +46,5 @@
>      public static final int BROADCAST = 19;
>      public static final int VIEWPORT = 20;
>      public static final int VISITED = 21;
>      public static final int NETWORK_CHANGED = 22;
> +    public static final int SCREENORIENTATION_CHANGED = 27;

Since this is out of sequence, may be worth commenting that it's set to match the one in mobile/android/GeckoEvent.java?
Attachment #703344 - Flags: review?(snorp) → review+
https://hg.mozilla.org/mozilla-central/rev/48c0d6ebc3d5
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: