Commit Graph
2909 Commits
Author SHA1 Message Date
John Lin 2ab137e141 Bug 1323687 - re-query output buffers after format change. r=esawin
MozReview-Commit-ID: 8L1MH3ODU8d
2016-12-15 18:10:14 +08:00
Grisha Kruglov ded40602ff Bug 1319274 - Part 3: Allow pinning and unpinning of both Top Sites and Highlights r=ahunt
This commit introduces a special type of a pin, "Activity Stream pin".
It's identified by a fixed position of -1. Activity Stream pins are displayed inline
with top sites, at the very front. They are "non-positioned", as opposed to regular pins
which have a position on Top Sites grid. This approach was selected (as opposed to creating a
new kind of a "non-positioned pins bookmark folder") because it is simpler, does not
involve any migrations or sync changes, and is thus preferred in light of a moving
target that is the current vision for Activity Stream.

Two types of pins, regular ones and Activity Stream pins, are independent of each other.

Due to the fact that pins and bookmarks are almost the same thing, we can only figure our,
based on the underlying queries, the following ahead of time:
- pinned state of a pinned top site item (trivial case)
- pinned state of a non-pinned top site item (trivial case)
- bookmark state of a "bookmarked" hightlight item (trivial case)
- bookmark state of a non-pinned top site item

For all other combinations, states have to be looked up when user opens a context menu for an item.

MozReview-Commit-ID: 3KbOp9S4Pz7
2016-12-14 16:23:40 -08:00
Grisha Kruglov eeb890257e Bug 1319274 - Part 2: Display a pin icon besides the Top Site title r=ahunt
MozReview-Commit-ID: BGpgJOeuRQn
2016-12-01 19:35:02 -08:00
Grisha Kruglov e7cabf91f0 Bug 1319274 - Part 1: Use regular getTopSites method for A-S top sites r=ahunt
Since we want to include pinned sites in A-S Top Sites, this removes the "plain top sites"
query which excludes pinned sites.

Maximum number of suggested sites displayed is set so that they will fill out at most two "pages".

MozReview-Commit-ID: 8uynmwiaPkt
2016-12-01 18:53:47 -08:00
Jim Chen 004c7c87a4 Bug 1322715 - Convert DownloadsIntegration event; r=sebastian
Convert the "Download:Remove" event listener in DownloadsIntegration
from a NativeEventListener to a BundleEventListener on the background
thread.
2016-12-15 18:23:54 -05:00
Jim Chen 9d5254ae1a Bug 1322714 - Convert RecentTabsAdapter and GeckoPreferences events; r=sebastian
Convert "ClosedTabs:Data" and "Sanitize:Finished" events used in
RecentTabsAdapter and GeckoPreferences from NativeJSObject events to
GeckoBundle events.
2016-12-15 18:23:54 -05:00
Shubham 21f36a7e41 Bug 1155860 - open a shared link -r?ahunt
MozReview-Commit-ID: 6Vwfmpt4UQY
2016-11-18 12:50:53 -05:00
John Lin ede6a6ac76 Bug 1322628 - record EOS buffer in CodecProxy to make sure it'll be released before ICodec.stop() is called. r=snorp
MozReview-Commit-ID: J9ISYhZqAqk
2016-12-09 11:42:22 +08:00
Andrzej Hunt 304dab8f31 Bug 1319254 - Move Highlights title into separate item to make animation better r=sebastian
This results in the highlights title smoothly animating upwards with the remaining RecyclerView items.
Previously RV would crossfade between a panel containing both the welcome message AND the highlights
title, which means the Highlights title would vanish and reappear. This patch results in a more
correct and pleasing animation. We also upgrade to using a ViewStub for the welcome panel as part of
this commit.

MozReview-Commit-ID: GYxrSiqKeS5
2016-12-12 15:09:28 -08:00
Andrzej Hunt 2e4d79fd05 Bug 1319254 - Add welcome panel to Activity Stream r=sebastian
MozReview-Commit-ID: FayZbZhvT7k
2016-12-12 15:52:13 -08:00
Andrzej Hunt bf8e923dbe Bug 1319254 - Pre: implement stable IDs for AS RecyclerView r=sebastian
MozReview-Commit-ID: KfAswxOU8Nw
2016-12-12 14:25:03 -08:00
Andrzej Hunt 318a84ac1f Bug 1319254 - Pre: make final r=ahunt
MozReview-Commit-ID: FTb0p2T3mdo
2016-12-01 14:02:19 -08:00
Andrzej Hunt 78b6edcf18 Bug 1320879 - Add telemetry for AS context menu "add to homescreen" r=sebastian
MozReview-Commit-ID: G4jCpawmbTb
2016-11-30 10:50:36 -08:00
Andrzej Hunt 1ac5f43464 Bug 1320879 - Pre: add telemetry for HomeFragment->context menu->add to homescreen r=sebastian
MozReview-Commit-ID: HVrJZxWOLZn
2016-11-30 10:50:01 -08:00
Andrzej Hunt 67d9e9dc9f Bug 1321008 - Add telemetry for AS context menu bookmark/unbookmark r=sebastian
MozReview-Commit-ID: qf3NmSr8hl
2016-11-30 11:11:55 -08:00
Jim Chen 5a3f21320a Bug 1321418 - Use GekcoBundle events in GeckoApp/BrowserApp; r=snorp r=sebastian r=gbrown
Bug 1321418 - 1. Use GekcoBundle events in GeckoApp; r=snorp r=sebastian

