Commit Graph
2909 Commits
Author SHA1 Message Date
Jim Chen 6efe2dda8c Bug 1333589 - 2. Convert SiteIdentityPopup events to bundle events; r=sebastian
Convert the events used in SiteIdentityPopup to bundle events. UI thread
events are used because the listeners perform operations on the UI
thread.
2017-01-25 18:57:31 -05:00
Jim Chen de48158161 Bug 1333589 - 1. Use GeckoBundle for DoorHanger.OnButtonClickListener; r=sebastian
Convert the onButtonClick method to provide GeckoBundle as the response.
2017-01-25 18:57:31 -05:00
Jim Chen 4d58198b64 Bug 1333588 - Convert PageActions events to bundle events; r=sebastian
Convert events used in PageActions to bundle events. UI thread events
are used because the listeners require the UI thread. The observer
notifications from Java to Gecko are converted to events as well.
2017-01-25 18:57:31 -05:00
Jim Chen aa5629f0ac Bug 1333586 - Convert AccountsHelper events to bundle events; r=sebastian
Convert events used in AccountsHelper to bundle events. Most events are
kept as Gecko thread events, but a couple events that start activities
are converted to UI thread events.
2017-01-25 18:57:31 -05:00
Jim Chen 4dcb146035 Bug 1333581 - Convert IntentHelper events to bundle events; r=sebastian
Convert events used in IntentHelper to bundle events. UI thread events
are used for most events because the listeners perform operations on
Intent objects, which is best done on the UI thread. For
"Intent:GetHandlers", use a Gecko thread event because it's possible we
want a synchronous callback response.
2017-01-25 18:57:31 -05:00
Jim Chen ce4e0169d8 Bug 1330439 - 4. Convert home panel observers to events; r=sebastian
Convert nsIObserverService observers used in home panels to events that
go through EventDispatcher.
2017-01-25 18:53:58 -05:00
Jim Chen 17076d314a Bug 1330439 - 3. Convert HomePanelsManager events to bundle events; r=sebastian
Convert events used in HomePanelsManager to bundle events. Background
thread events are used because HomePanelsManager processes panel changes
in the background thread. Changing to background thread events also lets
us make the change queue a simple ArrayList instead of a
ConcurrentLinkedQueue, because there is no longer multiple threads
involved.
2017-01-25 18:53:58 -05:00
Jim Chen 75c7c2f62d Bug 1330439 - 2. Convert HomeBanner events to bundle events; r=sebastian
Convert the events in HomeBanner to bundle events. "HomeBanner:Shown" is
removed in favor of using a callback.
2017-01-25 18:53:58 -05:00
Jim Chen 6344848223 Bug 1330439 - 1. Convert PanelInfoManager events to bundle events; r=sebastian
Convert the "HomePanels:Data" event to a GeckoBundle/BundleEventListener
event. UI thread event is used because the listener invokes the callback
on the UI thread.
2017-01-25 18:53:58 -05:00
Jim Chen d89720206e Bug 1330411 - 2. Convert FindInPageBar events to bundle events; r=sebastian
Convert events used in FindInPageBar to GeckoBundle/BundleEventListener
events. UI thread events are used because the listener performs UI
operations. FindInPageBar also sends some events like "FindInPage:Find"
from Java to Gecko; those events will be converted in another bug.
2017-01-25 18:53:58 -05:00
Jim Chen 5153adf650 Bug 1330411 - 1. Convert ActionBarHandler observers to events; r=sebastian
Convert observers in ActionBarHandler.js to events that go through
WindowEventDispatcher. "TextSelection:Get" now replies through the
callback interface rather than a "TextSelection:Data" event. The patch
also adds new lazy-loading events in browser.js to replace the
lazy-loading observers that ActionBarHandler relied on.
2017-01-25 18:53:58 -05:00
Jim Chen 101042e839 Bug 1330409 - Convert CastingApps events to bundle events; r=sebastian
Convert the events used in MediaCastingBar and ChromeCastPlayer to
GeckoBundle/BundleEventListener events. UI thread events are used
because the listener performs operations on the UI thread.
2017-01-25 18:53:57 -05:00
Andrzej Hunt 7dd535379a Bug 1325375 - Make PopupContextMenu visible on Android 4 Asus tablets r=sebastian
MozReview-Commit-ID: 1XSiiyQPAXb
2017-01-24 12:28:57 -08:00
Michael Kaply 18dcdf3fef Bug 1107942 - Allow zh-CN distribution to add Quit menu. r=sebastian 2017-01-23 17:43:47 -06:00
cnevinc f4a6834166 Bug 1317632 - If the bookmark to add is a reader mode page, defer db action till it cache completely and save the same url in bookmarks and uriannotations table to avoid URL chagne between two http requests. r=sebastian
MozReview-Commit-ID: 8ZwteTOKe1G
2017-01-14 12:05:48 +08:00
Julian_Chu 3531274af4 Bug 1322114 - Add test cases for MediaControlService r=sebastian
Also refactor MediaControlService to be test-friendly.

