Commit Graph
2909 Commits
Author SHA1 Message Date
Kilik Kuo bd7872dfcd Bug 1306185-[Part1] Provide Java interface to bridge Gecko's gmp-decryption-like API and MediaDrm API r=cpearce,jchen
MozReview-Commit-ID: 3jxofUxcTA9
2016-11-01 19:11:38 +08:00
Alastor Wu fc3a707c6a Bug 1313559 - Don't need to notify gecko if the media was resumed-from-page. r=sebastian
MozReview-Commit-ID: Cemch546mcS
2016-10-28 11:49:22 +08:00
Andrzej Hunt e3e6263766 Bug 1312467 - Hide some items for TopSites context menu r=sebastian
MozReview-Commit-ID: JHEr4IraLQB
2016-10-31 15:42:44 +01:00
Andrzej Hunt 1efd5cc365 Bug 1312467 - Add context menu support to topsites r=sebastian
MozReview-Commit-ID: TQ4gTgRqGq
2016-10-25 11:38:52 -07:00
Andrzej Hunt 4fdc483f84 Bug 1312467 - Pass url-open listeners into TopSitesCard and handle clicks there r=sebastian
This is in preparation for adding context-menu support to TopSitesCard, which requires
the two url-open listeners.

MozReview-Commit-ID: 7ubTCqCqcW9
2016-10-25 11:29:23 -07:00
Andrzej Hunt 26bf7af5fd Bug 1312467 - Also store topsites title in TopSite data structure r=sebastian
MozReview-Commit-ID: FlWeufLHjPE
2016-10-25 11:20:06 -07:00
Andrzej Hunt e3ff183bbc Bug 1312467 - Move TouchTarget handling into generic helper class r=sebastian
This will allow us to reuse it for other similar menu buttons.

MozReview-Commit-ID: L8pleo8bQp9
2016-10-31 15:42:30 +01:00
Andrzej Hunt 2cb9ff2793 Bug 1312467 - Move touch target size definition into resources r=sebastian
MozReview-Commit-ID: IKDfFyhQAdS
2016-10-25 10:48:22 -07:00
Sebastian Kaspari 096a4fbd42 Bug 1313316 - Show activity stream setting if build flag is enabled or user is enrolled in experiment. r=ahunt
MozReview-Commit-ID: CEchCITzX0O
2016-10-28 14:01:02 +02:00
Sebastian Kaspari 38b3a98c53 Bug 1313316 - Add 'activity-stream' experiment. r=ahunt
MozReview-Commit-ID: bamyo1Yb1o
2016-10-28 14:00:03 +02:00
Sebastian Kaspari de17b82f1b Bug 1313391 - Move HLS video playback behind a switchboard flag. r=snorp
This will allow us to ship the feature to a subset of the users or pull the feature without
needing to release a new version of the app.

MozReview-Commit-ID: 3rGLT29wuyC
2016-10-28 20:16:56 +02:00
Sebastian Kaspari 615a0a51dd Bug 1313363 - NotificationClient: Use BigTextStyle instead of InboxStyle. r=Grisha
There's no reason to use InboxStyle here. We do not add any items to the list.
Currently the content text is truncated aggressively showing only one line of
text. With BigTextStyle we can show a lot more.

MozReview-Commit-ID: 8CQZVHzc7b8
2016-10-28 17:18:52 +02:00
James Cheng 1c1eb25f1f Bug 1306219-Part2 Add utility function to invoke MediaDrm and MediaCrypto checking API. r=cpearce,jchen
MozReview-Commit-ID: FFDjmKQh2gP
2016-10-26 10:55:16 +08:00
KuoE0 907edbb616 Bug 1285870 - Show custom presentation on Chromecast. r=sebastian,snorp
MozReview-Commit-ID: 3DlbZMDFySA
2016-10-03 17:12:57 +08:00
KuoE0 4fc3f03c49 Bug 1305351 - Add ChromeCastDisplay for Presentation API. r=snorp
MozReview-Commit-ID: A9yXeADOA0Y
2016-09-21 20:24:57 +08:00
Alastor Wu b4e5a753e5 Bug 1311245 - part4 : remove redundant state. r=sebastian
After lots changing in media control's code, we don't need 'ACTION_START' anymore.

MozReview-Commit-ID: 3KktTrY4HoR
2016-10-27 10:12:32 +08:00
Alastor Wu 6bd43660ab Bug 1311245 - part3 : mActionState should only store resume/pause/stop. r=sebastian
There is no big difference between 'ACTION_RESUME' and 'ACTION_RESUME_BY_AUDIO_FOCUS', we can simplify it.

MozReview-Commit-ID: 4nqfgoopuJ6
2016-10-27 10:12:30 +08:00
Alastor Wu 81bb9e7f30 Bug 1311245 - part2 : make sure the mActionState would be modified everytime the UI interface changed. r=sebastian
Make sure the value of |mActionState| is correct after we modified the media control's interface.

