Commit Graph
2424 Commits
Author SHA1 Message Date
Teng-pao Yu 8bb2f8063b Bug 1369654 - Fix lint: NewApi issues in themes.xml; r=maliu
MozReview-Commit-ID: LH7xAf5dBD2
2017-05-17 13:49:10 +08:00
jwu 3f464ba1b5 Bug 1372486 - Part 1: Move Fennec resources from base/resources to app/src/main/res. r=nalexander,nechen,walkingice
The hg command is: `hg mv mobile/android/base/resources app/src/main/res`

MozReview-Commit-ID: GlfNB4Ohre4
2017-06-17 01:17:28 +08:00
Dylan Roeh 01c0df4204 Bug 1356346 - Overhaul CustomTabsActivity.java to use GeckoView rather than GeckoApp. r=jchen, walkingice 2017-04-25 11:48:05 -05:00
Julian_Chu c27736e328 Bug 1347037 - use SecurityModeUtil in ToolbarDisplayLayout r=sebastian
Let CustomTabs and Fennec UI use same logic to detect site-identity.

MozReview-Commit-ID: J6ENPfJM0SB
2017-06-06 19:05:11 +08:00
Julian_Chu 3fe2040546 Bug 1347037 - improve SecurityModeUtil and add test cases r=sebastian
* Rename enum Mode to IconType, and added some types
* to map IconType to drawable-image-level
* add unit test

function `resolve` now returns IconType. IconType is abstraction and
independent from Drawable. It defines possible values of resolving
SiteIdentity.

We use a map to get correspond Drawable image level, then no need to
worry about Drawable-changing and algorithm.

Although unit test haven't cover all possible cases. But it passed
original implementation of `ToolbarDisplayLayout.updateSiteIdentity`.
It means `SecurityModelUtil.resolve` will not have obviously
regression....theoretically.

MozReview-Commit-ID: 3E0JMeBlg8D
2017-06-06 18:43:36 +08:00
Carsten "Tomcat" Book 00c9cab166 Backed out changeset 3e06253547af (bug 1329152) on developers request / bug 1371561 2017-06-12 08:58:10 +02:00
Dylan Roeh 11f96ed230 Bug 1369393 - Backout GV-based custom tabs, PWAs, and Tabs.java changes. r=me 2017-06-01 09:28:31 -05:00
Ryan VanderMeulen 3665b7f0f2 Merge inbound to m-c. a=merge 2017-05-31 20:25:52 -04:00
Michael Kaply 747639085b Bug 1361755 - Allow distributions to specify a homepage option in prefs. r=sebastian
MozReview-Commit-ID: CNvhkzDyynZ
2017-05-31 11:39:41 -05:00
Sebastian Hengst 7e6b701d97 Backed out changeset 970698e1bb62 (bug 1361755) for Android bustage at /mobile/android/base/resources/layout/preference_set_homepage.xml:20 (unbound prefix). r=backout 2017-05-31 16:02:50 +02:00
Michael Kaply 0487cbfc3a Bug 1361755 - Allow distributions to specify a homepage option in prefs. r=sebastian
MozReview-Commit-ID: KjdZvHNG6VR
2017-05-03 15:47:09 -05:00
Dylan Roeh f44862d3ca Bug 1356346 - Overhaul CustomTabsActivity.java to use GeckoView rather than GeckoApp. r=jchen, walkingice 2017-04-25 11:48:05 -05:00
Julian_Chu dd94877d51 Bug 1329152 - Enable custom tabs by default r=sebastian
Remove related options, just use CustomTabs directly.

MozReview-Commit-ID: DdcMHnsfAU1
2017-04-10 17:32:16 +08:00
Jing-wei Wu d64da7e67c Bug 1359006 - Remove gecko:titlebarFill in layout to prevent panel name be wrapped. r=sebastian
MozReview-Commit-ID: JlDw0qtTm5B
2017-05-18 16:42:48 +08:00
Julian_Chu b00bcdba68 Bug 1357780 - CustomTabs get rid of dark theme r=sebastian
Now we only use Light theme, and its look and feel more close to
Full-Browser. Hopefully when we re-use gecko widgets will have less
visual issue.

In ActionBar, the tint color follows text color. And the text color is
decided by Top toolbar background.

MozReview-Commit-ID: JrFAdLmk3Fk
2017-05-20 01:10:04 +08:00
Jing-wei Wu 41da378299 Bug 1329128 - Part 2: Implement create bookmark folder page. r=ahunt,Grisha
MozReview-Commit-ID: JtSklBDUq7L
2017-05-05 00:56:55 +08:00
Jing-wei Wu 4340befe44 Bug 1329131 - Part 2: Implement selecting bookmark folder page. r=Grisha
MozReview-Commit-ID: 6uEC9iauvZj
2017-04-24 00:41:46 +08:00
Alastor Wu adadbdba45 Bug 1357639 - part10 : check notification id. r=sebastian
Use notification id to check whether the notification is correct is more stable than just checking the
number of system notification.

