Commit Graph
7 Commits
Author SHA1 Message Date
Andrew Gaul 240c9b798c Bug 1437430: Make some immutable final fields static; r=mcomella
Adding static reduces memory overhead from per-instance to per-class and allows
initialization at compile-time instead of run-time.  Found via a proposed
error-prone pull request:

https://github.com/google/error-prone/pull/930

MozReview-Commit-ID: CMj6vqFeCdI
2018-02-11 22:36:58 -08:00
Julian_Chu 5eebd6f885 Bug 1352993 - Part 2, Add presenter class which response text-selection r=sebastian
To create new interface ActionModePresenter, a presenter could to
operate action-mode.

For pre-marshmallow Android version, we use ActionBar to provide UI
action for text-selection. Therefore BrowserApp will implement this
presenter for text-selection.

MozReview-Commit-ID: GdLB3ke2pYe
2017-04-18 18:12:43 +08:00
Julian_Chu 1aa55968bc Bug 1352993 - Part 1, Generalize ActionModeCompat r=sebastian
We want to reuse ActionBarTextSelection in more activities, so remove
custom classes from it, to make it easier to interactive with general
Andorid classes.

To achieve that
    * Let ActionModeCompat to be a subclass of ActionMode
    * Get rid of GeckoMenu

BrowserApp is the only one consumer for ActionModeCompat, and it do
understand the class type. We could move animateIn to it safely. After
doing this, TextSelectionActionModeCallback could become a general
ActionMode.Callback.

MozReview-Commit-ID: 7FTwDTe1JYG
2017-04-18 15:26:53 +08:00
Sebastian Kaspari 041ba792f7 Bug 1266340 - Explicitly close menu when finishing action mode. r=capella
MozReview-Commit-ID: LZiufFsemS1
2016-04-21 14:28:58 +02:00
Mark Capella 85dfaecc30 Bug 1245831 - The action bar animation is overlapping with the three dot menu. r=sebastian
MozReview-Commit-ID: J0QXMhfZWt7
2016-04-21 13:11:46 +02:00
Michael Comella 421913d097 Bug 1258789 - Add binary logic operators for WhitespaceAround. r=grisha
MozReview-Commit-ID: 12BUCUmassJ
2016-04-12 18:10:55 -07:00
Nick Alexander c682759005 Bug 1107811 - Part 1: Move Java code. r=mfinkle
#!/bin/bash
set -x
pushd mobile/android/base
# Can't be present in glob below.
rm -rf java/org/mozilla/gecko
for i in */ ; do
# But is necessary to copy into.
mkdir -p java/org/mozilla/gecko
hg mv $i java/org/mozilla/gecko ;
done
hg mv *.java java/org/mozilla/gecko
# Move back stuff we didn't want to move.
hg mv java/org/mozilla/gecko/crashreporter crashreporter
hg mv java/org/mozilla/gecko/docs docs
hg mv java/org/mozilla/gecko/locales locales
hg mv java/org/mozilla/gecko/resources resources
popd
2015-12-04 11:51:34 -08:00