Too many class members that are not prefixed with m. Fixing that up.

This commit is contained in:
Doug Turner 2011-10-11 09:20:33 -07:00
Родитель 9547ac60f8
Коммит 99ec91b22d
1 изменённых файлов: 32 добавлений и 32 удалений

Просмотреть файл

@ -78,12 +78,12 @@ abstract public class GeckoApp
public static final String ACTION_DEBUG = "org.mozilla.gecko.DEBUG";
public static final String ACTION_BOOKMARK = "org.mozilla.gecko.BOOKMARK";
public static LinearLayout mainLayout;
public static AbsoluteLayout geckoLayout;
public static GeckoSurfaceView surfaceView;
public static LinearLayout mMainLayout;
public static AbsoluteLayout mGeckoLayout;
public static GeckoSurfaceView mSurfaceView;
public static GeckoApp mAppContext;
public static boolean mFullscreen = false;
public static File sGREDir = null;
public static File mGREDir = null;
public Handler mMainHandler;
private IntentFilter mConnectivityFilter;
private BroadcastReceiver mConnectivityReceiver;
@ -91,7 +91,7 @@ abstract public class GeckoApp
public static ProgressBar mProgressBar;
private static SQLiteDatabase mDb;
private static DatabaseHelper mDbHelper;
private static Stack<HistoryEntry> sessionHistory;
private static Stack<HistoryEntry> mSessionHistory;
enum LaunchState {Launching, WaitButton,
Launched, GeckoRunning, GeckoExiting};
@ -376,8 +376,8 @@ abstract public class GeckoApp
private void quit() {
Log.i(LOG_FILE_NAME, "pleaseKillMe");
if (surfaceView != null)
surfaceView.saveLast();
if (mSurfaceView != null)
mSurfaceView.saveLast();
System.exit(0);
}
@ -398,25 +398,25 @@ abstract public class GeckoApp
mAppContext = this;
// setup gecko layout
geckoLayout = (AbsoluteLayout) findViewById(R.id.geckoLayout);
mGeckoLayout = (AbsoluteLayout) findViewById(R.id.geckoLayout);
if (surfaceView == null) {
surfaceView = new GeckoSurfaceView(this);
geckoLayout.addView(surfaceView);
} else if (geckoLayout.getChildCount() == 0) {
//surfaceView still holds to the old one during rotation. re-add it to new activity
((ViewGroup) surfaceView.getParent()).removeAllViews();
geckoLayout.addView(surfaceView);
if (mSurfaceView == null) {
mSurfaceView = new GeckoSurfaceView(this);
mGeckoLayout.addView(mSurfaceView);
} else if (mGeckoLayout.getChildCount() == 0) {
//mSurfaceView still holds to the old one during rotation. re-add it to new activity
((ViewGroup) mSurfaceView.getParent()).removeAllViews();
mGeckoLayout.addView(mSurfaceView);
}
Log.w(LOGTAG, "zerdatime " + new Date().getTime() + " - UI almost up");
if (sGREDir == null)
sGREDir = new File(this.getApplicationInfo().dataDir);
if (mGREDir == null)
mGREDir = new File(this.getApplicationInfo().dataDir);
mDbHelper = new DatabaseHelper(this);
sessionHistory = new Stack<HistoryEntry>();
mSessionHistory = new Stack<HistoryEntry>();
mMainHandler = new Handler();
@ -438,7 +438,7 @@ abstract public class GeckoApp
});
}
mainLayout = (LinearLayout) findViewById(R.id.mainLayout);
mMainLayout = (LinearLayout) findViewById(R.id.mainLayout);
mProgressBar = (ProgressBar) findViewById(R.id.progressBar);
// setup awesome bar
@ -462,7 +462,7 @@ abstract public class GeckoApp
mMainHandler.post(new Runnable() {
public void run() {
surfaceView.loadStartupBitmap();
mSurfaceView.loadStartupBitmap();
}
});
@ -496,8 +496,8 @@ abstract public class GeckoApp
ContentValues values = new ContentValues();
values.put("url", entry.uri);
values.put("title", entry.title);
if (sessionHistory.empty() || !sessionHistory.peek().uri.equals(entry.uri))
sessionHistory.push(entry);
if (mSessionHistory.empty() || !mSessionHistory.peek().uri.equals(entry.uri))
mSessionHistory.push(entry);
mDb = mDbHelper.getWritableDatabase();
long id = mDb.insertWithOnConflict("moz_places", null, values, SQLiteDatabase.CONFLICT_REPLACE);
values = new ContentValues();
@ -525,12 +525,12 @@ abstract public class GeckoApp
launchButton.setOnClickListener(new Button.OnClickListener() {
public void onClick (View v) {
// hide the button so we can't be launched again
mainLayout.removeView(launchButton);
mMainLayout.removeView(launchButton);
setLaunchState(LaunchState.Launching);
launch(null);
}
});
mainLayout.addView(launchButton, 300, 200);
mMainLayout.addView(launchButton, 300, 200);
return;
}
if (checkLaunchState(LaunchState.WaitButton) || launch(intent))
@ -802,8 +802,8 @@ abstract public class GeckoApp
public boolean onSearchRequested() {
Intent searchIntent = new Intent(getBaseContext(), AwesomeBar.class);
searchIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_NO_HISTORY);
if (!sessionHistory.empty())
searchIntent.putExtra(AwesomeBar.CURRENT_URL_KEY, sessionHistory.peek().uri);
if (!mSessionHistory.empty())
searchIntent.putExtra(AwesomeBar.CURRENT_URL_KEY, mSessionHistory.peek().uri);
startActivityForResult(searchIntent, AWESOMEBAR_REQUEST);
return true;
@ -811,18 +811,18 @@ abstract public class GeckoApp
public boolean doReload() {
Log.i("GeckoApp", "Reload requested");
if (sessionHistory.empty())
if (mSessionHistory.empty())
return false;
String currUri = sessionHistory.peek().uri;
String currUri = mSessionHistory.peek().uri;
GeckoAppShell.sendEventToGecko(new GeckoEvent(currUri));
return true;
}
@Override
public void onBackPressed() {
if (sessionHistory.size() > 1) {
sessionHistory.pop();
String uri = sessionHistory.peek().uri;
if (mSessionHistory.size() > 1) {
mSessionHistory.pop();
String uri = mSessionHistory.peek().uri;
Log.i("GeckoApp", "going back to page: " + uri);
loadUrl(uri);
} else {
@ -867,7 +867,7 @@ abstract public class GeckoApp
fileExt = name.substring(period);
fileName = name.substring(0, period);
}
File file = File.createTempFile(fileName, fileExt, sGREDir);
File file = File.createTempFile(fileName, fileExt, mGREDir);
FileOutputStream fos = new FileOutputStream(file);
InputStream is = cr.openInputStream(uri);