MozReview-Commit-ID: 344cEEuVroG
2017-01-12 15:44:19 +08:00
Julian_Chu 537b35ae99 Bug 1322114 - Part 2: handle more media state change r=alwu
When the playing-media changes (ie. in Youtube click another
video when it is alreay playing one), there will be one more
event MEDIA_PLAYING_CHANGE, and the tab is still playing media.

This fix is to handle this situation then update state.

MozReview-Commit-ID: Aje2BBqFZKE
2017-01-12 14:54:05 +08:00
Julian_Chu fc85ae4127 Bug 1322114 - Part 1: Change UI updating flow r=alwu
This patch involve State into MediaControlService.

ACTION is behaviour for an intention, and so far we use it for storing
media state. Now involve enum to distinguish State from Action.

So flow becomes: Action happens -> Change State -> UI reflect state
changing.

MozReview-Commit-ID: FBHn02tgVO6
2017-01-11 18:24:53 +08:00
Andrzej Hunt 03fdf26b36 Bug 1311555 - Use filled bookmark star in ActivityStream context menu r=sebastian
Unfortunately tinting the bookmark star is highly complicated due to the tinting
that NavigationView performs (i.e. we'd likely have to disable NavigationView
tinting, and do manual tinting on every icon - alternatively we could hack
the tint-list to use blue for "checked" items, and set the bookmark item
as checked). Since it's unclear if we even want the star to be blue,
we'll leave it grey (but filled) for now.

MozReview-Commit-ID: DekRZJayKIz
2017-01-18 12:20:50 +01:00
Andrzej Hunt ba2236b3c6 Bug 1311555 - Pre: remove unused imports r=ahunt
MozReview-Commit-ID: 6Xk7Z01m41A
2017-01-18 12:18:06 +01:00
Nevin Chen bb36244cc3 Bug 1331431 - Use baseline and FontMetrics instead of textview's center and text size to get the real text height. r=sebastian
MozReview-Commit-ID: 4HJKZP0F0ow
2017-01-18 17:59:23 +08:00
Nevin Chen e8796c5cf9 Bug 1275662 - Close all tabs and clean up session files when "Open Tabs" is selected in "Clear private data on exit" or "Clear private data" pref. r=JanH,sebastian
MozReview-Commit-ID: GoUQVDIzYbI
2016-12-29 14:22:45 +08:00
John Lin cb5c81e975 Bug 1332177 - handle ICodec.configure() failure. r=jchen
MozReview-Commit-ID: KPhI04EA9n3
2017-01-19 16:11:01 +08:00
jwu 67f72e8aaa Bug 1325586 - Prevent creating IconDescriptor with null url, r=sebastian
MozReview-Commit-ID: 4y6fKR49DGG
2017-01-16 15:56:43 +08:00
Wes Kocher 7a976db967 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 3pEpsd3DljH
2017-01-19 16:47:25 -08:00
Carsten "Tomcat" Book 8f883d261d Merge mozilla-central to mozilla-inbound 2017-01-19 16:35:21 +01:00
Dylan Roeh fb5d7b143d Bug 1303362 - Set a flag on custom tabs so that links do not open in a new tab. r=snorp 2017-01-19 09:18:40 -06:00
maliu fa8fdfc688 Bug 1332258 - Reset text fading gradient to null when text direction changed, r=sebastian
MozReview-Commit-ID: EaUUO8aegzj
2017-01-19 15:09:14 +08:00
Sebastian Kaspari a5690f962d Bug 1331808 - IconRequest.moveToNextIcon(): Throw exception if removing current item failed. r=Grisha
MozReview-Commit-ID: 2dfgG7N9bX6
2017-01-18 15:06:44 +01:00
Sebastian Kaspari bf8c1bfb84 Bug 1331808 - IconDescriptorComparator: Return consistent order for compared items. r=Grisha
Previously if we could not compare two icon descriptions we'd always return the "right" one. This does
not create a consistent order if the parameters are flipped. As a result some operations on a TreeSet
can fail (like remove()).

