mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 09:52:50 -10:00
Move the native call onFullScreenPluginHidden from GeckoAppShell to GeckoApp itself. MozReview-Commit-ID: APhGRBTNl0X
29 lines
733 B
C++
29 lines
733 B
C++
/* -*- Mode: c++; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_GeckoApp_h__
|
|
#define mozilla_GeckoApp_h__
|
|
|
|
#include "FennecJNINatives.h"
|
|
#include "nsPluginInstanceOwner.h"
|
|
|
|
namespace mozilla {
|
|
|
|
class GeckoApp final
|
|
: public java::GeckoApp::Natives<GeckoApp>
|
|
{
|
|
GeckoApp() = delete;
|
|
|
|
public:
|
|
static void OnFullScreenPluginHidden(jni::Object::Param aView)
|
|
{
|
|
nsPluginInstanceOwner::ExitFullScreen(aView.Get());
|
|
}
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_GeckoApp_h__
|