mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
d110e4bff5
- Bug 1130935 part.7 Set composition font when selection is changed since some IMEs need to be set candidate window position even before WM_IME_STARTCOMPOSITION r=emk (57b43c453) - Bug 1130935 part.8 nsIMM32Handler should set focused editor rect to the result of IMR_QUERYCHARPOSITION r=emk (b534d4921) - Bug 1130935 part.9 Needs some hack for Google Japanese Input in nsIMM32Handle because it doesn't support vertical writing mode r=emk (01555b5cc) - Bug 1130935 part.10 nsIMM32Handler should forcibly update composition font when active IME is changed r=emk (84748aa9c) - Bug 1130935 part.11 Disable test_backspace_delete.xul due to bug 1163311 r=smontagu (8bdbe49d3) - Bug 1130935 - mingw fixup. (55841cba1) - Bug 1168219 - Make nsIWidget::Configuration::mChild a smart pointer. r=vlad (4a8804a1e) - Add an API for snapshotting widgets as they are presented by the operating system. (bug 1167477, r=mattwoodrow, dom r=khuey) (c2592f279) - Bug 1130937 part.1 nsGtkIMModule should cache selection r=m_kato (b0d7c550d) - Bug 1174287: Use mozilla:: prefix for namespaced classes in nsGtkIMModule.h. r=Ms2ger (dcf6732db) - Bug 1130937 part.2 nsGtkIMModule should set candidiate window position to bottom left of the target clause in vertical writing mode r=m_kato (5c8d74129) - Bug 1130937 part.3 nsGtkIMModule should adjust candidate window position when layout is changed r=m_kato (88c472773) - Bug 1165903: For Windows NPAPI do window re-parenting in the chrome process to allow for sandboxing. r=jimm (27254a070)
75 lines
2.4 KiB
C++
75 lines
2.4 KiB
C++
/* 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_widget_RemotePlugin_h__
|
|
#define mozilla_widget_RemotePlugin_h__
|
|
|
|
#include "PuppetWidget.h"
|
|
#include "mozilla/dom/TabChild.h"
|
|
|
|
/*
|
|
* PluginWidgetProxy is a nsIWidget wrapper we hand around in plugin and layout
|
|
* code. It wraps a native widget it creates in the chrome process. Since this
|
|
* is for plugins, only a limited set of the widget apis need to be overridden,
|
|
* the rest of the implementation is in PuppetWidget or nsBaseWidget.
|
|
*/
|
|
|
|
namespace mozilla {
|
|
namespace plugins {
|
|
class PluginWidgetChild;
|
|
} // namespace plugins
|
|
namespace widget {
|
|
|
|
class PluginWidgetProxy final : public PuppetWidget
|
|
{
|
|
public:
|
|
explicit PluginWidgetProxy(dom::TabChild* aTabChild,
|
|
mozilla::plugins::PluginWidgetChild* aChannel);
|
|
|
|
protected:
|
|
virtual ~PluginWidgetProxy();
|
|
|
|
public:
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
// nsIWidget
|
|
NS_IMETHOD Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
|
|
const nsIntRect& aRect,
|
|
nsWidgetInitData* aInitData = nullptr) override;
|
|
NS_IMETHOD Destroy() override;
|
|
NS_IMETHOD SetFocus(bool aRaise = false) override;
|
|
NS_IMETHOD SetParent(nsIWidget* aNewParent) override;
|
|
|
|
virtual nsIWidget* GetParent(void) override;
|
|
virtual void* GetNativeData(uint32_t aDataType) override;
|
|
#if defined(XP_WIN)
|
|
void SetNativeData(uint32_t aDataType, uintptr_t aVal) override;
|
|
#endif
|
|
virtual nsTransparencyMode GetTransparencyMode() override
|
|
{ return eTransparencyOpaque; }
|
|
virtual void GetWindowClipRegion(nsTArray<nsIntRect>* aRects) override;
|
|
|
|
public:
|
|
/**
|
|
* When tabs are closed PPluginWidget can terminate before plugin code is
|
|
* finished tearing us down. When this happens plugin calls over mActor
|
|
* fail triggering an abort in the content process. To protect against this
|
|
* the connection tells us when it is torn down here so we can avoid making
|
|
* calls while content finishes tearing us down.
|
|
*/
|
|
void ChannelDestroyed() { mActor = nullptr; }
|
|
|
|
private:
|
|
// Our connection with the chrome widget, created on PBrowser.
|
|
mozilla::plugins::PluginWidgetChild* mActor;
|
|
// PuppetWidget does not implement parent apis, but we need
|
|
// them for plugin widgets.
|
|
nsCOMPtr<nsIWidget> mParent;
|
|
};
|
|
|
|
} // namespace widget
|
|
} // namespace mozilla
|
|
|
|
#endif
|