MozReview-Commit-ID: EYPlhzGUEnD
2017-01-18 14:50:35 +01:00
Michael Kaply aeda77b58a Bug 1331080 - Switch suggestedSites.hidden to be marked as Android pref. r=sebastian 2017-01-18 09:44:05 -06:00
Sebastian Hengst dd65d6bfbf Backed out changeset 57ccc83a450f (bug 1311555) for Android build bustage. r=backout 2017-01-19 19:47:08 +01:00
Sebastian Hengst c51e7d7efa Backed out changeset d8c85b0ed424 (bug 1311555) 2017-01-19 19:46:40 +01:00
Andrzej Hunt 1e887e9ed1 Bug 1311555 - Use filled bookmark star in ActivityStream context menu r=sebastian
Unfortunately tinting the bookmark star is highly complicated due to the tinting
that NavigationView performs (i.e. we'd likely have to disable NavigationView
tinting, and do manual tinting on every icon - alternatively we could hack
the tint-list to use blue for "checked" items, and set the bookmark item
as checked). Since it's unclear if we even want the star to be blue,
we'll leave it grey (but filled) for now.

MozReview-Commit-ID: DekRZJayKIz
2017-01-18 12:20:50 +01:00
Andrzej Hunt fb3d73c57b Bug 1311555 - Pre: remove unused imports r=ahunt
MozReview-Commit-ID: 6Xk7Z01m41A
2017-01-18 12:18:06 +01:00
John Lin 28a331f00a Bug 1326026 - use bufferless samples for outputs when rendering to surface. r=snorp
MozReview-Commit-ID: 8gC0QdJUoEk
2017-01-18 09:23:03 +08:00
Jim Chen 33ac7907b5 Bug 1329268 - 3. Convert Tabs observers to events; r=sebastian
Convert the "Tab:*" observers in browser.js, which go through the observer
service, to events that go through GlobalEventDispatcher.

FindHelper.js uses "Tab:Selected" through a lazy loader, but I don't
think FindHelper should listen to "Tab:Selected" at all until it is
being used. THerefore, this patch adds "Tab:Selected" registration to
FindHelper.js itself.
2017-01-17 20:06:08 -05:00
Jim Chen 0fe17e850c Bug 1329268 - 2. Convert Tabs events to bundle events; r=sebastian
Convert events used in Tabs to GeckoBundle/BundleEventListener events.

All of the events are converted to UI thread events, because a lot of
the listeners modify states in Tab (e.g. through
`Tab.handleLocationChange()`), and those states are later accessed on
the UI thread. We used to modify the states on the Gecko thread, and
then access them on the UI thread, which introduces potential race
conditions. Therefore, I think it's best to convert these events
wholesale to UI thread events to avoid races.

Tabs.notifyListeners now calls the listeners directly if it's already on
the UI thread, instead of posting to the UI thread again. This is meant
as an optimization because the events are now coming in on the UI thread
already.