MozReview-Commit-ID: BVYdMrBsSLR
2017-05-09 10:51:27 +08:00
Dale Harvey 954223b549 Bug 1357438 - Add form assist popup to custom tabs / webapps. r=walkingice 2017-05-09 09:01:08 -04:00
Andrzej Hunt d537692dda Bug 1299949 - Move omg.home.activitystream into omg.activitystream.homepanel r=sebastian
Parts of ActivityStream already live under omg.activitystream, lets move the UI code there
too to make it easier to actually find AS code.

MozReview-Commit-ID: 6Aa7AZ9cw5n
2017-04-27 15:54:06 +08:00
maliu ceb67ba79e Bug 1358089 - [RTL] Separate xml drawable into v17 folder, r=ahunt
MozReview-Commit-ID: LaOwxXwhsHA
2017-04-24 01:16:11 +08:00
Carsten "Tomcat" Book 63fbb13aec merge mozilla-inbound to mozilla-central a=merge 2017-04-21 10:57:02 +02:00
Jing-wei Wu a2fbd55649 Bug 1232439 - Part 4: Adjust bookmark list UI layout. r=ahunt
MozReview-Commit-ID: 5s74hg5daC5
2017-04-06 11:44:20 +08:00
Jing-wei Wu 3492de4b9c Bug 1232439 - Part 3: Implement full-page bookmark edit dialog. r=ahunt,Grisha
MozReview-Commit-ID: 8wB9CEptVeu
2017-04-20 09:04:28 +08:00
Randall Barker c955f482b1 Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats
This version of the Dynamic Toolbar moves the animation of the toolbar
from the Android UI thread to the compositor thread. All animation for
showing and hiding the toolbar are done with the compositor and a static
snapshot of the real toolbar.

MozReview-Commit-ID: BCe8zpbkWQt
2017-04-20 15:15:14 -07:00
Julian_Chu 747650e524 Bug 1353019: update menu icon of CustomTabsActivity as per page loading r=sebastian
There is a control in menu for reloading or stop-page-loading. Its icon
should be updated per page loading progress.

MozReview-Commit-ID: BNanAQj3xS4
2017-04-19 11:49:11 +08:00
Julian_Chu e308d93169 Bug 1352993 - Part 3, CustomTabsActivity prvoides presenter r=sebastian
CustomTabsActivity use standard ActionBar, so we can easily use action
mode for text-selection.

MozReview-Commit-ID: CSu0d24Z7dt
2017-04-18 18:51:11 +08:00
Nevin Chen 0ef3091202 Bug 1352004 - Fix doorhangers missing background. r=sebastian
MozReview-Commit-ID: 6vrY17fYXD6
2017-04-10 18:13:47 +08:00
Julian_Chu 3dcdc83629 Bug 1348718 - Build option menu button in same way r=sebastian
There might be up to 2 Always-show-as-action button in ActionBar.
One for menu-options, one for 3rd-party app action-button, if any.

According to our design spec, the two buttons appearance should be
similiar, therefore now we create them by same method.

MozReview-Commit-ID: GPVteQR3hxr
2017-04-07 13:03:57 +08:00
nechen aa8e0ccbf9 Bug 1293713 - Make new tab action respect HomePage preference. r=mkaply,sebastian
MozReview-Commit-ID: 9N7tLrr20nv
2017-03-13 16:13:18 +08:00
Michael Kaply 6a5f9160fe Bug 1348412 - Add dist specific menu for set as homepage. r=snorp
MozReview-Commit-ID: 1ipDDs4ZVAm
2017-03-27 17:05:22 -05:00
Dale Harvey 4aab6bbde1 Bug 1337341 - Show url when navigating out the scope of pwa. r=walkingice 2017-04-01 09:34:23 +01:00
maliu 4a2ddd7703 Bug 1350661 - Extract layout attributes into styles in order to separate api 15 and 17 style tree, r=sebastian
__Device_Configuration__|__o_Applied_Style_______________
      ldrtl-v17    v17   v15 |
             o      o     o  |  UrlBar.Entry
              \     |     |  |
               -----o     |  |  UrlBar.V17.Entry(start/end)
                     \    |  |
                      \   o  |  UrlBar.V15.Entry(left/right)
                       \  |  |
                        --o  |  UrlBar.Base.Entry(original style)

