Commit Graph
2909 Commits
Author SHA1 Message Date
Michael Comella a35b0263ee Bug 1341275: Replace color 0 with Color.TRANSPARENT. r=sebastian
MozReview-Commit-ID: 2sekMgnU7mD
2017-07-14 15:11:55 -07:00
Michael Comella d357d44080 Bug 1341275: Rm redundant check for size change in onSizeChanged. r=sebastian
onSizeChanged should only be called when the size actually changes. However,
I did notice weird behavior in the debugger where `formatImage` appeared to be
called twice from onSizeChanged, however, I was unable to reproduce this
behavior with log statements.

MozReview-Commit-ID: A5amGqTxv55
2017-07-14 14:52:34 -07:00
Michael Comella e56b7af163 Bug 1341275: Rm redundant mActualHeight/Width variables. r=sebastian
These are already present in View.getHeight/Width and:
1) Having duplicated values can lead to bugs
2) Having them around makes it harder to see what's important in this code.

MozReview-Commit-ID: 7IvipoJXmF7
2017-07-14 14:50:47 -07:00
Michael Comella a7da641250 Bug 1341275: Remove unused constants in FaviconView. r=sebastian
MozReview-Commit-ID: tztRGR56mJ
2017-07-14 14:37:56 -07:00
Wes Kocher 7c8f1a68cf Merge inbound to central, a=merge
MozReview-Commit-ID: 8nlqm5dHCUQ
2017-07-14 17:14:43 -07:00
Grigory Kruglov 1109e9139a Bug 1378967 - Ignore highlights items with opaque URIs or invalid hosts r=sebastian
MozReview-Commit-ID: DMkeqGH79dj
2017-07-13 18:07:04 -04:00
Grigory Kruglov 69fb2d387e Bug 1378967 - Pre: make our mapCursor implementation "lossy" r=sebastian
It's helpful to be able to map a cursor to a list, conditionally processing every
cursor entry. This patch considers 'null' result from func to be a "ignore this cursor
entry" sentinel. We could achieve the same via map->filter, but that would require
multiple iterations over a list.

MozReview-Commit-ID: Ixmzyhd2RqM
2017-07-13 18:05:24 -04:00
Dylan Roeh a749731f8f Bug 1376587 - Expose a GeckoBundle containing site identity information to ProgressListener. r=jchen 2017-07-14 10:40:50 -05:00
Dylan Roeh f52f9821c9 Bug 1377579 - Add progress bar to GeckoView-based custom tabs. r=snorp 2017-07-12 11:23:06 -05:00
Jan Henning 4f75315ab4 Bug 1378253 - Request necessary permissions to "Set Image" from context menu. r=sebastian
We temporarily insert the image in question into the MediaStore in order to display the corresponding chooser, which requires the WRITE_EXTERNAL_STORAGE permission.

MozReview-Commit-ID: FAf9tE5h3c8
2017-07-13 20:55:10 +02:00
jwu ad4f0f34f3 Bug 1366669 - Part 1: Rename images and move to Australis folder. r=walkingice
In Photon few images(most of them are related to site identity) are renamed to be more formalized.

These images in Australis need to be renamed as well to make resources easy to maintain.
The mapping between old/new name is below:

OLD                   NEW
----                  ----
reader                ic_readermode
reader_active         ic_readermode_on
close_edit_mode_dark  ic_cancel_nm
close_edit_mode_light ic_cancel_pm
ab_menu               ic_overflow
ab_mic                ic_mic
ab_qrcode             ic_qrcode
lock_secure           ic_lock
warning_minor         ic_warning_minor
warning_major         ic_warning_major
lock_disabled         ic_lock_disabled
lock_inactive         ic_lock_inactive
shield_enabled        ic_shield_enabled
shield_disabled       ic_shield_disabled
search_icon_inactive  ic_search_icon

MozReview-Commit-ID: FivDIHiqe1w
2017-07-13 14:42:59 +08:00
jwu a3212d1d58 Bug 1366704 - Part 3: Support search suggestion visual refresh in private mode. r=sebastian,walkingice
MozReview-Commit-ID: 1Ccq1wDMxMX
2017-07-06 16:54:44 +08:00
Jing-wei Wu 9005eb7af0 Bug 1366704 - Part 2: Support changing theme for search suggestion custom views. r=sebastian,walkingice
MozReview-Commit-ID: 5g1S25J1hsn
2017-07-13 16:31:07 +08:00
jwu 27206de26e Bug 1366704 - Part 1: Implement ThemedListView for Photon visual refresh. r=sebastian,walkingice
MozReview-Commit-ID: EdPrQ1oE37l
2017-06-30 09:32:26 -07:00
Nevin Chen e390aa9b2a Bug 1378688 - Scale the image to save APK size, respect channel, and hide splash screen when the user interact with url bar. r=maliu
MozReview-Commit-ID: 6VEEbVKY5oA
2017-07-12 16:52:24 +08:00
Nevin Chen 98cd1c2977 Bug 1378688 - Make Splash Screen faster by making it's background transparent. r=maliu
MozReview-Commit-ID: 3b7tRGdUCVm
2017-07-11 17:06:42 +08:00
Grigory Kruglov c4d0f6e8b7 Bug 1377286 - Allow pinning items to Activity Stream from other home panels r=sebastian
Menu item to pin/unpin items from Bookmarks and History panels is only displayed when
Activity Stream is enabled.