The "Tab:SelectAndForeground" and "Tab:Select" events are merged into
one "Tab:Select" event, and a "foreground" option is added.

The "Tab:StreamStart" and "Tab:StreamStop" events are merged into one
"Tab:RecordingChange" event, and a "recording" option is added to
indicate starting or stopping.
2017-01-17 20:06:07 -05:00
Jim Chen 4617a24eb3 Bug 1329268 - 1. Refactor SiteIdentity to use GeckoBundle; r=sebastian
Make SiteIdentity.update use GeckoBundle, and also simplify the enums
in SiteIdentity, by using Enum.valueOf to get enum values from names,
instead of custom code.
2017-01-17 20:06:07 -05:00
Jim Chen 9c8689d622 Bug 1328991 - Convert ZoomedView events to bundle events; r=sebastian
Convert events used in ZoomedView to GeckoBundle/BundleEventListener
events.

"Window:Resize", "Browser:ZoomToPageWidth", and
"Browser:ZoomToRect" listeners are removed because they are not sent
anywhere.

The "Content:LocationChange" listener is merged into the
"Gesture:CloseZoomedView" listener, so that we can leave
"Content:LocationChange" alone for now. Otherwise we would have to
convert the "Content:LocationChange" listener in Tabs as well.

The listeners are changed from global listeners to per-GeckoApp
listeners, because two of the events, "FormAssist:AutoCompleteResult" and
"FormAssist:Hide", are per-GeckoApp events also used by FormAssistPopup.
Because the events are now per-GeckoApp events, they are now registered
from onAttachedToWindow and onDetachedFromWindow.
2017-01-17 20:06:07 -05:00
Jim Chen 746a25ab2b Bug 1328990 - Convert FormAssistPopup events to bundle events; r=sebastian
Convert "FormAssist:*" events in FormAssistPopup to
GeckoBundle/BundleEventListener events.  UI thread events are used
because the listener performs operations on the UI thread.

Also convert the "FormAssist:*" observers in browser.js to use
WindowEventDispatcher.

The "FormAssist:AutoComplete" event that goes from Gecko to Java is
renamed to "FormAssist:AutoCompleteResult" to prevent conflict with the
event with the same name that goes from Java to Gecko.
2017-01-17 20:06:07 -05:00
Dale Harvey daf3f9c959 Bug 1234558 - Use icons from app manifest. r=marcosc, r=sebastian 2017-01-17 18:24:53 +00:00
Francisco Aguiar 19476435cb Bug 1330009 - Remove unused setToolBarButtonsAlpha() method. r=sebastian
MozReview-Commit-ID: A7PIZDck82h
2017-01-16 00:57:53 +00:00
friedger 2ead0fc497 Bug 1317933 - CustomTabsActivity: Set theme based on toolbar color. r=sebastian
MozReview-Commit-ID: 7cVsgDGPNXW
2016-12-21 11:54:06 +01:00
Carsten "Tomcat" Book 0bdc533211 merge mozilla-inbound to mozilla-central a=merge 2017-01-16 16:35:14 +01:00
Phil Ringnalda 50cc115873 Merge m-c to m-i 2017-01-15 12:49:08 -08:00
maliu ca5176d2f8 Bug 1029646 - Update layout direction of configuration and DecorView, r=ahunt
MozReview-Commit-ID: FiDwoX45yV9
2017-01-03 15:14:59 +08:00
John Lin 80a84ee826 Bug 1326238 - stop calling InputExhausted() once RemoteDataDecoder sends EOS input. r=snorp
MozReview-Commit-ID: L5KPHUi8uLx
2016-12-30 13:52:49 +08:00
maliu 1b6d6b286d Bug 1321633 - Apply gradient based on text direction with first strong strategy, r=ahunt
MozReview-Commit-ID: 5GMlUcp290f
2016-12-29 17:24:32 +08:00
Brian Chen f2a52c825a Bug 1325488 - Deduplicate subdomain removal in IconGenerator. r=ahunt 2016-12-23 17:35:00 -05:00