Though Android support RTL since API level 17(JB_MR1), it's really buggy at that moment.
This patch fix a severe UI layout attribute bug, which only happen on android 4.2 in RTL language context:
  If view attributes "start/end" and "left/right" are both written in a view layout xml, they will both be applied and cause UI abnormal. In API 18 and above, "left" will be ignored if "start" also exist.

For example, as below show, alignLeft and alignStart are both exist in ImageView. On android 4.2 with RTL context, it's width will both align Left and Start(Right), cause the symptom that ImageView have the same width and cover on the view "back."
```
<ImageView android:id="@+id/url_bar_entry"
  android:layout_alignLeft="@+id/back"
  android:layout_alignStart="@+id/back"
```

MozReview-Commit-ID: JptLuWX2w15
2017-01-16 15:32:59 +08:00
Sebastian Kaspari ac82ac2523 Bug 1348820 - Setup A/B experiment for enabling Activity Stream in Nightly. r=Grisha
This is a bit complicated. But most of that code should go away again as soon as
we can stop shipping the opt-out preference.

With this patch we have three flags that can be controlled via Switchboard:

* activity-stream: This is our global kill switch and allows us to pull the feature
  if needed. A user has to be in this experiment to ever see activity stream. The
  goal is to enable this experiment for 100% of the Nightly audience.

* activity-stream-opt-out: This is experiment will enable the Activity Stream by
  default. The goal is to enable this experiment for 50% of the Nightly audience.

* activity-stream-settings: This experiment controls the visibility of a setting
  to enable/disable activity stream (settings -> advanced -> experimental features).
  This allows us to control whether users can opt-in or opt-out of the activity
  experiment. The goal is to enable this for 100% of the Nightly audience.

MozReview-Commit-ID: BwEoTK6QMQx
2017-03-20 19:46:39 +01:00
Jan Henning c89e6a701f Bug 1328868 - Part 6 - Remove the old font size preference and its associated code and resources. r=sebastian
MozReview-Commit-ID: EgL3WFo6mdo
2017-02-04 23:57:57 +01:00
Jan Henning b2410909f0 Bug 1328868 - Part 4 - Add a new switch offering to honour the system font size to Fennec's preferences. r=sebastian
MozReview-Commit-ID: HZqxl6T90mZ
2017-02-04 23:54:17 +01:00
Wes Kocher 4c6460b14a Backed out 3 changesets (bug 1348820) for testANRReporter failures on Android rc1 a=backout
Backed out changeset 2fffcd4ce3e4 (bug 1348820)
Backed out changeset 387d0326e3a0 (bug 1348820)
Backed out changeset 4775bb6e6b61 (bug 1348820)

MozReview-Commit-ID: 7e1oQSPE7kX
2017-03-23 14:45:57 -07:00
Sebastian Kaspari 1d3c02a9d8 Bug 1348820 - Setup A/B experiment for enabling Activity Stream in Nightly. r=Grisha
This is a bit complicated. But most of that code should go away again as soon as
we can stop shipping the opt-out preference.

With this patch we have three flags that can be controlled via Switchboard:

* activity-stream: This is our global kill switch and allows us to pull the feature
  if needed. A user has to be in this experiment to ever see activity stream. The
  goal is to enable this experiment for 100% of the Nightly audience.

* activity-stream-opt-out: This is experiment will enable the Activity Stream by
  default. The goal is to enable this experiment for 50% of the Nightly audience.

* activity-stream-settings: This experiment controls the visibility of a setting
  to enable/disable activity stream (settings -> advanced -> experimental features).
  This allows us to control whether users can opt-in or opt-out of the activity
  experiment. The goal is to enable this for 100% of the Nightly audience.

MozReview-Commit-ID: BwEoTK6QMQx
2017-03-20 19:46:39 +01:00
Jan Henning db1496d955 Bug 1348086 - Part 1 - Use distinct R.id for the tabs tray menu button. r=gbrown
Robocop/Robotium gets terribly confused if multiple views use the same R.id, even if they're never shown together at the same time.

Without this patch, opening of the main menu fails once the tabs tray has been opened (and closed again) at least once.

MozReview-Commit-ID: IOyxG4SCyzF
2017-03-16 21:33:44 +01:00
maliu 5804e7db7b Bug 1321981 - [RTL] ViewPager Support - part 4. Switch to RtlViewPager, r=sebastian
MozReview-Commit-ID: 2s695og8Umo
2017-03-21 14:34:08 +08:00
Julian_Chu 1f9713c65e Bug 1337238 - Involve ProgressBar to CustomTabsActivity for page loading r=sebastian
To add a progressbar to CustomTabsActivity then user knows page loading
progress.

MozReview-Commit-ID: L1Qc7Oj81bZ
2017-03-10 15:29:35 +08:00
Julian_Chu 2af17ff9a8 Bug 1337238 - Reuse some id resources in layout xml file r=sebastian
No need to create id resources for common widgets in each activities, e.g.
toolbar. Reuse id resources to make less ambiguous when invoking `findViewById`

