Bug 1286663 - Add request thumbnail native method to ThumbnailHelper; r=snorp

Add and use a request thumbnail native method call in ThumbnailHelper,
instead of using the THUMBNAIL event in GeckoEvent.
This commit is contained in:
Jim Chen
2016-07-21 13:49:04 -04:00
parent 9e607e9dd3
commit ff426cafa9
5 changed files with 262 additions and 5 deletions

View File

@@ -62,6 +62,7 @@
#include "GeckoNetworkManager.h"
#include "GeckoScreenOrientation.h"
#include "PrefsHelper.h"
#include "ThumbnailHelper.h"
#ifdef DEBUG_ANDROID_EVENTS
#define EVLOG(args...) ALOG(args)
@@ -388,6 +389,7 @@ nsAppShell::nsAppShell()
mozilla::GeckoNetworkManager::Init();
mozilla::GeckoScreenOrientation::Init();
mozilla::PrefsHelper::Init();
mozilla::ThumbnailHelper::Init();
nsWindow::InitNatives();
widget::GeckoThread::SetState(widget::GeckoThread::State::JNI_READY());