MozReview-Commit-ID: 6Nhu1gqCFrD
2016-10-27 10:12:23 +08:00
Alastor Wu 7b9b897e77 Bug 1311245 - part1 : don't need to dispatch event to gecko again when receving tab event 'MEDIA_PLAYING_CHANGE' and 'CLOSED'. r=sebastian
We don't need gecko to do something when receiving 'MEDIA_PLAYING_CHANGE' and 'CLOSED'. The only thing we need to do in Java side is to modify the media control's UI interface.

MozReview-Commit-ID: 6NrNraVOixg
2016-10-27 10:11:46 +08:00
Alastor Wu 5aac7cb98b Bug 1302453 - part2 : notify MediaControlService when the media is resumed. r=sebastian
When user resumes media from the page, we should notify MediaControlService so
that it can change the playing icon to the correct status.

MozReview-Commit-ID: 15e2GrxvB6a
2016-10-27 10:00:25 +08:00
Sebastian Kaspari a68e354a4e Bug 1312033 - Activity Stream Top Sites: Never add more sites than returned by the cursor. r=ahunt
MozReview-Commit-ID: JONNSrRPNyW
2016-10-25 15:16:40 +02:00
Phil Ringnalda 9da1dbbb7c Merge m-i to m-c, a=merge
MozReview-Commit-ID: FnnOWQ3xKPi
2016-10-25 22:03:31 -07:00
Geoff Brown 614bb2a960 Bug 1285386 - Guard against NPE and other exceptions in SearchEngine creation; r=sebastian 2016-10-25 10:57:37 -06:00
Geoff Brown 19451d4375 Bug 1293895 - Guard against more exceptions in createEngineFromLocale; r=sebastian 2016-10-25 10:57:36 -06:00
Carsten "Tomcat" Book 7757f69166 merge mozilla-inbound to mozilla-central a=merge 2016-10-25 10:31:03 +02:00
Andrzej Hunt abf4ce0798 Bug 1300144 - Implement Activity Stream "context" bottomsheet menu r=sebastian
MozReview-Commit-ID: ARvuWk7H99m
2016-10-24 10:17:14 -07:00
Tushar Saini (:shatur) 8d8f252cb4 Bug 1312795 - Remove shouldUseTransactions method and related code. r=sebastian
MozReview-Commit-ID: xRXPi9yvff
2016-10-25 22:54:59 +05:30
Kartikaya Gupta acb70c0f35 Bug 1301593 - Fix typo in model number. r=sebastian
MozReview-Commit-ID: IZTk57YxCRb
2016-10-24 08:52:23 -04:00
Andrzej Hunt d6d8d975ea Bug 1300144 - Pre: pass mUrlOpenInBackgroundListener into HighlightsItem r=sebastian
This will be needed for opening background/private tabs from the highlights menu.

MozReview-Commit-ID: 8wvFuTgl2SP
2016-10-19 15:41:44 -07:00
Andrzej Hunt f8ae8078f4 Bug 1300144 - Increase touch area for menu button r=sebastian
MozReview-Commit-ID: GBdLisIwFuH
2016-10-19 16:32:29 -07:00
Tushar Saini (:shatur) 71f4aa2ee5 Bug 1264596 - GeckoApp: Remove mCameraView and related code. r=gcp,sebastian
MozReview-Commit-ID: ACgp4iIAigw
2016-10-20 19:27:59 +05:30
John Lin 591cfd87e2 Bug 1306483 - Part 2: send notification immediately when caller sender shares looper with buffer poller. r=esawin
MozReview-Commit-ID: 9hZB6TI4A6X
2016-10-20 15:43:25 +08:00
John Lin d6439a138e Bug 1306483 - Part 1: use concurrent queue to fix race condition. r=snorp
MozReview-Commit-ID: HRus9Sn7k6q
2016-10-20 15:25:44 +08:00
Michelangelo De Simone 74c25bed4b Bug 1310027 - Remove DOM/mobilemessage and related code. r=Ehsan
MozReview-Commit-ID: ENmSuOCdTnA
2016-10-17 17:26:51 -07:00
KuoE0 bce02309bd Bug 1282003 - (Part 2) Add screenManagerHelper in Java. r=snorp
MozReview-Commit-ID: BLw6e7dgldt
2016-09-23 23:03:00 +08:00
Sebastian Kaspari c62db7cf42 Bug 1310603 - Activity Stream highlights: Add "Visited" and "Bookmarked" icons. r=Grisha
MozReview-Commit-ID: I6lIIRLBXeA
2016-10-13 15:11:21 +02:00
John Lin 8b1181556d Bug 1295106 - Part 5: allocate samples from a pool. r=snorp
MozReview-Commit-ID: CIn9CH9k9i4
2016-10-06 17:05:20 +08:00
John Lin e0dde8f429 Bug 1295106 - Part 4: implement JNI methods for shared memory buffers. r=nalexander
MozReview-Commit-ID: 7tXhV6KHzO8
2016-10-06 16:21:24 +08:00
John Lin 2bef13ca2e Bug 1295106 - Part 3: introduce shared memory implemented with MemoryFile and support it in Sample. r=jchen,snorp
MozReview-Commit-ID: H33MJRgFvGB
2016-10-06 15:48:39 +08:00
John Lin eb4d4da97b Bug 1295106 - Part 2: add dequeueInput() and releaseOutput() to codec interface. r=snorp
MozReview-Commit-ID: 90ga1skGfT2
2016-10-04 17:10:36 +08:00
John Lin a6c97803c9 Bug 1295106 - Part 1: abstract payload in Sample to support both Java byte array and shared memory. r=snorp
MozReview-Commit-ID: GFcwSyHlR4
2016-09-08 11:20:34 +08:00
Sebastian Kaspari e4b38d1cef Bug 1308631 - UpdateService: Do not apply update without update path. r=Grisha
Update path can be null. In this case we fallback to using the last saved path. However
if this doesn't exist either then we just continue with a null path and eventually crash
the service.