In BrowserApp and CustomTabsActivity, both of them have ActionBar and
Progress-Bar. Let them use the same id resource.

MozReview-Commit-ID: 2jq18dwlBlm
2017-03-10 12:39:27 +08:00
Julian_Chu a6c27eaea6 Bug 1332546 - Add CustomView to ActionBar of CustomTabsActivity r=sebastian
The CustomView has three components

  * Icon - for site info to indicate whether the visited site is security
  * Title
  * Url

Icon is for site info to indicate whether the visited site is security.
Its icon type is decided by SecurityModeUtil. All of the components' color
are the same as TextView color.

When onTabChanged happens, it updates CustView of ActionBar to reflect
current site security status. Sometimes the callback will be invoked rapidly
several times in very short time. To avoid icon twinkle, to add a delay when
updating CustomView.

MozReview-Commit-ID: KCu3XLObmmV
2017-03-09 15:17:36 +08:00
Dale Harvey 56368dae3c Bug 1336355 - follow up to fix lint. r=sebastian a=tomcat 2017-03-16 04:19:00 +01:00
Dale Harvey 09dba93fdd Bug 1336355 - Open webapps in new activity. r=sebastian 2017-03-15 15:39:01 +00:00
Julian_Chu 1fa7906a3e Bug 1315937 - Add basic custom menu to CustomTabsActivity r=sebastian
Besides custom-menu-items from 3-rd party apps, we designed a custom
menu which always has
  * buttons for Forward, Reload
  * One menu item for 'Open by Firefox'
  * a footer 'Powered by Firefox'

This patch adds a button as an anchor to standard menu. Once user click
it, to show a custom menu (GeckoPopupMenu) base on the anchor.

In current design, there is only one style for menu, regardless of Dark
or Light theme.

MozReview-Commit-ID: 5RMiGDlxLTU
2017-03-01 13:42:10 +08:00
Julian_Chu 42337453a1 Bug 1315937 - add theme to CustomTabsActivity r=sebastian
CustomTabsActivity is usually be used by 3rd-party apps. Its look and
feel is usually different from GeckoApp. To give separated themes to
ensure any change to CustomTabs won't effect GeckoApp.

MozReview-Commit-ID: 7aBnnPXv3nQ
2017-03-01 11:43:35 +08:00
Tom Klein e925f58b33 Bug 1340929 - Don't scroll to a new tab opened from a link. r=sebastian
We used to scroll in addTab to make sure a new tab created by a close-tab-undo
at the start or the end of the list was made visible instead of staying where it
was created off the edge.  We're now taking care of that in selectTab (where it
should have stayed in the first place), where the select in that case occurs
between the time when the new tab is added to the adapter and when the layout
gets updated.  In the case where the new tab is at the start, that means the
check 'position < layoutManager.findFirstCompletelyVisibleItemPosition()' in
selectTab reads '0 < 0', which fails (which is why we need the new check for
'position == 0'), but the check 'position >
layoutManager.findLastCompletelyVisibleItemPosition()' for a tab added at the
end reads 'new_lengh -1 > old_length - 1' which already passes, so we don't need
a special case for undo-tab-close adds at the end in selectTab.  Tabs added at
the end by a normal "create new tab" still scroll for the same reason.

Robotium was confused by the duplicate 'add_tab' ids from the tab strip and the
tabs panel, so I renamed one of them.  Also note that the 'getTabId' added to
TabStripItemView for testing already exists on TabLayoutItemView, but the two
classes don't share a common base.

MozReview-Commit-ID: BzG2r8BSs90
2017-02-22 21:54:11 -06:00
Tom Klein eba564d299 Bug 1342968 - Remove unused TabsLayout xml style attributes. r=sebastian
All TabsLayouts are RecyclerViews now.
* Orientation on a RecyclerView is set on the LayoutManager, not the
  RecyclerView;
* android:listSelector doesn't apply to RecyclerView;
* android:choiceMode doesn't apply to RecyclerView.

This patch also fixes bug 1337699 when it removes the old
android:scrollbars="horizontal" in values-land/styles.xml from back when the
tabs tray scrolled horizontally in landscape mode.

MozReview-Commit-ID: 97el99fSi5o
2017-02-27 10:20:36 -06:00
Andrzej Hunt b46d0ae9c5 Bug 1325931 - Pre: add drawable padding to pin r=sebastian
Text is currently pushed directly against the pin in those cases
where the entire width is filled with text - this spacing
is needed to separate the pin, and text.

MozReview-Commit-ID: HOVH1SgcrLY
2017-02-09 13:24:24 -08:00