Switch GeckoApp to using GeckoBundle events everywhere. UI or Gecko
events are used if the event requires the UI or Gecko thread,
respectively, and background events are used for all other events.

There are changes to some other Java classes, such as SnackbarBuilder
and GeckoAccessibility, due to the switch to GeckoBundle.

For "Snackbar:Show", we need the global EventDispatcher because the
event can be sent to both GeckoApp and GeckoPreferences. Howveer, we
only want one listener registered at the same time, so we register and
unregister in GeckoApp's and GeckoPreferences's onPause and onResume
methods.

Bug 1321418 - 2. Use appropriate JS EventDispatcher to send GeckoApp events; r=snorp r=sebastian

Change JS code that sends events to GeckoApp to use either the global
EventDispatcher or the per-window EventDispatcher.

"Session:StatePurged" is not used so it's removed. "Gecko:Ready" in
geckoview.js is not necessary because it's only used for GeckoApp, so
it's removed from geckoview.js.

Bug 1321418 - 3. Use GeckoBundle events in BrowserApp; r=snorp r=sebastian

Switch BrowserApp to using GeckoBundle events, in a similar vein as
GeckoApp. UI or Gecko events are used if the event handlers required UI
or Gecko thread, respectively, and background events are used for all
other events.

Some other Java classes also have to be modified as a result of
switching to GeckoBundle.

Bug 1321418 - 4. Use global EventDispatcher to send BrowserApp events; r=snorp r=sebastian

Change JS code that sends events to BrowserApp to use the global
EventDispatcher instead of "Messaging".

Bug 1321418 - 5. Update usages of events in tests; r=gbrown

Update cases where we use or wait for events in tests.
2016-12-09 12:32:45 -05:00
Carsten "Tomcat" Book b8cb98f388 merge mozilla-inbound to mozilla-central a=merge 2016-12-09 13:32:03 +01:00
Tom Klein 61af86bbea Bug 1202861 - 2. Refresh tabs panel when compact tabs configuration changes. r=sebastian
MozReview-Commit-ID: HV9EQcLtCrE
2016-11-28 09:27:24 -06:00
Tom Klein a617d929ad Bug 1202861 - 1. Create compact (two column) tabs tray option for portrait mode phones. r=sebastian
Changing the setting currently won't take effect until you rotate the tabs
panel (to cause it to be recreated); that will be fixed in the next commit.

MozReview-Commit-ID: HZfQRy8zubV
2016-11-29 13:22:37 -06:00
Jim Chen 7d62a1d2fb Bug 1321568 - Handle null and CharSequence prompt values; r=me
Correctly handle null values and CharSequence values (that are not
Strings) returned by prompt inputs. r=me for trivial patch.
2016-12-08 14:46:08 -05:00
John Lin 32a070b3c3 Bug 1299068 - part 5: release/render buffers when VideoData sent to compositor. r=snorp
MozReview-Commit-ID: JmEKLKlJnaL
2016-11-30 17:55:52 +08:00
John Lin 733c392b35 bug 1299068 - part 2: add parameter to IPC method for rendering output or not. r=snorp
MozReview-Commit-ID: 7Q5hdefoXIH
2016-11-23 15:18:09 +08:00
John Lin 944423625f Bug 1299068 - part 1: code refactoring/clean-up r=snorp
- move all buffer related code from the Callbacks class to (Input|Output)Pocessor
- don't implicitly release output buffer to codec. Do it when client calls releaseOutput()
- fix buffer management problem in reset()
- minor code formatting issue

MozReview-Commit-ID: FmMjFBQax0s
2016-11-22 15:36:37 +08:00
Andrzej Hunt 634d2f4350 Bug 1321799 - Use decimal format placeholder for filesize r=sebastian
%l seems to be for hour in 12hr clock (i.e. 1-12), but we're applying it to a filesize.
%d seems more appropriate in order to display the actual raw filesize.

MozReview-Commit-ID: AKTpYndm81o
2016-12-02 21:57:33 -08:00
maliu df3bd22a9f Bug 1317326 - Pause media playing when headset unplugged, r=alwu,sebastian
MozReview-Commit-ID: GHdFWPgPum1
2016-11-25 21:23:05 +08:00
Nevin Chen 7836e77e50 Bug 1320605 - The shrunk height just nee to cover the text itself. r=sebastian
MozReview-Commit-ID: BdoLEOKjvxw
2016-12-02 11:12:24 +08:00
Wes Kocher 8aee134b6f Merge m-c to inbound, a=merge 2016-12-01 15:46:23 -08:00
Julian_Chu 9cbb68c71f Bug 1314835: Add more debug information to TelemetryPingStore r=sebastian
So far still cannot find the reason of causing exception. To add more
debug information to make sure it is not permssion problem.