MozReview-Commit-ID: Ko3xmpF2R53
2017-07-12 17:58:45 -04:00
Grigory Kruglov 530e2e51a7 Bug 1377286 - Pre: firm up access levels in HomeContextMenuInfo r=sebastian
No functional change, simply tightening things up.

MozReview-Commit-ID: 43iHr29NyIx
2017-07-12 17:49:43 -04:00
Nevin Chen e63463466a Bug 1378617 - Fix ClassCastException if the icon is not a BitmapDrawable. r=sebastian
MozReview-Commit-ID: IU9hOPEA7eb
2017-07-11 14:08:33 +08:00
Julian_Chu e9db17a122 Bug 1379066 - 9. Java implementation apply different style r=jwu
We draw curve for Toolbar only in Australis flavor.

Also change resource naming for highlight color to be consistent with
Phton flavor.

MozReview-Commit-ID: E7cFuJs3r6h
2017-07-07 15:50:14 +08:00
Julian_Chu e8ffc4d41e Bug 1379066 - 8. BrowserToolbar notify mode changing r=jwu
Some views in BrowserToolbar is Themed-view, and should be notified by any
normal/private mode changing.

MozReview-Commit-ID: 8hkizdsf0AO
2017-07-07 15:42:06 +08:00
Julian_Chu 4606de704f Bug 1379066 - 7. Stop button supports Private mode r=jwu
Stop button is in Awesome bar to stop page loading, to let it becomes
ThemedImageButton to support Private mode.

MozReview-Commit-ID: CzbCyx1Mxc4
2017-07-06 16:28:11 +08:00
Julian_Chu 30fb5734b6 Bug 1379066 - 6. PageAction supports Private Mode r=jwu
PageAction are views which be added to awesomebar dynamically, for
example "Reader mode icon".

Now let it becomes ThemedImageButton to support Private mode.

MozReview-Commit-ID: HQXgJWL19Oz
2017-07-06 13:26:16 +08:00
Julian_Chu 3f41949293 Bug 1379066 - 4. Readermode icon use new resource r=jwu
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.

MozReview-Commit-ID: 1ejwk3OfUex
2017-07-06 12:26:05 +08:00
Julian_Chu 34d0a6b7f0 Bug 1379066 - 3. Simplify Toolbar menu in Photon flavor r=jwu
In Photon flavor, only one view for menu button is enough. This patch is to
merge menu and menu-icon into one ThemedImageButton.

MozReview-Commit-ID: KyjsriirmbA
2017-06-22 17:33:01 +08:00
Nevin Chen d81567c364 Bug 1374889 - Gather user attributes before MMA inits. r=maliu
MozReview-Commit-ID: 5v28pWzYYWj
2017-07-10 10:16:19 +08:00
Nevin Chen af0cbd4867 Bug 1374889 - Update Leanplum user attribute for Focus/Klar installation, Sync, and Default Browser. r=maliu
MozReview-Commit-ID: Fl3Q6S0cDLg
2017-06-21 17:39:14 +08:00
Jan Henning 5e72a2ed31 Bug 1366098 - Part 1 - Remove Fennec tab type infrastructure. r=walkingice
The new, preferred solution for displaying additional web content outside of our normal tab infrastructure and UI is to use a separate GeckoView instance. Therefore, the support for different having additional "tab" types that aren't displayed in the normal UI, as well as for multiple GeckoApp instances displaying different tabs is no longer needed and can be removed.

MozReview-Commit-ID: FNx0gJIKybr
2017-06-27 14:13:40 -07:00
Jan Henning d9fee4c45f Bug 1366098 - Part 0 - Clean up imports. r=walkingice
MozReview-Commit-ID: Ig89BxFoINR
2017-07-08 11:25:58 -07:00
Sebastian Hengst e787e7eafb Backed out changeset c5aca770cd88 (bug 1374889) for build bustage on Android 4.0 API15+ opt: "package org.mozilla.gecko.fxa does not exist" at mobile/android/base/java/org/mozilla/gecko/mma/MmaLeanplumImp.java:18. r=backout 2017-07-11 14:11:28 +02:00
Sebastian Hengst 20c3bd5ea5 Backed out changeset 14e9170ccad7 (bug 1374889) 2017-07-11 14:09:26 +02:00
Nevin Chen e0e6dcc9b9 Bug 1374889 - Gather user attributes before MMA inits. r=maliu
MozReview-Commit-ID: 5v28pWzYYWj
2017-07-10 10:16:19 +08:00
Nevin Chen 2bfaa71862 Bug 1374889 - Update Leanplum user attribute for Focus/Klar installation, Sync, and Default Browser. r=maliu
MozReview-Commit-ID: Fl3Q6S0cDLg
2017-06-21 17:39:14 +08:00
Alastor Wu aa46afd069 Bug 1373887 - catch exception to handle creating media session fail. r=sebastian
The crash reason is that our package name [1] is not the same as the name from
packageManager's getPackagesForUid(uid) [2].