MozReview-Commit-ID: Kuihp496TEo
2016-10-17 11:19:14 +02:00
Sebastian Kaspari a0b2d66dc9 Bug 1308525 - Update activity stream panel to follow new UX mocks. r=Grisha
Okay, this patch is much bigger than I anticipated. However at this point it is impossible
to separate all the interweaved changes.

* Update sizes and colors
* Use a dynamic number of top sites tiles to adjust to the screen size
* Do not keep references (to possible outdated) Cursors from every top sites page
* Remove unused bottom panel
* Add menu button to highlights items

MozReview-Commit-ID: 2CeEGCOXBKl
2016-10-12 15:07:26 +02:00
Tom Klein 94310687bc Bug 1116415 - 6. Provide fixed TouchDelegate class. r=sebastian
The Android version of TouchDelegate never resets the value of its
mDelegateTargeted, which means that once an event is delegated, future events
can get delegated as well, regardless of whether the event occurs within the
TouchDelegate's bounds.  Because of the geometry this is more of an issue with
the (future RecyclerView version of) TabsGridLayout, but it can occur on
TabsLinearLayout as well where we use a TouchDelegate to increase the hit size
of the close button on a tab - once a close button is hit by delegation and the
tab is closed, the next time that tab is recycled it will continue to delegate
ACTION_UP events to the close button (in which case they're silently dropped)
even if the ACTION_DOWN was not in the close button's delegation area.

This commit introduces TouchDelegateWithReset, which is simply an override copy
of TouchDelegate with one extra block (commented in the new class) to reset
mDelegateTargeted on each new gesture received.

MozReview-Commit-ID: 5xrPBAdAK6D
2016-09-21 17:49:06 -05:00
Tom Klein e776e8133e Bug 1116415 - 5. Send the index of an added tab as data. r=sebastian
Use the index in TabsLayout to specify where a tab was inserted instead of just
replacing the entire tabs list on a tab add.

MozReview-Commit-ID: Feft0RlN97r
2016-10-13 10:26:53 -05:00
Tom Klein 673685632a Bug 1116415 - 4. Add an item animator to the tabs list for removes. r=sebastian
MozReview-Commit-ID: 6MGoEQSlmK1
2016-09-12 10:50:04 -05:00
Tom Klein ae446b4a31 Bug 1116415 - 3. Add an ItemTouchHelper to the tabs panel list for swipe to close. r=sebastian
MozReview-Commit-ID: 8QlbSg7qsZK
2016-09-12 10:46:30 -05:00
Tom Klein a9b78a1e5e Bug 1116415 - 2. Make the linear tabs list a RecyclerView. r=sebastian
Also make a temporary testing adjustment to handle the fact that TabsListLayout
and TabsGridLayout don't currently share a common usable base.

MozReview-Commit-ID: HPExAnehKRq
2016-09-12 10:37:14 -05:00
Tom Klein fba04cfe61 Bug 1116415 - 1. Create new RecyclerView and adapter base classes for tabs panels. r=sebastian
TabsListRecyclerAdapter.java will replace TabsLayoutAdapter.java when the time
comes.

Note from the future: the previous tabs layouts did a scroll each time an item
was added or selected, but GridLayoutManager sometimes does scrolls that aren't
necessary (like even when the position being scrolled to is already completely
in view), so we've adopted the approach of only scrolling when RecyclerView
makes it necessary.


MozReview-Commit-ID: JisX974zt88
2016-09-12 10:33:02 -05:00
Jan Henning 236eeba1a2 Bug 1308946 - Part 1 - Ensure that empty views not matching the current panel level are hidden. r=liuche
Setting an empty view's visibility only for the view corresponding to the current PanelLevel was intended to make sure the empty view doesn't get hidden because of an unrelated status update - e.g. to prevent the history empty view hiding itself because the recent tabs count changes.

This approach however doesn't work for switching between panel levels (the user moving into and out of the sync/recent tabs folders) - in that case we always need to turn off the empty view of the previous panel level, which is not possible with the above approach.

So instead, we revert to always updating the visibility of the empty views, but at the same time initialise the desired state of current PanelLevel's empty view with its current visibility instead of simply defaulting to false.

MozReview-Commit-ID: 6Xsnuo29srk
2016-10-11 21:00:36 +02:00