MozReview-Commit-ID: 7hhU7Et64Qs
2016-11-15 14:35:59 +08:00
James Cheng 595011889a Bug 1320618 - Check if codec supports adaptive playback to determine the decoder support recycling or not. r=jolin
MozReview-Commit-ID: C3pI9NCUgiP
2016-11-30 16:30:16 +08:00
Dylan Roeh b17dbbcea3 Bug 1235431 - Implement windowClient.focus() for Fennec. r=catalinb 2016-11-14 17:22:13 -06:00
Wes Kocher 1fd1893083 Merge inbound to central, a=merge 2016-11-30 16:12:21 -08:00
Ryan VanderMeulen 9f5b8a4949 Merge m-c to autoland on a CLOSED TREE. a=merge 2016-11-30 13:27:46 -05:00
Jim Chen 47e56c851a Bug 1320603 - Revert to global EventDispatcher for certain events; r=sebastian
These events are not accessed through GeckoApp, and should therefore use
the global EventDispatcher rather than the per-GeckoApp/GeckoView
EventDispatcher. Otherwise, we could run into situations where we end up
registering / unregistering the same event using different
EventDispatcher instances, causing exceptions like this one.
2016-11-30 14:01:20 -05:00
Phil Ringnalda 4ccff7ab62 Merge m-c to autoland 2016-11-29 19:31:34 -08:00
Phil Ringnalda 7f745c3e43 Merge m-i to m-c, a=merge
MozReview-Commit-ID: DAm5uRF7n91
2016-11-29 19:28:12 -08:00
Phil Ringnalda 9e3bf35a40 Merge m-c to m-i
MozReview-Commit-ID: IQH3p0Fs2su
2016-11-29 19:32:37 -08:00
Geoff Brown 3e23e54158 Bug 1318171 - Catch all throwables in SearchEngineManager.createEngineFromLocale; r=sebastian 2016-11-29 16:51:31 -07:00
Swaroop Rao 17d6c1b2e8 Bug 1316023 - Version 2 of fixes. Removed unreachable statements. r=sebastian
MozReview-Commit-ID: 5gQEJVmboOr
2016-11-21 20:00:31 -05:00
Shan c8379dcd87 Bug 1316012 - Remove unnecessary boxing/unboxing; r=sebastian
MozReview-Commit-ID: 6k9d86ioK70
2016-11-26 11:24:00 +05:30
Carsten "Tomcat" Book 9ffca9592c Merge mozilla-central to autoland 2016-11-29 11:50:17 +01:00
Tomislav Jurin 09c804bb3e Bug 1316009 - Adding 'final' keyword to static fields where appropriate. r=sebastian 2016-11-25 20:02:44 +01:00
John Lin b997fbb172 Bug 1313991 - Rewrite input buffer polling logic. r=esawin
- poll all buffers when started or flushed.
- retry only for timed out.
- remove unnecessary polling

MozReview-Commit-ID: DU9vvjJkwDH
2016-11-21 15:36:06 +08:00
Nevin Chen 63ded3567e Bug 1314563 - Change state icon and message when url icon is clicked r=sebastian
MozReview-Commit-ID: 5KDVFVse9Tu
2016-11-21 16:32:10 +08:00
Jan Henning f620232cec Bug 1320449 - Enable keyboard text prediction on the awesome bar during normal browsing. r=sebastian
MozReview-Commit-ID: 17xMoyDhYmn
2016-11-26 15:14:22 +01:00
Nevin Chen 900b32f8eb Bug 1314563 - Add info for Java to know when the url is in the exception list and show the correct icon r=sebastian
MozReview-Commit-ID: FG6a7mRCzZY
2016-11-15 09:47:12 +08:00
Nevin Chen 2c980f305c Bug 1240560 - After shortcut is created, show the mobile desktop. r=sebastian
MozReview-Commit-ID: 21YzmJfNC6E
2016-11-24 10:57:19 +08:00
Nevin Chen d4d57d8871 Bug 1240560 - Extract goToHomeScreen() method to AcitvityUtils r=sebastian
MozReview-Commit-ID: 5w4ywPhDtAy
2016-11-24 10:54:49 +08:00
James Cheng 722db4d5c6 Bug 1320271 - Some tweaks related to MediaDrmBridge. r=jchen
MozReview-Commit-ID: Nt5FEmd1p6
2016-11-25 16:28:27 +08:00
maliu 9a9a773cb7 Bug 1318663 - Don't skip load start tab during tab restore if incoming action of intent is VIEW with non-external URL. r=JanH,sebastian
MozReview-Commit-ID: 4DAYikBnzz2
2016-11-29 02:25:29 +08:00
Jim Chen 5079eff930 Bug 1319496 - 5. Change prompt response to use GeckoBundle; r=sebastian
Change prompt response from using JSONObject/String to using
GeckoBundle. The GeckoBundle is automatically translated to a JS object,
like before, when dispatched to JS code.
2016-11-29 12:25:53 -05:00