Not sure what causes it and how it happen, but we can catch this exception first
to avoid the crash.

[1] https://goo.gl/ezJvWB
[2] https://goo.gl/6Q8b6M

MozReview-Commit-ID: HrTfubxHNSk
2017-07-11 14:01:53 +08:00
Grigory Kruglov 5a344d275a Bug 1378246 - Ensure that we correctly fire 'notifyChanged' during bookmark deletions r=jwu
This patch introduces a notion of "changed" count during bookmark deletions, and firms up
our deletion logic to ensure we're counting affected records correctly.

Changes are mostly clearer comments describing what's going on, as well tests to ensure
we're doing the right thing.

One logical change is that this patch drops an additional call to updateBookmarks. AFAIK,
that call is unnecessary. It doesn't achieve its stated goal of writing first (it performs
a select first), and since we're doing a deletion, the "bump timestamps of an old parent
in case parent changed" logic is unused).

MozReview-Commit-ID: 9B1FW9pgsf1
2017-07-05 18:13:28 -04:00
friedger 845f2865b1 Bug 1242629 - Use our color palette for top sites "add a site" tiles r=sebastian
add flag for default border

MozReview-Commit-ID: 3Fc2dS6bphH
2017-06-14 16:07:17 +02:00
Sebastian Hengst 6ff1a0431b Backed out changeset c51ebdf28ee1 (bug 1379066) 2017-07-10 15:52:53 +02:00
Sebastian Hengst 06ba9ed462 Backed out changeset b0ba143fba67 (bug 1379066) 2017-07-10 15:52:48 +02:00
Sebastian Hengst 08b2d971c0 Backed out changeset 449c0a4b0259 (bug 1379066) 2017-07-10 15:52:39 +02:00
Sebastian Hengst 54bf532b03 Backed out changeset dac98c423104 (bug 1379066) 2017-07-10 15:52:34 +02:00
Sebastian Hengst 4453dafe8c Backed out changeset 4d823e834fca (bug 1379066) 2017-07-10 15:52:30 +02:00
Sebastian Hengst 2ca8c0b675 Backed out changeset 8078abd65d92 (bug 1379066) 2017-07-10 15:52:25 +02:00
Julian_Chu 14ca9973ac Bug 1379066 - 9. Java implementation apply different style r=jwu
We draw curve for Toolbar only in Australis flavor.

Also change resource naming for highlight color to be consistent with
Phton flavor.

MozReview-Commit-ID: E7cFuJs3r6h
2017-07-07 15:50:14 +08:00
Julian_Chu 0d820f87cc Bug 1379066 - 8. BrowserToolbar notify mode changing r=jwu
Some views in BrowserToolbar is Themed-view, and should be notified by any
normal/private mode changing.

MozReview-Commit-ID: 8hkizdsf0AO
2017-07-07 15:42:06 +08:00
Julian_Chu 164becd616 Bug 1379066 - 7. Stop button supports Private mode r=jwu
Stop button is in Awesome bar to stop page loading, to let it becomes
ThemedImageButton to support Private mode.

MozReview-Commit-ID: CzbCyx1Mxc4
2017-07-06 16:28:11 +08:00
Julian_Chu 2fd17935f4 Bug 1379066 - 6. PageAction supports Private Mode r=jwu
PageAction are views which be added to awesomebar dynamically, for
example "Reader mode icon".

Now let it becomes ThemedImageButton to support Private mode.

MozReview-Commit-ID: HQXgJWL19Oz
2017-07-06 13:26:16 +08:00
Julian_Chu caa539b312 Bug 1379066 - 4. Readermode icon use new resource r=jwu
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.

MozReview-Commit-ID: 1ejwk3OfUex
2017-07-06 12:26:05 +08:00
Julian_Chu a167ecdd79 Bug 1379066 - 3. Simplify Toolbar menu in Photon flavor r=jwu
In Photon flavor, only one view for menu button is enough. This patch is to
merge menu and menu-icon into one ThemedImageButton.

MozReview-Commit-ID: KyjsriirmbA
2017-06-22 17:33:01 +08:00
Nevin Chen 0beeeb1d3c Bug 1376690 - Disable Leanplum when users are using private mode. r=maliu
MozReview-Commit-ID: AtFNFW45e9j
2017-06-30 17:20:35 -07:00
Sebastian Hengst 789ae967e6 Backed out changeset 3f43bcfc1ec2 (bug 1374889) for Android bustage: package org.mozilla.gecko.fxa does not exist at MmaLeanplumImp.java:19. r=backout 2017-07-08 00:19:37 +02:00