2009-09-10 02:00:14 +04:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8 -*- */
|
2020-01-05 23:58:21 +03:00
|
|
|
/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
|
2009-08-18 23:05:15 +04:00
|
|
|
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2009-08-26 03:07:22 +04:00
|
|
|
|
2014-02-24 00:19:43 +04:00
|
|
|
include protocol PColorPicker;
|
2010-07-19 22:33:33 +04:00
|
|
|
include protocol PContent;
|
2019-12-02 09:25:40 +03:00
|
|
|
#ifdef ACCESSIBILITY
|
2015-05-21 20:04:58 +03:00
|
|
|
include protocol PDocAccessible;
|
2019-12-02 09:25:40 +03:00
|
|
|
#endif
|
2014-02-18 04:30:06 +04:00
|
|
|
include protocol PFilePicker;
|
2014-11-12 23:59:18 +03:00
|
|
|
include protocol PPluginWidget;
|
2016-05-16 12:40:54 +03:00
|
|
|
include protocol PRemotePrintJob;
|
2017-04-05 20:02:57 +03:00
|
|
|
include protocol PChildToParentStream;
|
|
|
|
include protocol PParentToChildStream;
|
|
|
|
include protocol PFileDescriptorSet;
|
2020-06-29 14:03:04 +03:00
|
|
|
include protocol PRemoteLazyInputStream;
|
2017-05-25 20:50:32 +03:00
|
|
|
include protocol PPaymentRequest;
|
2018-08-30 01:21:25 +03:00
|
|
|
include protocol PWindowGlobal;
|
2019-03-05 05:15:58 +03:00
|
|
|
include protocol PBrowserBridge;
|
Bug 1353629 - PBlob refactoring - part 4 - IPCBlobInputStream, r=smaug
IPCBlobInputStream is a new type of nsIInputStream that is used only in content
process when a Blob is sent from parent to child. This inputStream is for now,
just cloneable.
When the parent process sends a Blob to a content process, it has the Blob and
its inputStream. With its inputStream it creates a IPCBlobInputStreamParent
actor. This actor keeps the inputStream alive for following uses (not part of
this patch).
On the child side we will have, of course, a IPCBlobInputStreamChild actor.
This actor is able to create a IPCBlobInputStream when CreateStream() is
called. This means that 1 IPCBlobInputStreamChild can manage multiple
IPCBlobInputStreams each time one of them is cloned. When the last one of this
stream is released, the child actor sends a __delete__ request to the parent
side; the parent will be deleted, and the original inputStream, on the parent
side, will be released as well.
IPCBlobInputStream is a special inputStream because each method, except for
Available() fails. Basically, this inputStream cannot be used on the content
process for nothing else than knowing the size of the original stream.
In the following patches, I'll introduce an async way to use it.
2017-04-24 13:09:40 +03:00
|
|
|
|
2012-08-23 23:33:46 +04:00
|
|
|
include DOMTypes;
|
2020-11-11 14:14:05 +03:00
|
|
|
include NeckoChannelParams;
|
2020-05-27 03:27:30 +03:00
|
|
|
include WindowGlobalTypes;
|
2017-04-24 13:09:40 +03:00
|
|
|
include IPCBlob;
|
|
|
|
include IPCStream;
|
2012-08-23 23:33:46 +04:00
|
|
|
include URIParams;
|
2016-05-16 12:40:54 +03:00
|
|
|
include PPrintingTypes;
|
2016-04-29 01:04:52 +03:00
|
|
|
include PTabContext;
|
2019-06-14 00:08:40 +03:00
|
|
|
include PBackgroundSharedTypes;
|
2009-09-10 02:00:14 +04:00
|
|
|
|
2020-01-13 17:08:25 +03:00
|
|
|
include "mozilla/AntiTrackingIPCUtils.h";
|
2020-07-15 16:24:20 +03:00
|
|
|
include "mozilla/dom/TabMessageUtils.h";
|
2017-06-09 07:32:13 +03:00
|
|
|
include "mozilla/GfxMessageUtils.h";
|
2020-09-21 05:09:57 +03:00
|
|
|
include "mozilla/LayoutMessageUtils.h";
|
2017-06-09 07:32:13 +03:00
|
|
|
include "mozilla/layers/LayersMessageUtils.h";
|
2019-08-28 21:55:45 +03:00
|
|
|
include "mozilla/ipc/TransportSecurityInfoUtils.h";
|
2012-08-02 10:02:29 +04:00
|
|
|
|
2019-04-09 13:26:31 +03:00
|
|
|
using mozilla::gfx::Matrix4x4 from "mozilla/gfx/Matrix.h";
|
2019-08-20 09:37:05 +03:00
|
|
|
using mozilla::gfx::MaybeMatrix4x4 from "mozilla/gfx/Matrix.h";
|
2018-04-10 18:53:44 +03:00
|
|
|
using mozilla::gfx::SurfaceFormat from "mozilla/gfx/Types.h";
|
2015-04-07 16:00:05 +03:00
|
|
|
using mozilla::LayoutDeviceIntPoint from "Units.h";
|
2016-09-21 17:26:33 +03:00
|
|
|
using mozilla::LayoutDevicePoint from "Units.h";
|
2019-11-14 08:59:47 +03:00
|
|
|
using mozilla::ScreenIntCoord from "Units.h";
|
2020-03-04 11:16:31 +03:00
|
|
|
using mozilla::ScreenIntMargin from "Units.h";
|
2015-12-03 08:45:38 +03:00
|
|
|
using mozilla::ScreenIntPoint from "Units.h";
|
2019-09-12 11:08:45 +03:00
|
|
|
using ScreenRect from "Units.h";
|
2018-11-01 23:15:46 +03:00
|
|
|
using struct mozilla::layers::ScrollableLayerGuid from "mozilla/layers/ScrollableLayerGuid.h";
|
|
|
|
using struct mozilla::layers::ZoomConstraints from "mozilla/layers/ZoomConstraints.h";
|
2018-03-25 02:06:01 +03:00
|
|
|
using mozilla::layers::LayersId from "mozilla/layers/LayersTypes.h";
|
2018-07-30 16:24:50 +03:00
|
|
|
using mozilla::layers::LayersObserverEpoch from "mozilla/layers/LayersTypes.h";
|
2018-11-01 23:15:46 +03:00
|
|
|
using mozilla::layers::MaybeZoomConstraints from "mozilla/layers/ZoomConstraints.h";
|
2020-05-16 00:20:48 +03:00
|
|
|
using mozilla::layers::GeckoContentController_TapType from "mozilla/layers/GeckoContentControllerTypes.h";
|
2018-11-01 23:15:46 +03:00
|
|
|
using ScrollableLayerGuid::ViewID from "mozilla/layers/ScrollableLayerGuid.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
|
|
|
|
using mozilla::WindowsHandle from "ipc/IPCMessageUtils.h";
|
|
|
|
using class mozilla::WidgetCompositionEvent from "ipc/nsGUIEventIPC.h";
|
2017-04-11 15:24:55 +03:00
|
|
|
using struct mozilla::widget::IMENotification from "mozilla/widget/IMEData.h";
|
|
|
|
using struct mozilla::widget::IMENotificationRequests from "mozilla/widget/IMEData.h";
|
2018-06-19 23:31:24 +03:00
|
|
|
using struct mozilla::widget::IMEState from "mozilla/widget/IMEData.h";
|
|
|
|
using struct mozilla::widget::InputContext from "mozilla/widget/IMEData.h";
|
|
|
|
using struct mozilla::widget::InputContextAction from "mozilla/widget/IMEData.h";
|
2015-03-29 17:59:08 +03:00
|
|
|
using mozilla::gfx::IntSize from "mozilla/gfx/Point.h";
|
2015-04-21 18:04:57 +03:00
|
|
|
using mozilla::gfx::IntPoint from "mozilla/gfx/Point.h";
|
2015-06-05 12:28:20 +03:00
|
|
|
using class mozilla::ContentCache from "ipc/nsGUIEventIPC.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using class mozilla::WidgetKeyboardEvent from "ipc/nsGUIEventIPC.h";
|
|
|
|
using class mozilla::WidgetMouseEvent from "ipc/nsGUIEventIPC.h";
|
|
|
|
using class mozilla::WidgetWheelEvent from "ipc/nsGUIEventIPC.h";
|
2015-04-08 21:48:11 +03:00
|
|
|
using class mozilla::WidgetDragEvent from "ipc/nsGUIEventIPC.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using struct nsRect from "nsRect.h";
|
|
|
|
using class mozilla::WidgetSelectionEvent from "ipc/nsGUIEventIPC.h";
|
|
|
|
using class mozilla::WidgetTouchEvent from "ipc/nsGUIEventIPC.h";
|
2015-12-29 16:57:38 +03:00
|
|
|
using class mozilla::WidgetPluginEvent from "ipc/nsGUIEventIPC.h";
|
2020-07-15 16:24:20 +03:00
|
|
|
using struct mozilla::dom::RemoteDOMEvent from "mozilla/dom/TabMessageTypes.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using struct mozilla::layers::TextureFactoryIdentifier from "mozilla/layers/CompositorTypes.h";
|
2017-04-10 00:30:27 +03:00
|
|
|
using mozilla::layers::CompositorOptions from "mozilla/layers/CompositorOptions.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
using mozilla::CSSToScreenScale from "Units.h";
|
2014-03-20 19:46:29 +04:00
|
|
|
using mozilla::CommandInt from "mozilla/EventForwards.h";
|
2015-04-14 18:36:36 +03:00
|
|
|
using nsIWidget::TouchPointerState from "nsIWidget.h";
|
2018-04-09 17:48:09 +03:00
|
|
|
using nsCursor from "nsIWidget.h";
|
2015-04-22 17:58:33 +03:00
|
|
|
using struct LookAndFeelInt from "mozilla/widget/WidgetMessageUtils.h";
|
2016-08-10 09:18:29 +03:00
|
|
|
using class mozilla::dom::MessagePort from "mozilla/dom/MessagePort.h";
|
|
|
|
using class mozilla::dom::ipc::StructuredCloneData from "mozilla/dom/ipc/StructuredCloneData.h";
|
2015-08-26 15:56:59 +03:00
|
|
|
using mozilla::EventMessage from "mozilla/EventForwards.h";
|
2015-05-14 15:16:00 +03:00
|
|
|
using nsEventStatus from "mozilla/EventForwards.h";
|
2016-09-21 17:26:33 +03:00
|
|
|
using mozilla::Modifiers from "mozilla/EventForwards.h";
|
2016-02-02 11:05:56 +03:00
|
|
|
using mozilla::widget::CandidateWindowPosition from "ipc/nsGUIEventIPC.h";
|
Bug 1257759 part.5 PluginInstanceChild should post received native key event to chrome process if the key combination may be a shortcut key r=jimm
When PluginInstanceChild receives native key events, it should post the events to the chrome process first for checking if the key combination is reserved. However, posting all key events to the chrome process may make damage to the performance of text input. Therefore, this patch starts to post a key event whose key combination may be a shortcut key. However, for avoiding to shuffle the event order, it posts following key events until all posted key events are handled by the chrome process.
For receiving response from widget, this patch defines nsIKeyEventInPluginCallback. It's specified by nsIWidget::OnWindowedPluginKeyEvent() for ensuring the caller will receive the reply. Basically, the caller of nsIWidget::OnWindowedPluginKeyEvent() should reply to the child process. However, if the widget is a PuppetWidget, it cannot return the result synchronously. Therefore, PuppetWidget::OnWindowedPluginKeyEvent() returns NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY and stores the callback to mKeyEventInPluginCallbacks. Then, TabParent::HandledWindowedPluginKeyEvent() will call PuppetWidget::HandledWindowedPluginKeyEvent().
MozReview-Commit-ID: G6brOU26NwQ
--HG--
extra : rebase_source : 8140456de278956d2d594e85c7b397ae366b4962
2016-04-19 14:09:37 +03:00
|
|
|
using class mozilla::NativeEventData from "ipc/nsGUIEventIPC.h";
|
2016-04-26 11:18:04 +03:00
|
|
|
using mozilla::FontRange from "ipc/nsGUIEventIPC.h";
|
2016-12-02 02:28:54 +03:00
|
|
|
using mozilla::a11y::IAccessibleHolder from "mozilla/a11y/IPCTypes.h";
|
2017-06-06 21:22:17 +03:00
|
|
|
using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
|
2020-07-15 16:24:20 +03:00
|
|
|
using mozilla::dom::EffectsInfo from "mozilla/dom/EffectsInfo.h";
|
2019-06-02 20:42:03 +03:00
|
|
|
using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h";
|
2019-07-09 08:34:27 +03:00
|
|
|
using mozilla::ScrollAxis from "mozilla/PresShellForwards.h";
|
|
|
|
using mozilla::ScrollFlags from "mozilla/PresShellForwards.h";
|
2019-08-02 17:19:00 +03:00
|
|
|
using struct InputFormData from "mozilla/dom/SessionStoreMessageUtils.h";
|
|
|
|
using struct CollectedInputDataValue from "mozilla/dom/SessionStoreMessageUtils.h";
|
2020-06-03 09:12:06 +03:00
|
|
|
using mozilla::ContentBlockingNotifier::StorageAccessPermissionGrantedReason from "mozilla/ContentBlockingNotifier.h";
|
2020-01-16 17:38:40 +03:00
|
|
|
using CallerType from "mozilla/dom/BindingDeclarations.h";
|
2020-07-15 16:24:20 +03:00
|
|
|
using mozilla::dom::EmbedderElementEventType from "mozilla/dom/TabMessageTypes.h";
|
2020-08-28 20:20:30 +03:00
|
|
|
using refcounted class nsDocShellLoadState from "nsDocShellLoadState.h";
|
2020-09-21 05:09:57 +03:00
|
|
|
using mozilla::IntrinsicSize from "nsIFrame.h";
|
|
|
|
using mozilla::AspectRatio from "mozilla/AspectRatio.h";
|
2013-10-01 23:25:07 +04:00
|
|
|
|
2009-08-26 03:07:22 +04:00
|
|
|
namespace mozilla {
|
2009-09-10 02:00:14 +04:00
|
|
|
namespace dom {
|
2009-08-26 03:07:22 +04:00
|
|
|
|
2019-01-25 17:44:09 +03:00
|
|
|
struct WebProgressData
|
|
|
|
{
|
|
|
|
bool isTopLevel;
|
|
|
|
bool isLoadingDocument;
|
|
|
|
uint32_t loadType;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct RequestData
|
|
|
|
{
|
|
|
|
nsIURI requestURI;
|
|
|
|
nsIURI originalRequestURI;
|
|
|
|
nsCString matchedList;
|
|
|
|
};
|
|
|
|
|
2019-05-23 21:49:08 +03:00
|
|
|
struct WebProgressStateChangeData
|
|
|
|
{
|
|
|
|
bool isNavigating;
|
|
|
|
bool mayEnableCharacterEncodingMenu;
|
2019-04-17 14:36:52 +03:00
|
|
|
bool charsetAutodetected;
|
2019-05-23 21:49:08 +03:00
|
|
|
|
|
|
|
// The following fields are only set when the aStateFlags param passed with
|
|
|
|
// this struct is |nsIWebProgress.STATE_STOP|.
|
|
|
|
nsString contentType;
|
|
|
|
nsString charset;
|
|
|
|
nsIURI documentURI;
|
|
|
|
};
|
|
|
|
|
2019-06-14 00:08:40 +03:00
|
|
|
struct WebProgressLocationChangeData
|
|
|
|
{
|
|
|
|
bool isNavigating;
|
|
|
|
bool isSyntheticDocument;
|
|
|
|
bool mayEnableCharacterEncodingMenu;
|
|
|
|
bool charsetAutodetected;
|
|
|
|
nsString contentType;
|
|
|
|
nsString title;
|
|
|
|
nsString charset;
|
|
|
|
nsIURI documentURI;
|
2019-08-28 21:56:44 +03:00
|
|
|
nsIPrincipal contentPrincipal;
|
2020-06-03 09:09:52 +03:00
|
|
|
nsIPrincipal contentPartitionedPrincipal;
|
2019-08-28 21:56:44 +03:00
|
|
|
nsIContentSecurityPolicy csp;
|
2019-07-29 18:34:30 +03:00
|
|
|
nsIReferrerInfo referrerInfo;
|
2019-06-14 00:08:40 +03:00
|
|
|
uint64_t? requestContextID;
|
|
|
|
};
|
|
|
|
|
2020-09-01 14:00:36 +03:00
|
|
|
/**
|
|
|
|
* If creating the print preview document or updating it with new print
|
|
|
|
* settings fails, sheetCount will be zero.
|
|
|
|
*/
|
|
|
|
struct PrintPreviewResultInfo
|
|
|
|
{
|
|
|
|
uint32_t sheetCount;
|
|
|
|
uint32_t totalPageCount;
|
2020-09-02 11:15:35 +03:00
|
|
|
bool hasSelection;
|
2020-09-01 14:00:36 +03:00
|
|
|
};
|
|
|
|
|
2019-05-06 17:47:56 +03:00
|
|
|
/**
|
|
|
|
* A PBrowser manages a maximal locally connected subtree of BrowsingContexts
|
|
|
|
* in a content process.
|
|
|
|
*
|
|
|
|
* See `dom/docs/Fission-IPC-Diagram.svg` for an overview of the DOM IPC
|
|
|
|
* actors.
|
|
|
|
*/
|
2019-08-08 19:46:24 +03:00
|
|
|
nested(upto inside_cpow) sync refcounted protocol PBrowser
|
2009-08-26 03:07:22 +04:00
|
|
|
{
|
2019-02-25 23:04:45 +03:00
|
|
|
manager PContent;
|
2010-07-19 22:33:33 +04:00
|
|
|
|
2014-02-24 00:19:43 +04:00
|
|
|
manages PColorPicker;
|
2019-12-02 09:25:40 +03:00
|
|
|
|
|
|
|
#ifdef ACCESSIBILITY
|
2015-05-21 20:04:58 +03:00
|
|
|
manages PDocAccessible;
|
2019-12-02 09:25:40 +03:00
|
|
|
#endif
|
|
|
|
|
2014-02-18 04:30:06 +04:00
|
|
|
manages PFilePicker;
|
2014-11-12 23:59:18 +03:00
|
|
|
manages PPluginWidget;
|
2017-05-25 20:50:32 +03:00
|
|
|
manages PPaymentRequest;
|
2020-04-06 22:03:02 +03:00
|
|
|
manages PWindowGlobal;
|
2019-03-05 05:15:58 +03:00
|
|
|
manages PBrowserBridge;
|
2010-07-19 22:33:33 +04:00
|
|
|
|
|
|
|
both:
|
2020-04-21 17:07:57 +03:00
|
|
|
async AsyncMessage(nsString aMessage, ClonedMessageData aData);
|
2009-09-10 02:00:14 +04:00
|
|
|
|
2009-11-05 21:14:22 +03:00
|
|
|
parent:
|
2019-12-02 09:25:40 +03:00
|
|
|
#ifdef ACCESSIBILITY
|
2015-05-21 20:04:58 +03:00
|
|
|
/**
|
|
|
|
* Tell the parent process a new accessible document has been created.
|
|
|
|
* aParentDoc is the accessible document it was created in if any, and
|
|
|
|
* aParentAcc is the id of the accessible in that document the new document
|
2016-10-27 22:16:24 +03:00
|
|
|
* is a child of. aMsaaID is the MSAA id for this content process, and
|
2016-12-02 02:28:54 +03:00
|
|
|
* is only valid on Windows. Set to 0 on other platforms. aDocCOMProxy
|
|
|
|
* is also Windows-specific and should be set to 0 on other platforms.
|
2015-05-21 20:04:58 +03:00
|
|
|
*/
|
2016-10-27 22:16:24 +03:00
|
|
|
async PDocAccessible(nullable PDocAccessible aParentDoc, uint64_t aParentAcc,
|
2016-12-02 02:28:54 +03:00
|
|
|
uint32_t aMsaaID, IAccessibleHolder aDocCOMProxy);
|
2019-12-02 09:25:40 +03:00
|
|
|
#endif
|
2015-05-21 20:04:58 +03:00
|
|
|
|
2014-11-12 23:59:18 +03:00
|
|
|
/*
|
|
|
|
* Creates a new remoted nsIWidget connection for windowed plugins
|
|
|
|
* in e10s mode. This is always initiated from the child in response
|
|
|
|
* to windowed plugin creation.
|
|
|
|
*/
|
|
|
|
sync PPluginWidget();
|
|
|
|
|
2017-05-25 20:50:32 +03:00
|
|
|
async PPaymentRequest();
|
|
|
|
|
2015-08-12 18:00:26 +03:00
|
|
|
/**
|
|
|
|
* Sends an NS_NATIVE_CHILD_OF_SHAREABLE_WINDOW to be adopted by the
|
|
|
|
* widget's shareable window on the chrome side. Only used on Windows.
|
|
|
|
*/
|
|
|
|
async SetNativeChildOfShareableWindow(uintptr_t childWindow);
|
|
|
|
|
2015-07-09 17:48:57 +03:00
|
|
|
/**
|
|
|
|
* When content moves focus from a native plugin window that's a child
|
|
|
|
* of the native browser window we need to move native focus to the
|
|
|
|
* browser. Otherwise the plugin window will never relinquish focus.
|
|
|
|
*/
|
|
|
|
sync DispatchFocusToTopLevelWindow();
|
|
|
|
|
2015-01-23 13:10:52 +03:00
|
|
|
parent:
|
2009-11-05 21:14:22 +03:00
|
|
|
/**
|
|
|
|
* When child sends this message, parent should move focus to
|
2015-07-13 13:07:49 +03:00
|
|
|
* the next or previous focusable element or document.
|
2009-11-05 21:14:22 +03:00
|
|
|
*/
|
2016-01-27 00:51:53 +03:00
|
|
|
async MoveFocus(bool forward, bool forDocumentNavigation);
|
2009-11-05 21:14:22 +03:00
|
|
|
|
2016-05-11 12:44:57 +03:00
|
|
|
/**
|
|
|
|
* SizeShellTo request propagation to parent.
|
|
|
|
*
|
|
|
|
* aFlag Can indicate if one of the dimensions should be ignored.
|
|
|
|
* If only one dimension has changed it has to be indicated
|
|
|
|
* by the nsIEmbeddingSiteWindow::DIM_FLAGS_IGNORE_* flags.
|
|
|
|
* aShellItemWidth,
|
|
|
|
* aShellItemHeight On parent side we won't be able to decide the dimensions
|
|
|
|
* of the shell item parameter in the original SizeShellTo
|
|
|
|
* call so we send over its dimensions that will be used
|
|
|
|
* for the actual resize.
|
|
|
|
**/
|
|
|
|
async SizeShellTo(uint32_t aFlag, int32_t aWidth, int32_t aHeight,
|
|
|
|
int32_t aShellItemWidth, int32_t aShellItemHeight);
|
|
|
|
|
2015-11-11 01:35:12 +03:00
|
|
|
/**
|
|
|
|
* Called by the child to inform the parent that links are dropped into
|
|
|
|
* content area.
|
|
|
|
*
|
|
|
|
* aLinks A flat array of url, name, and type for each link
|
|
|
|
*/
|
2017-06-07 15:25:46 +03:00
|
|
|
async DropLinks(nsString[] aLinks);
|
2015-11-11 01:35:12 +03:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async Event(RemoteDOMEvent aEvent);
|
2010-01-01 04:35:55 +03:00
|
|
|
|
2020-04-21 17:07:57 +03:00
|
|
|
sync SyncMessage(nsString aMessage, ClonedMessageData aData)
|
2015-09-10 23:50:58 +03:00
|
|
|
returns (StructuredCloneData[] retval);
|
2013-10-01 20:15:06 +04:00
|
|
|
|
2010-09-24 07:28:15 +04:00
|
|
|
/**
|
|
|
|
* Notifies chrome that there is a focus change involving an editable
|
|
|
|
* object (input, textarea, document, contentEditable. etc.)
|
|
|
|
*
|
2015-06-05 12:28:20 +03:00
|
|
|
* contentCache Cache of content
|
2015-07-17 07:30:01 +03:00
|
|
|
* notification Whole data of the notification
|
2017-04-11 15:24:55 +03:00
|
|
|
* requests Requests of notification for IME of the native widget
|
2010-09-24 07:28:15 +04:00
|
|
|
*/
|
2017-05-08 14:07:56 +03:00
|
|
|
nested(inside_cpow) async NotifyIMEFocus(ContentCache contentCache,
|
|
|
|
IMENotification notification)
|
2017-04-11 15:24:55 +03:00
|
|
|
returns (IMENotificationRequests requests);
|
2010-09-24 07:28:15 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Notifies chrome that there has been a change in text content
|
|
|
|
* One call can encompass both a delete and an insert operation
|
2012-10-25 20:32:24 +04:00
|
|
|
* Only called when NotifyIMEFocus returns PR_TRUE for mWantUpdates
|
2010-09-24 07:28:15 +04:00
|
|
|
*
|
2015-06-05 12:28:20 +03:00
|
|
|
* contentCache Cache of content
|
2015-07-17 07:30:01 +03:00
|
|
|
* notification Whole data of the notification
|
2010-09-24 07:28:15 +04:00
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) async NotifyIMETextChange(ContentCache contentCache,
|
|
|
|
IMENotification notification);
|
2010-09-24 07:28:15 +04:00
|
|
|
|
2013-11-07 04:11:11 +04:00
|
|
|
/**
|
|
|
|
* Notifies chrome that there is a IME compostion rect updated
|
|
|
|
*
|
2015-06-05 12:28:20 +03:00
|
|
|
* contentCache Cache of content
|
2013-11-07 04:11:11 +04:00
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) async NotifyIMECompositionUpdate(ContentCache contentCache,
|
|
|
|
IMENotification notification);
|
2013-11-07 04:11:11 +04:00
|
|
|
|
2010-09-24 07:28:15 +04:00
|
|
|
/**
|
|
|
|
* Notifies chrome that there has been a change in selection
|
2012-10-25 20:32:24 +04:00
|
|
|
* Only called when NotifyIMEFocus returns PR_TRUE for mWantUpdates
|
2010-09-24 07:28:15 +04:00
|
|
|
*
|
2015-06-05 12:28:20 +03:00
|
|
|
* contentCache Cache of content
|
2015-07-17 07:30:01 +03:00
|
|
|
* notification Whole data of the notification
|
2010-09-24 07:28:15 +04:00
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) async NotifyIMESelection(ContentCache contentCache,
|
|
|
|
IMENotification notification);
|
2010-09-24 07:28:15 +04:00
|
|
|
|
|
|
|
/**
|
2015-06-05 12:28:20 +03:00
|
|
|
* Notifies chrome of updating its content cache.
|
|
|
|
* This is useful if content is modified but we don't need to notify IME.
|
2010-09-24 07:28:15 +04:00
|
|
|
*
|
2015-06-05 12:28:20 +03:00
|
|
|
* contentCache Cache of content
|
2010-09-24 07:28:15 +04:00
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) async UpdateContentCache(ContentCache contentCache);
|
2010-09-24 07:28:15 +04:00
|
|
|
|
2014-09-11 17:46:17 +04:00
|
|
|
/**
|
|
|
|
* Notifies IME of mouse button event on a character in focused editor.
|
|
|
|
*
|
2017-05-08 14:07:56 +03:00
|
|
|
* Returns true if the mouse button event is consumed by IME.
|
2014-09-11 17:46:17 +04:00
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) sync NotifyIMEMouseButtonEvent(IMENotification notification)
|
2014-09-11 17:46:17 +04:00
|
|
|
returns (bool consumedByIME);
|
|
|
|
|
2014-12-15 12:37:00 +03:00
|
|
|
/**
|
|
|
|
* Notifies chrome to position change
|
|
|
|
*
|
2015-06-05 12:28:20 +03:00
|
|
|
* contentCache Cache of content
|
2014-12-15 12:37:00 +03:00
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) async NotifyIMEPositionChange(ContentCache contentCache,
|
|
|
|
IMENotification notification);
|
2014-12-15 12:37:00 +03:00
|
|
|
|
2010-09-24 07:28:15 +04:00
|
|
|
/**
|
2015-12-11 09:15:58 +03:00
|
|
|
* Requests chrome to commit or cancel composition of IME.
|
2010-09-24 07:28:15 +04:00
|
|
|
*
|
2015-12-11 09:15:58 +03:00
|
|
|
* cancel Set true if composition should be cancelled.
|
2010-09-24 07:28:15 +04:00
|
|
|
*
|
2015-12-11 09:15:58 +03:00
|
|
|
* isCommitted Returns true if the request causes composition
|
|
|
|
* being committed synchronously.
|
|
|
|
* committedString Returns committed string. The may be non-empty
|
|
|
|
* string even if cancel is true because IME may
|
|
|
|
* try to restore selected string which was
|
|
|
|
* replaced with the composition.
|
2010-09-24 07:28:15 +04:00
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) sync RequestIMEToCommitComposition(bool cancel)
|
2015-12-11 09:15:58 +03:00
|
|
|
returns (bool isCommitted, nsString committedString);
|
2010-09-24 07:28:15 +04:00
|
|
|
|
2015-07-11 04:53:55 +03:00
|
|
|
/**
|
2015-07-22 08:51:36 +03:00
|
|
|
* OnEventNeedingAckHandled() is called after a child process dispatches a
|
2015-07-11 04:53:55 +03:00
|
|
|
* composition event or a selection event which is sent from the parent
|
|
|
|
* process.
|
2015-07-11 04:53:56 +03:00
|
|
|
*
|
2015-07-22 08:51:36 +03:00
|
|
|
* message The message value of the handled event.
|
2015-07-11 04:53:55 +03:00
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) async OnEventNeedingAckHandled(EventMessage message);
|
2015-07-11 04:53:55 +03:00
|
|
|
|
2015-02-20 19:37:02 +03:00
|
|
|
/**
|
|
|
|
* Tells chrome to start plugin IME. If this results in a string getting
|
|
|
|
* committed, the result is in aCommitted (otherwise aCommitted is empty).
|
|
|
|
*
|
|
|
|
* aKeyboardEvent The event with which plugin IME is to be started
|
|
|
|
* panelX and panelY Location in screen coordinates of the IME input panel
|
|
|
|
* (should be just under the plugin)
|
|
|
|
* aCommitted The string committed during IME -- otherwise empty
|
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) sync StartPluginIME(WidgetKeyboardEvent aKeyboardEvent,
|
|
|
|
int32_t panelX, int32_t panelY)
|
|
|
|
returns (nsString aCommitted);
|
2015-02-20 19:37:02 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Tells chrome (and specifically the appropriate widget) whether or not
|
|
|
|
* a plugin (inside the widget) has the keyboard focus. Should be sent
|
|
|
|
* when the keyboard focus changes too or from a plugin.
|
|
|
|
*
|
|
|
|
* aFocused Whether or not a plugin is focused
|
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) async SetPluginFocused(bool aFocused);
|
2015-02-20 19:37:02 +03:00
|
|
|
|
2015-12-29 16:57:38 +03:00
|
|
|
/**
|
|
|
|
* Set IME candidate window by windowless plugin if plugin has focus.
|
|
|
|
*/
|
2016-02-02 11:05:56 +03:00
|
|
|
async SetCandidateWindowForPlugin(CandidateWindowPosition aPosition);
|
2015-12-29 16:57:38 +03:00
|
|
|
|
2018-05-17 08:47:55 +03:00
|
|
|
/**
|
|
|
|
* Enable or Disable IME by windowless plugin if plugin has focus.
|
|
|
|
*/
|
|
|
|
async EnableIMEForPlugin(bool aEnable);
|
|
|
|
|
Bug 1257759 part.5 PluginInstanceChild should post received native key event to chrome process if the key combination may be a shortcut key r=jimm
When PluginInstanceChild receives native key events, it should post the events to the chrome process first for checking if the key combination is reserved. However, posting all key events to the chrome process may make damage to the performance of text input. Therefore, this patch starts to post a key event whose key combination may be a shortcut key. However, for avoiding to shuffle the event order, it posts following key events until all posted key events are handled by the chrome process.
For receiving response from widget, this patch defines nsIKeyEventInPluginCallback. It's specified by nsIWidget::OnWindowedPluginKeyEvent() for ensuring the caller will receive the reply. Basically, the caller of nsIWidget::OnWindowedPluginKeyEvent() should reply to the child process. However, if the widget is a PuppetWidget, it cannot return the result synchronously. Therefore, PuppetWidget::OnWindowedPluginKeyEvent() returns NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY and stores the callback to mKeyEventInPluginCallbacks. Then, TabParent::HandledWindowedPluginKeyEvent() will call PuppetWidget::HandledWindowedPluginKeyEvent().
MozReview-Commit-ID: G6brOU26NwQ
--HG--
extra : rebase_source : 8140456de278956d2d594e85c7b397ae366b4962
2016-04-19 14:09:37 +03:00
|
|
|
/**
|
|
|
|
* Notifies the parent process of native key event data received in a
|
|
|
|
* plugin process directly.
|
|
|
|
*
|
|
|
|
* aKeyEventData The native key event data. The actual type copied into
|
|
|
|
* NativeEventData depending on the caller. Please check
|
|
|
|
* PluginInstanceChild.
|
|
|
|
*/
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_cpow) async OnWindowedPluginKeyEvent(NativeEventData aKeyEventData);
|
Bug 1257759 part.5 PluginInstanceChild should post received native key event to chrome process if the key combination may be a shortcut key r=jimm
When PluginInstanceChild receives native key events, it should post the events to the chrome process first for checking if the key combination is reserved. However, posting all key events to the chrome process may make damage to the performance of text input. Therefore, this patch starts to post a key event whose key combination may be a shortcut key. However, for avoiding to shuffle the event order, it posts following key events until all posted key events are handled by the chrome process.
For receiving response from widget, this patch defines nsIKeyEventInPluginCallback. It's specified by nsIWidget::OnWindowedPluginKeyEvent() for ensuring the caller will receive the reply. Basically, the caller of nsIWidget::OnWindowedPluginKeyEvent() should reply to the child process. However, if the widget is a PuppetWidget, it cannot return the result synchronously. Therefore, PuppetWidget::OnWindowedPluginKeyEvent() returns NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY and stores the callback to mKeyEventInPluginCallbacks. Then, TabParent::HandledWindowedPluginKeyEvent() will call PuppetWidget::HandledWindowedPluginKeyEvent().
MozReview-Commit-ID: G6brOU26NwQ
--HG--
extra : rebase_source : 8140456de278956d2d594e85c7b397ae366b4962
2016-04-19 14:09:37 +03:00
|
|
|
|
2015-12-29 16:57:38 +03:00
|
|
|
/**
|
|
|
|
* When plugin event isn't consumed, call this
|
|
|
|
*/
|
|
|
|
async DefaultProcOfPluginEvent(WidgetPluginEvent aEvent);
|
|
|
|
|
2013-09-21 02:07:51 +04:00
|
|
|
/**
|
|
|
|
* Request that the parent process move focus to the browser's frame. If
|
|
|
|
* canRaise is true, the window can be raised if it is inactive.
|
|
|
|
*/
|
2020-01-16 17:38:40 +03:00
|
|
|
async RequestFocus(bool canRaise, CallerType aCallerType);
|
2013-09-21 02:07:51 +04:00
|
|
|
|
2020-04-30 19:35:35 +03:00
|
|
|
/**
|
|
|
|
* Sends a mouse wheel zoom change to the parent process, to be handled by
|
|
|
|
* the front end as needed.
|
|
|
|
*/
|
|
|
|
async WheelZoomChange(bool increase);
|
|
|
|
|
2014-12-09 18:48:27 +03:00
|
|
|
/**
|
|
|
|
* Indicate, based on the current state, that some commands are enabled and
|
|
|
|
* some are disabled.
|
|
|
|
*/
|
2020-03-12 19:47:57 +03:00
|
|
|
async EnableDisableCommands(MaybeDiscardedBrowsingContext bc,
|
|
|
|
nsString action,
|
2016-01-27 00:51:53 +03:00
|
|
|
nsCString[] enabledCommands,
|
|
|
|
nsCString[] disabledCommands);
|
2014-12-09 18:48:27 +03:00
|
|
|
|
2018-06-19 23:31:24 +03:00
|
|
|
nested(inside_cpow) sync GetInputContext() returns (IMEState state);
|
|
|
|
|
|
|
|
nested(inside_cpow) async SetInputContext(InputContext context,
|
|
|
|
InputContextAction action);
|
2010-09-24 07:28:15 +04:00
|
|
|
|
2014-05-28 05:12:29 +04:00
|
|
|
/**
|
|
|
|
* Set the native cursor.
|
|
|
|
* @param value
|
|
|
|
* The widget cursor to set.
|
2019-01-15 16:56:52 +03:00
|
|
|
* @param hasCustomCursor
|
|
|
|
* Whether there's any custom cursor represented by cursorData and
|
|
|
|
* company.
|
|
|
|
* @param customCursorData
|
2015-05-20 04:28:57 +03:00
|
|
|
* Serialized image data.
|
|
|
|
* @param width
|
|
|
|
* Width of the image.
|
|
|
|
* @param height
|
|
|
|
* Height of the image.
|
|
|
|
* @param stride
|
|
|
|
* Stride used in the image data.
|
|
|
|
* @param format
|
|
|
|
* Image format, see gfx::SurfaceFormat for possible values.
|
|
|
|
* @param hotspotX
|
|
|
|
* Horizontal hotspot of the image, as specified by the css cursor property.
|
|
|
|
* @param hotspotY
|
|
|
|
* Vertical hotspot of the image, as specified by the css cursor property.
|
|
|
|
* @param force
|
|
|
|
* Invalidate any locally cached cursor settings and force an
|
|
|
|
* update.
|
|
|
|
*/
|
2019-01-15 16:56:52 +03:00
|
|
|
async SetCursor(nsCursor value,
|
|
|
|
bool hasCustomCursor,
|
|
|
|
nsCString customCursorData,
|
|
|
|
uint32_t width, uint32_t height,
|
|
|
|
uint32_t stride, SurfaceFormat format,
|
|
|
|
uint32_t hotspotX, uint32_t hotspotY, bool force);
|
2015-05-20 04:28:57 +03:00
|
|
|
|
2013-07-25 23:45:31 +04:00
|
|
|
/**
|
|
|
|
* Used to set the current text of the status tooltip.
|
2019-12-04 16:50:01 +03:00
|
|
|
* Nowadays this is only used for link locations on hover.
|
2013-07-25 23:45:31 +04:00
|
|
|
*/
|
2019-12-05 13:36:12 +03:00
|
|
|
async SetLinkStatus(nsString status);
|
2013-07-25 23:45:31 +04:00
|
|
|
|
2014-01-23 00:27:23 +04:00
|
|
|
/**
|
|
|
|
* Show/hide a tooltip when the mouse hovers over an element in the content
|
|
|
|
* document.
|
|
|
|
*/
|
2016-04-12 23:47:25 +03:00
|
|
|
async ShowTooltip(uint32_t x, uint32_t y, nsString tooltip, nsString direction);
|
2016-01-27 00:51:53 +03:00
|
|
|
async HideTooltip();
|
2014-01-23 00:27:23 +04:00
|
|
|
|
2014-02-24 00:19:43 +04:00
|
|
|
/**
|
|
|
|
* Create an asynchronous color picker on the parent side,
|
|
|
|
* but don't open it yet.
|
|
|
|
*/
|
2016-01-27 00:51:53 +03:00
|
|
|
async PColorPicker(nsString title, nsString initialColor);
|
2014-02-24 00:19:43 +04:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async PFilePicker(nsString aTitle, int16_t aMode);
|
2014-02-18 04:30:06 +04:00
|
|
|
|
2014-09-27 03:21:57 +04:00
|
|
|
/**
|
|
|
|
* Initiates an asynchronous request for one of the special indexedDB
|
|
|
|
* permissions for the provided principal.
|
|
|
|
*
|
|
|
|
* @param principal
|
|
|
|
* The principal of the request.
|
|
|
|
*
|
|
|
|
* NOTE: The principal is untrusted in the parent process. Only
|
|
|
|
* principals that can live in the content process should
|
|
|
|
* provided.
|
|
|
|
*/
|
2019-04-25 17:18:11 +03:00
|
|
|
async IndexedDBPermissionRequest(nsIPrincipal aPrincipal) returns (uint32_t permission);
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2015-08-28 08:10:48 +03:00
|
|
|
/**
|
|
|
|
* Tells the containing widget whether the given input block results in a
|
|
|
|
* swipe. Should be called in response to a WidgetWheelEvent that has
|
|
|
|
* mFlags.mCanTriggerSwipe set on it.
|
|
|
|
*/
|
2016-01-27 00:51:53 +03:00
|
|
|
async RespondStartSwipeEvent(uint64_t aInputBlockId, bool aStartSwipe);
|
2015-08-28 08:10:48 +03:00
|
|
|
|
2014-06-11 09:44:36 +04:00
|
|
|
/**
|
|
|
|
* Brings up the auth prompt dialog.
|
|
|
|
* Called when this is the PBrowserParent for a nested remote iframe.
|
|
|
|
* aCallbackId corresponds to an nsIAuthPromptCallback that lives in the
|
|
|
|
* root process. It will be passed back to the root process with either the
|
|
|
|
* OnAuthAvailable or OnAuthCancelled message.
|
|
|
|
*/
|
2016-01-27 00:51:53 +03:00
|
|
|
async AsyncAuthPrompt(nsCString uri, nsString realm, uint64_t aCallbackId);
|
2014-06-11 09:44:36 +04:00
|
|
|
|
2016-04-26 11:18:04 +03:00
|
|
|
/**
|
|
|
|
* Look up dictionary by selected word for OSX
|
|
|
|
*
|
|
|
|
* @param aText The word to look up
|
|
|
|
* @param aFontRange Text decoration of aText
|
|
|
|
* @param aIsVertical true if vertical layout
|
|
|
|
*/
|
|
|
|
async LookUpDictionary(nsString aText, FontRange[] aFontRangeArray,
|
|
|
|
bool aIsVertical, LayoutDeviceIntPoint aPoint);
|
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async __delete__();
|
2010-08-06 02:11:23 +04:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async ReplyKeyEvent(WidgetKeyboardEvent event);
|
2014-03-18 19:16:47 +04:00
|
|
|
|
2017-05-19 12:46:02 +03:00
|
|
|
/**
|
|
|
|
* Retrieves edit commands for the key combination represented by aEvent.
|
|
|
|
*
|
|
|
|
* @param aType One of nsIWidget::NativeKeyBindingsType.
|
|
|
|
* @param aEvent KeyboardEvent which represents a key combination.
|
|
|
|
* Note that this must be a trusted event.
|
|
|
|
* @return Array of edit commands which should be executed in
|
|
|
|
* editor of native applications.
|
|
|
|
*/
|
|
|
|
sync RequestNativeKeyBindings(uint32_t aType, WidgetKeyboardEvent aEvent)
|
|
|
|
returns (CommandInt[] commands);
|
2014-04-22 00:40:09 +04:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async SynthesizeNativeKeyEvent(int32_t aNativeKeyboardLayout,
|
|
|
|
int32_t aNativeKeyCode,
|
|
|
|
uint32_t aModifierFlags,
|
|
|
|
nsString aCharacters,
|
|
|
|
nsString aUnmodifiedCharacters,
|
|
|
|
uint64_t aObserverId);
|
|
|
|
async SynthesizeNativeMouseEvent(LayoutDeviceIntPoint aPoint,
|
2015-04-14 18:36:36 +03:00
|
|
|
uint32_t aNativeMessage,
|
|
|
|
uint32_t aModifierFlags,
|
|
|
|
uint64_t aObserverId);
|
2016-01-27 00:51:53 +03:00
|
|
|
async SynthesizeNativeMouseMove(LayoutDeviceIntPoint aPoint,
|
|
|
|
uint64_t aObserverId);
|
|
|
|
async SynthesizeNativeMouseScrollEvent(LayoutDeviceIntPoint aPoint,
|
|
|
|
uint32_t aNativeMessage,
|
|
|
|
double aDeltaX,
|
|
|
|
double aDeltaY,
|
|
|
|
double aDeltaZ,
|
|
|
|
uint32_t aModifierFlags,
|
|
|
|
uint32_t aAdditionalFlags,
|
|
|
|
uint64_t aObserverId);
|
|
|
|
async SynthesizeNativeTouchPoint(uint32_t aPointerId,
|
|
|
|
TouchPointerState aPointerState,
|
2016-04-15 13:39:36 +03:00
|
|
|
LayoutDeviceIntPoint aPoint,
|
2016-01-27 00:51:53 +03:00
|
|
|
double aPointerPressure,
|
|
|
|
uint32_t aPointerOrientation,
|
|
|
|
uint64_t aObserverId);
|
2016-04-15 13:39:36 +03:00
|
|
|
async SynthesizeNativeTouchTap(LayoutDeviceIntPoint aPoint,
|
2016-01-27 00:51:53 +03:00
|
|
|
bool aLongTap,
|
|
|
|
uint64_t aObserverId);
|
|
|
|
async ClearNativeTouchSequence(uint64_t aObserverId);
|
2016-04-14 21:03:00 +03:00
|
|
|
|
2016-05-11 15:56:42 +03:00
|
|
|
async AccessKeyNotHandled(WidgetKeyboardEvent event);
|
|
|
|
|
2018-12-13 16:47:39 +03:00
|
|
|
async RegisterProtocolHandler(nsString scheme, nsIURI handlerURI, nsString title,
|
|
|
|
nsIURI documentURI);
|
|
|
|
|
2019-05-23 21:49:08 +03:00
|
|
|
async OnStateChange(WebProgressData? aWebProgressData,
|
|
|
|
RequestData aRequestData, uint32_t aStateFlags,
|
|
|
|
nsresult aStatus,
|
|
|
|
WebProgressStateChangeData? aStateChangeData);
|
|
|
|
|
2019-04-03 20:32:41 +03:00
|
|
|
async OnProgressChange(WebProgressData? aWebProgressData,
|
|
|
|
RequestData aRequestData, int32_t aCurSelfProgress,
|
|
|
|
int32_t aMaxSelfProgress, int32_t aCurTotalProgress,
|
|
|
|
int32_t aMaxTotalProgress);
|
|
|
|
|
2019-06-14 00:08:40 +03:00
|
|
|
async OnLocationChange(WebProgressData? aWebProgressData,
|
|
|
|
RequestData aRequestData, nsIURI aLocation,
|
|
|
|
uint32_t aFlags, bool aCanGoBack,
|
|
|
|
bool aCanGoForward,
|
|
|
|
WebProgressLocationChangeData? aLocationChangeData);
|
|
|
|
|
2019-04-03 20:31:54 +03:00
|
|
|
async OnStatusChange(WebProgressData? aWebProgressData,
|
|
|
|
RequestData aRequestData, nsresult aStatus,
|
|
|
|
nsString aMessage);
|
|
|
|
|
2020-01-13 17:08:25 +03:00
|
|
|
async NotifyContentBlockingEvent(uint32_t aEvent, RequestData aRequestData,
|
2020-02-11 12:33:32 +03:00
|
|
|
bool aBlocked, nsCString aTrackingOrigin,
|
2020-01-13 17:08:25 +03:00
|
|
|
nsCString[] aTrackingFullHashes,
|
2020-06-03 09:12:06 +03:00
|
|
|
StorageAccessPermissionGrantedReason? aReason);
|
2020-01-13 17:08:25 +03:00
|
|
|
|
2019-06-14 00:00:34 +03:00
|
|
|
async NavigationFinished();
|
|
|
|
|
2019-07-11 12:46:14 +03:00
|
|
|
async SessionStoreUpdate(nsCString? aDocShellCaps, bool? aPrivatedMode,
|
|
|
|
nsCString[] aPositions, int32_t[] aPositionDescendants,
|
2019-08-02 17:19:00 +03:00
|
|
|
InputFormData[] aInputs, CollectedInputDataValue[] aIdVals,
|
|
|
|
CollectedInputDataValue[] aXPathVals,
|
2019-08-27 17:47:27 +03:00
|
|
|
nsCString[] aOrigins, nsString[] aKeys,
|
|
|
|
nsString[] aValues, bool aIsFullStorage,
|
2020-03-19 17:31:52 +03:00
|
|
|
bool aNeedCollectSHistory, uint32_t aFlushId,
|
|
|
|
bool aIsFinal, uint32_t aEpoch);
|
2019-05-04 13:42:52 +03:00
|
|
|
|
2020-09-21 05:09:57 +03:00
|
|
|
async IntrinsicSizeOrRatioChanged(IntrinsicSize? aIntrinsicSize,
|
|
|
|
AspectRatio? aIntrinsicRatio);
|
|
|
|
|
2020-09-21 14:01:27 +03:00
|
|
|
/**
|
|
|
|
* Child informs the parent that a pointer lock has requested/released.
|
|
|
|
*/
|
|
|
|
async RequestPointerLock() returns (nsCString error);
|
|
|
|
async ReleasePointerLock();
|
|
|
|
|
2020-10-27 00:00:50 +03:00
|
|
|
/**
|
|
|
|
* Child informs the parent that a pointer capture has requested/released.
|
|
|
|
*/
|
|
|
|
async RequestPointerCapture(uint32_t aPointerId) returns (bool aSuccess);
|
|
|
|
async ReleasePointerCapture(uint32_t aPointerId);
|
|
|
|
|
2015-04-14 18:36:36 +03:00
|
|
|
child:
|
2016-01-27 00:51:53 +03:00
|
|
|
async NativeSynthesisResponse(uint64_t aObserverId, nsCString aResponse);
|
2019-05-22 12:06:14 +03:00
|
|
|
async FlushTabState(uint32_t aFlushId, bool aIsFinal);
|
2019-07-11 12:46:14 +03:00
|
|
|
async UpdateEpoch(uint32_t aEpoch);
|
2020-03-19 17:31:52 +03:00
|
|
|
async UpdateSHistory(bool aImmediately);
|
2020-09-22 12:57:27 +03:00
|
|
|
async CloneDocumentTreeIntoSelf(MaybeDiscardedBrowsingContext aBc);
|
2015-04-14 18:36:36 +03:00
|
|
|
|
2020-10-27 00:00:50 +03:00
|
|
|
/**
|
|
|
|
* Parent informs the child to release all pointer capture.
|
|
|
|
*/
|
2020-11-18 01:42:56 +03:00
|
|
|
prio(input) async ReleaseAllPointerCapture();
|
2020-10-27 00:00:50 +03:00
|
|
|
|
2015-04-14 18:36:36 +03:00
|
|
|
parent:
|
|
|
|
|
2014-05-23 22:19:00 +04:00
|
|
|
/**
|
|
|
|
* Child informs the parent that the graphics objects are ready for
|
|
|
|
* compositing. This is sent when all pending changes have been
|
|
|
|
* sent to the compositor and are ready to be shown on the next composite.
|
|
|
|
* @see PCompositor
|
|
|
|
* @see RequestNotifyAfterRemotePaint
|
|
|
|
*/
|
|
|
|
async RemotePaintIsReady();
|
|
|
|
|
2017-03-21 10:44:12 +03:00
|
|
|
/**
|
|
|
|
* Child informs the parent that the content is ready to handle input
|
2019-04-10 01:39:01 +03:00
|
|
|
* events. This is sent when the BrowserChild is created.
|
2017-03-21 10:44:12 +03:00
|
|
|
*/
|
|
|
|
async RemoteIsReadyToHandleInputEvents();
|
|
|
|
|
2016-07-23 02:36:45 +03:00
|
|
|
/**
|
|
|
|
* Child informs the parent that the layer tree is already available.
|
|
|
|
*/
|
2018-07-30 16:24:50 +03:00
|
|
|
async PaintWhileInterruptingJSNoOp(LayersObserverEpoch aEpoch);
|
2016-07-23 02:36:45 +03:00
|
|
|
|
2019-05-15 23:26:25 +03:00
|
|
|
child:
|
|
|
|
/**
|
|
|
|
* Parent informs the child of graphical effects that are being applied
|
|
|
|
* to the child browser.
|
|
|
|
*/
|
|
|
|
async UpdateEffects(EffectsInfo aEffects);
|
|
|
|
|
|
|
|
parent:
|
|
|
|
|
2015-01-13 03:41:53 +03:00
|
|
|
/**
|
|
|
|
* Sent by the child to the parent to inform it that an update to the
|
|
|
|
* dimensions has been requested, likely through win.moveTo or resizeTo
|
|
|
|
*/
|
2019-12-10 11:23:06 +03:00
|
|
|
async SetDimensions(uint32_t aFlags, int32_t aX, int32_t aY,
|
|
|
|
int32_t aCx, int32_t aCy, double aScale);
|
2015-01-13 03:41:53 +03:00
|
|
|
|
2016-10-01 02:20:50 +03:00
|
|
|
nested(inside_sync) sync DispatchWheelEvent(WidgetWheelEvent event);
|
|
|
|
nested(inside_sync) sync DispatchMouseEvent(WidgetMouseEvent event);
|
|
|
|
nested(inside_sync) sync DispatchKeyboardEvent(WidgetKeyboardEvent event);
|
2015-03-07 01:26:59 +03:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async InvokeDragSession(IPCDataTransfer[] transfers, uint32_t action,
|
2019-03-21 07:52:48 +03:00
|
|
|
Shmem? visualData,
|
2018-04-10 18:53:44 +03:00
|
|
|
uint32_t stride, SurfaceFormat format,
|
2018-02-09 04:43:53 +03:00
|
|
|
LayoutDeviceIntRect dragRect,
|
2020-11-11 14:14:05 +03:00
|
|
|
nsIPrincipal principal, nsIContentSecurityPolicy csp,
|
|
|
|
CookieJarSettingsArgs cookieJarSettings);
|
2015-07-10 19:38:44 +03:00
|
|
|
|
2016-09-20 11:19:32 +03:00
|
|
|
// After a compositor reset, it is necessary to reconnect each layers ID to
|
|
|
|
// the compositor of the widget that will render those layers. Note that
|
|
|
|
// this is sync so we can ensure that messages to the window compositor
|
2019-04-10 01:39:01 +03:00
|
|
|
// arrive before the BrowserChild attempts to use its cross-process compositor
|
2016-09-20 11:19:32 +03:00
|
|
|
// bridge.
|
2017-04-10 00:31:24 +03:00
|
|
|
sync EnsureLayersConnected() returns (CompositorOptions compositorOptions);
|
2016-09-20 11:19:32 +03:00
|
|
|
|
2017-08-22 09:23:41 +03:00
|
|
|
/**
|
|
|
|
* This function is used to notify the parent that it should display a
|
|
|
|
* canvas permission prompt.
|
|
|
|
*
|
2019-05-17 16:23:04 +03:00
|
|
|
* @param aOrigin origin string of the document that is requesting access.
|
2017-08-22 09:23:41 +03:00
|
|
|
*/
|
2019-05-17 16:23:04 +03:00
|
|
|
async ShowCanvasPermissionPrompt(nsCString aOrigin,
|
2018-12-17 00:30:59 +03:00
|
|
|
bool aHideDoorHanger);
|
2017-08-22 09:23:41 +03:00
|
|
|
|
2018-08-07 05:58:36 +03:00
|
|
|
sync SetSystemFont(nsCString aFontName);
|
|
|
|
sync GetSystemFont() returns (nsCString retval);
|
|
|
|
|
2019-06-06 17:57:17 +03:00
|
|
|
/**
|
2019-09-19 03:00:44 +03:00
|
|
|
* Called once this PBrowser's OOP subdoc no longer blocks its
|
|
|
|
* embedding element's and embedding doc's 'load' events.
|
2019-06-06 17:57:17 +03:00
|
|
|
*/
|
2020-04-16 01:30:13 +03:00
|
|
|
async MaybeFireEmbedderLoadEvents(EmbedderElementEventType aFireEventAtEmbeddingElement);
|
2019-06-06 17:57:17 +03:00
|
|
|
|
2019-07-09 08:34:27 +03:00
|
|
|
async ScrollRectIntoView(nsRect aRect, ScrollAxis aVertical,
|
|
|
|
ScrollAxis aHorizontal, ScrollFlags aScrollFlags,
|
|
|
|
int32_t aAppUnitsPerDevPixel);
|
|
|
|
|
2020-07-08 18:37:18 +03:00
|
|
|
async SetAllowDeprecatedTls(bool value);
|
|
|
|
|
2009-09-10 02:00:14 +04:00
|
|
|
child:
|
2010-08-21 03:24:40 +04:00
|
|
|
/**
|
2020-01-05 23:58:21 +03:00
|
|
|
* Notify the remote browser that it has been Show()n on this side. This
|
|
|
|
* message is expected to trigger creation of the remote browser's "widget".
|
2010-08-21 03:24:40 +04:00
|
|
|
*/
|
2020-01-05 23:58:21 +03:00
|
|
|
async Show(ParentShowInfo parentInfo, OwnerShowInfo childInfo);
|
2009-10-28 23:41:46 +03:00
|
|
|
|
2020-06-12 22:41:27 +03:00
|
|
|
/**
|
|
|
|
* Sending an activate message moves focus to the child.
|
|
|
|
*/
|
2020-11-16 22:16:20 +03:00
|
|
|
async Activate(uint64_t aActionId);
|
2020-06-12 22:41:27 +03:00
|
|
|
|
2020-11-16 22:16:20 +03:00
|
|
|
async Deactivate(uint64_t aActionId);
|
2020-06-12 22:41:27 +03:00
|
|
|
|
2020-01-13 14:30:44 +03:00
|
|
|
async ScrollbarPreferenceChanged(ScrollbarPreference pref);
|
|
|
|
|
2017-01-17 23:52:45 +03:00
|
|
|
async InitRendering(TextureFactoryIdentifier textureFactoryIdentifier,
|
2018-03-25 02:06:01 +03:00
|
|
|
LayersId layersId,
|
2017-04-10 00:30:27 +03:00
|
|
|
CompositorOptions compositorOptions,
|
2018-11-06 00:03:15 +03:00
|
|
|
bool layersConnected);
|
2017-01-17 23:52:45 +03:00
|
|
|
|
2019-11-19 02:13:55 +03:00
|
|
|
async CompositorOptionsChanged(CompositorOptions newOptions);
|
|
|
|
|
2020-08-28 20:20:30 +03:00
|
|
|
async LoadURL(nsDocShellLoadState loadState, ParentShowInfo info);
|
2009-09-10 02:00:14 +04:00
|
|
|
|
2020-01-05 23:58:21 +03:00
|
|
|
async ResumeLoad(uint64_t pendingSwitchID, ParentShowInfo info);
|
2019-04-17 03:53:28 +03:00
|
|
|
|
2017-06-07 21:36:46 +03:00
|
|
|
async UpdateDimensions(DimensionInfo dimensions) compressall;
|
2009-10-29 20:58:31 +03:00
|
|
|
|
2016-02-23 19:10:00 +03:00
|
|
|
async SizeModeChanged(nsSizeMode sizeMode);
|
|
|
|
|
2019-09-12 11:08:45 +03:00
|
|
|
async ChildToParentMatrix(MaybeMatrix4x4 aMatrix,
|
|
|
|
ScreenRect aRemoteDocumentRect);
|
2019-04-09 13:26:31 +03:00
|
|
|
|
2019-05-13 04:49:07 +03:00
|
|
|
async SetIsUnderHiddenEmbedderElement(bool aIsUnderHiddenEmbedderElement);
|
|
|
|
|
2019-11-14 08:59:47 +03:00
|
|
|
async DynamicToolbarMaxHeightChanged(ScreenIntCoord height);
|
|
|
|
|
2019-11-22 00:15:46 +03:00
|
|
|
async DynamicToolbarOffsetChanged(ScreenIntCoord height);
|
|
|
|
|
2019-06-03 18:29:06 +03:00
|
|
|
async SetKeyboardIndicators(UIStateChangeType showFocusRings);
|
2016-06-09 14:59:31 +03:00
|
|
|
|
2015-07-01 16:19:11 +03:00
|
|
|
/**
|
|
|
|
* StopIMEStateManagement() is called when the process loses focus and
|
|
|
|
* should stop managing IME state.
|
|
|
|
*/
|
2016-01-27 00:51:53 +03:00
|
|
|
async StopIMEStateManagement();
|
2015-07-01 16:19:11 +03:00
|
|
|
|
2009-11-17 17:22:23 +03:00
|
|
|
/**
|
2010-07-19 22:33:33 +04:00
|
|
|
* @see nsIDOMWindowUtils sendMouseEvent.
|
|
|
|
*/
|
2016-01-27 00:51:53 +03:00
|
|
|
async MouseEvent(nsString aType,
|
|
|
|
float aX,
|
|
|
|
float aY,
|
|
|
|
int32_t aButton,
|
|
|
|
int32_t aClickCount,
|
2020-05-18 06:05:32 +03:00
|
|
|
int32_t aModifiers);
|
2010-07-19 22:33:33 +04:00
|
|
|
|
2015-02-14 02:34:04 +03:00
|
|
|
/**
|
|
|
|
* When two consecutive mouse move events would be added to the message queue,
|
|
|
|
* they are 'compressed' by dumping the oldest one.
|
|
|
|
*/
|
2017-03-21 10:44:12 +03:00
|
|
|
prio(input) async RealMouseMoveEvent(WidgetMouseEvent event,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId) compress;
|
2017-07-28 10:14:54 +03:00
|
|
|
|
|
|
|
async NormalPriorityRealMouseMoveEvent(WidgetMouseEvent event,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId) compress;
|
|
|
|
|
2015-07-28 01:35:51 +03:00
|
|
|
/**
|
|
|
|
* Mouse move events with |reason == eSynthesized| are sent via a separate
|
|
|
|
* message because they do not generate DOM 'mousemove' events, and the
|
|
|
|
* 'compress' attribute on RealMouseMoveEvent() could result in a
|
|
|
|
* |reason == eReal| event being dropped in favour of an |eSynthesized|
|
|
|
|
* event, and thus a DOM 'mousemove' event to be lost.
|
|
|
|
*/
|
2017-03-21 10:44:12 +03:00
|
|
|
prio(input) async SynthMouseMoveEvent(WidgetMouseEvent event,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId);
|
2017-07-28 10:14:54 +03:00
|
|
|
async NormalPrioritySynthMouseMoveEvent(WidgetMouseEvent event,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId);
|
|
|
|
|
2017-03-21 10:44:12 +03:00
|
|
|
prio(input) async RealMouseButtonEvent(WidgetMouseEvent event,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId);
|
2017-07-28 10:14:54 +03:00
|
|
|
async NormalPriorityRealMouseButtonEvent(WidgetMouseEvent event,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId);
|
|
|
|
|
2017-03-21 10:44:12 +03:00
|
|
|
prio(input) async RealKeyEvent(WidgetKeyboardEvent event);
|
2017-07-28 10:14:54 +03:00
|
|
|
async NormalPriorityRealKeyEvent(WidgetKeyboardEvent event);
|
|
|
|
|
2017-03-21 10:44:12 +03:00
|
|
|
prio(input) async MouseWheelEvent(WidgetWheelEvent event,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId);
|
2017-07-28 10:14:54 +03:00
|
|
|
async NormalPriorityMouseWheelEvent(WidgetWheelEvent event,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId);
|
|
|
|
|
2017-03-21 10:44:12 +03:00
|
|
|
prio(input) async RealTouchEvent(WidgetTouchEvent aEvent,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId,
|
|
|
|
nsEventStatus aApzResponse);
|
2017-07-28 10:14:54 +03:00
|
|
|
async NormalPriorityRealTouchEvent(WidgetTouchEvent aEvent,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId,
|
|
|
|
nsEventStatus aApzResponse);
|
|
|
|
|
2020-05-16 00:20:48 +03:00
|
|
|
prio(input) async HandleTap(GeckoContentController_TapType aType, LayoutDevicePoint point,
|
2017-03-21 10:44:12 +03:00
|
|
|
Modifiers aModifiers, ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId);
|
2020-05-16 00:20:48 +03:00
|
|
|
async NormalPriorityHandleTap(GeckoContentController_TapType aType, LayoutDevicePoint point,
|
2017-07-28 10:14:54 +03:00
|
|
|
Modifiers aModifiers, ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId);
|
|
|
|
|
2017-03-21 10:44:12 +03:00
|
|
|
prio(input) async RealTouchMoveEvent(WidgetTouchEvent aEvent,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId,
|
2020-03-11 03:31:31 +03:00
|
|
|
nsEventStatus aApzResponse) compress;
|
2017-07-28 10:14:54 +03:00
|
|
|
async NormalPriorityRealTouchMoveEvent(WidgetTouchEvent aEvent,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId,
|
2020-03-11 03:31:31 +03:00
|
|
|
nsEventStatus aApzResponse) compress;
|
|
|
|
prio(input) async RealTouchMoveEvent2(WidgetTouchEvent aEvent,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId,
|
|
|
|
nsEventStatus aApzResponse) compress;
|
|
|
|
async NormalPriorityRealTouchMoveEvent2(WidgetTouchEvent aEvent,
|
|
|
|
ScrollableLayerGuid aGuid,
|
|
|
|
uint64_t aInputBlockId,
|
|
|
|
nsEventStatus aApzResponse) compress;
|
2017-07-28 10:14:54 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* We disable the input event queue when there is an active dnd session. We
|
|
|
|
* don't need support RealDragEvent with input priority.
|
|
|
|
*/
|
|
|
|
async RealDragEvent(WidgetDragEvent aEvent, uint32_t aDragAction,
|
2019-08-20 15:43:02 +03:00
|
|
|
uint32_t aDropEffect, nsIPrincipal aPrincipal,
|
|
|
|
nsIContentSecurityPolicy csp);
|
2017-07-28 10:14:54 +03:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async PluginEvent(WidgetPluginEvent aEvent);
|
2011-06-22 04:32:43 +04:00
|
|
|
|
2017-09-29 16:03:25 +03:00
|
|
|
prio(input) async CompositionEvent(WidgetCompositionEvent event);
|
|
|
|
async NormalPriorityCompositionEvent(WidgetCompositionEvent event);
|
2010-08-17 12:07:42 +04:00
|
|
|
|
2017-09-29 16:03:25 +03:00
|
|
|
prio(input) async SelectionEvent(WidgetSelectionEvent event);
|
|
|
|
async NormalPrioritySelectionEvent(WidgetSelectionEvent event);
|
2010-08-17 12:07:42 +04:00
|
|
|
|
2016-08-31 04:30:45 +03:00
|
|
|
/**
|
|
|
|
* Call PasteTransferable via a controller on the content process
|
|
|
|
* to handle the command content event, "pasteTransferable".
|
|
|
|
*/
|
|
|
|
async PasteTransferable(IPCDataTransfer aDataTransfer,
|
|
|
|
bool aIsPrivateData,
|
2019-04-25 17:18:11 +03:00
|
|
|
nsIPrincipal aRequestingPrincipal,
|
2018-03-14 11:44:36 +03:00
|
|
|
uint32_t aContentPolicyType);
|
2016-08-31 04:30:45 +03:00
|
|
|
|
2010-07-19 22:33:33 +04:00
|
|
|
/**
|
|
|
|
* Activate event forwarding from client to parent.
|
|
|
|
*/
|
2016-01-27 00:51:53 +03:00
|
|
|
async ActivateFrameEvent(nsString aType, bool capture);
|
2010-02-20 20:05:20 +03:00
|
|
|
|
2016-01-27 00:51:53 +03:00
|
|
|
async LoadRemoteScript(nsString aURL, bool aRunInGlobalScope);
|
2010-02-20 20:05:20 +03:00
|
|
|
|
2010-08-06 02:11:23 +04:00
|
|
|
/**
|
|
|
|
* Sent by the chrome process when it no longer wants this remote
|
|
|
|
* <browser>. The child side cleans up in response, then
|
|
|
|
* finalizing its death by sending back __delete__() to the
|
|
|
|
* parent.
|
|
|
|
*/
|
2016-01-27 00:51:53 +03:00
|
|
|
async Destroy();
|
2010-08-06 02:11:23 +04:00
|
|
|
|
2014-02-20 15:26:13 +04:00
|
|
|
/**
|
2015-09-04 16:42:01 +03:00
|
|
|
* Update the child side docShell active (resource use) state.
|
2016-07-23 02:36:45 +03:00
|
|
|
*
|
|
|
|
* @param aIsActive
|
|
|
|
* Whether to activate or deactivate the docshell.
|
|
|
|
* @param aPreserveLayers
|
|
|
|
* Whether layer trees should be preserved for inactive docshells.
|
2017-11-03 17:27:05 +03:00
|
|
|
*/
|
|
|
|
async SetDocShellIsActive(bool aIsActive);
|
|
|
|
|
2020-04-21 00:19:56 +03:00
|
|
|
/**
|
2017-11-03 17:27:05 +03:00
|
|
|
* If aEnabled is true, tells the child to paint and upload layers to
|
|
|
|
* the compositor. If aEnabled is false, the child stops painting and
|
|
|
|
* clears the layers from the compositor.
|
|
|
|
*
|
|
|
|
* @param aEnabled
|
|
|
|
* True if the child should render and upload layers, false if the
|
|
|
|
* child should clear layers.
|
2018-07-30 16:24:50 +03:00
|
|
|
* @param aEpoch
|
2016-07-23 02:36:45 +03:00
|
|
|
* The layer observer epoch for this activation. This message should be
|
2018-05-15 09:45:00 +03:00
|
|
|
* ignored if this epoch has already been observed (via
|
|
|
|
* PaintWhileInterruptingJS).
|
2016-07-23 02:36:45 +03:00
|
|
|
*/
|
2019-09-27 01:11:17 +03:00
|
|
|
async RenderLayers(bool aEnabled, LayersObserverEpoch aEpoch);
|
2018-09-25 05:48:02 +03:00
|
|
|
child:
|
2015-08-20 00:08:41 +03:00
|
|
|
/**
|
|
|
|
* Notify the child that it shouldn't paint the offscreen displayport.
|
|
|
|
* This is useful to speed up interactive operations over async
|
|
|
|
* scrolling performance like resize, tabswitch, pageload.
|
|
|
|
*
|
|
|
|
* Each enable call must be matched with a disable call. The child
|
|
|
|
* will remain in the suppress mode as long as there's
|
|
|
|
* a single unmatched call.
|
|
|
|
*/
|
|
|
|
async SuppressDisplayport(bool aEnabled);
|
|
|
|
|
2015-07-13 13:07:49 +03:00
|
|
|
/**
|
2015-07-23 17:04:15 +03:00
|
|
|
* Navigate by key (Tab/Shift+Tab/F6/Shift+f6).
|
2015-07-13 13:07:49 +03:00
|
|
|
*/
|
2016-01-27 00:51:53 +03:00
|
|
|
async NavigateByKey(bool aForward, bool aForDocumentNavigation);
|
2015-07-13 13:07:49 +03:00
|
|
|
|
2014-05-23 22:19:00 +04:00
|
|
|
/**
|
|
|
|
* The parent (chrome thread) requests that the child inform it when
|
|
|
|
* the graphics objects are ready to display.
|
|
|
|
* @see PCompositor
|
|
|
|
* @see RemotePaintIsReady
|
|
|
|
*/
|
|
|
|
async RequestNotifyAfterRemotePaint();
|
|
|
|
|
2014-05-23 18:36:50 +04:00
|
|
|
/**
|
|
|
|
* Tell the child that the UI resolution changed for the containing
|
|
|
|
* window.
|
2015-08-13 17:42:19 +03:00
|
|
|
* To avoid some sync messages from child to parent, we also send the dpi
|
|
|
|
* and default scale with the notification.
|
|
|
|
* If we don't know the dpi and default scale, we just pass in a negative
|
|
|
|
* value (-1) but in the majority of the cases this saves us from two
|
|
|
|
* sync requests from the child to the parent.
|
2014-05-23 18:36:50 +04:00
|
|
|
*/
|
2016-09-27 09:37:07 +03:00
|
|
|
async UIResolutionChanged(float dpi, int32_t rounding, double scale);
|
2014-05-23 18:36:50 +04:00
|
|
|
|
2020-03-04 11:16:31 +03:00
|
|
|
/**
|
|
|
|
* Tell the child that the safe area of widget has changed.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
async SafeAreaInsetsChanged(ScreenIntMargin aSafeAreaInsets);
|
|
|
|
|
2015-05-07 18:43:40 +03:00
|
|
|
/**
|
|
|
|
* Tell the browser that its frame loader has been swapped
|
|
|
|
* with another.
|
|
|
|
*/
|
2016-04-29 01:04:52 +03:00
|
|
|
async SwappedWithOtherRemoteLoader(IPCTabContext context);
|
2015-05-07 18:43:40 +03:00
|
|
|
|
2015-09-18 15:19:13 +03:00
|
|
|
/**
|
|
|
|
* A potential accesskey was just pressed. Look for accesskey targets
|
|
|
|
* using the list of provided charCodes.
|
|
|
|
*
|
2016-05-11 15:56:42 +03:00
|
|
|
* @param event keyboard event
|
2015-09-18 15:19:13 +03:00
|
|
|
* @param isTrusted true if triggered by a trusted key event
|
|
|
|
*/
|
2016-05-11 15:56:42 +03:00
|
|
|
async HandleAccessKey(WidgetKeyboardEvent event,
|
2017-07-06 11:36:19 +03:00
|
|
|
uint32_t[] charCodes);
|
2015-09-18 15:19:13 +03:00
|
|
|
|
Bug 1257759 part.5 PluginInstanceChild should post received native key event to chrome process if the key combination may be a shortcut key r=jimm
When PluginInstanceChild receives native key events, it should post the events to the chrome process first for checking if the key combination is reserved. However, posting all key events to the chrome process may make damage to the performance of text input. Therefore, this patch starts to post a key event whose key combination may be a shortcut key. However, for avoiding to shuffle the event order, it posts following key events until all posted key events are handled by the chrome process.
For receiving response from widget, this patch defines nsIKeyEventInPluginCallback. It's specified by nsIWidget::OnWindowedPluginKeyEvent() for ensuring the caller will receive the reply. Basically, the caller of nsIWidget::OnWindowedPluginKeyEvent() should reply to the child process. However, if the widget is a PuppetWidget, it cannot return the result synchronously. Therefore, PuppetWidget::OnWindowedPluginKeyEvent() returns NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY and stores the callback to mKeyEventInPluginCallbacks. Then, TabParent::HandledWindowedPluginKeyEvent() will call PuppetWidget::HandledWindowedPluginKeyEvent().
MozReview-Commit-ID: G6brOU26NwQ
--HG--
extra : rebase_source : 8140456de278956d2d594e85c7b397ae366b4962
2016-04-19 14:09:37 +03:00
|
|
|
/**
|
|
|
|
* HandledWindowedPluginKeyEvent() is always called after posting a native
|
|
|
|
* key event with OnWindowedPluginKeyEvent().
|
|
|
|
*
|
|
|
|
* @param aKeyEventData The key event which was posted to the parent
|
|
|
|
* process.
|
|
|
|
* @param aIsConsumed true if aKeyEventData is consumed in the
|
|
|
|
* parent process. Otherwise, false.
|
|
|
|
*/
|
|
|
|
async HandledWindowedPluginKeyEvent(NativeEventData aKeyEventData,
|
|
|
|
bool aIsConsumed);
|
2020-09-01 14:00:36 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Tell the child to create a print preview document in this browser, or
|
|
|
|
* to update the existing print preview document with new print settings.
|
|
|
|
*
|
|
|
|
* @param aPrintData The serialized print settings to use to layout the
|
|
|
|
* print preview document.
|
|
|
|
* @param aSourceOuterWindowID Optionally, the ID of the nsGlobalWindowOuter
|
|
|
|
* that contains the document from which the print preview is to be
|
|
|
|
* generated. This should only be passed on the first call. It should
|
|
|
|
* not be passed for any subsequent calls that are made to update the
|
|
|
|
* existing print preview document with a new print settings object.
|
|
|
|
*/
|
|
|
|
async PrintPreview(PrintData aPrintData,
|
|
|
|
uint64_t? aSourceOuterWindowID) returns (PrintPreviewResultInfo aInfo);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Inform the print preview document that we're done with it.
|
|
|
|
*/
|
|
|
|
async ExitPrintPreview();
|
Bug 1257759 part.5 PluginInstanceChild should post received native key event to chrome process if the key combination may be a shortcut key r=jimm
When PluginInstanceChild receives native key events, it should post the events to the chrome process first for checking if the key combination is reserved. However, posting all key events to the chrome process may make damage to the performance of text input. Therefore, this patch starts to post a key event whose key combination may be a shortcut key. However, for avoiding to shuffle the event order, it posts following key events until all posted key events are handled by the chrome process.
For receiving response from widget, this patch defines nsIKeyEventInPluginCallback. It's specified by nsIWidget::OnWindowedPluginKeyEvent() for ensuring the caller will receive the reply. Basically, the caller of nsIWidget::OnWindowedPluginKeyEvent() should reply to the child process. However, if the widget is a PuppetWidget, it cannot return the result synchronously. Therefore, PuppetWidget::OnWindowedPluginKeyEvent() returns NS_SUCCESS_EVENT_HANDLED_ASYNCHRONOUSLY and stores the callback to mKeyEventInPluginCallbacks. Then, TabParent::HandledWindowedPluginKeyEvent() will call PuppetWidget::HandledWindowedPluginKeyEvent().
MozReview-Commit-ID: G6brOU26NwQ
--HG--
extra : rebase_source : 8140456de278956d2d594e85c7b397ae366b4962
2016-04-19 14:09:37 +03:00
|
|
|
|
2016-05-16 12:40:54 +03:00
|
|
|
/**
|
|
|
|
* Tell the child to print the current page with the given settings.
|
|
|
|
*
|
2016-05-25 09:41:54 +03:00
|
|
|
* @param aOuterWindowID the ID of the outer window to print
|
2016-05-16 12:40:54 +03:00
|
|
|
* @param aPrintData the serialized settings to print with
|
|
|
|
*/
|
2016-05-25 09:41:54 +03:00
|
|
|
async Print(uint64_t aOuterWindowID, PrintData aPrintData);
|
2016-05-16 12:40:54 +03:00
|
|
|
|
2016-09-15 22:37:04 +03:00
|
|
|
/**
|
|
|
|
* Update the child with the tab's current top-level native window handle.
|
|
|
|
* This is used by a11y objects who must expose their native window.
|
|
|
|
*
|
|
|
|
* @param aNewHandle The native window handle of the tab's top-level window.
|
|
|
|
*/
|
|
|
|
async UpdateNativeWindowHandle(uintptr_t aNewHandle);
|
|
|
|
|
2018-09-15 11:26:33 +03:00
|
|
|
/**
|
2019-04-10 01:39:01 +03:00
|
|
|
* Tell the BrowserChild to allow scripts in the docshell to close the window.
|
2018-09-15 11:26:33 +03:00
|
|
|
*/
|
|
|
|
async AllowScriptsToClose();
|
|
|
|
|
2017-06-13 20:37:31 +03:00
|
|
|
/**
|
|
|
|
* Pass the current handle for the current native widget to the content
|
|
|
|
* process, so it can be used by PuppetWidget.
|
|
|
|
*/
|
|
|
|
async SetWidgetNativeData(WindowsHandle aHandle);
|
|
|
|
|
2020-02-06 22:07:56 +03:00
|
|
|
async WillChangeProcess() returns (bool success);
|
Bug 1581855:Part 2 - Present VR output to VR Host r=kip,jrmuizel,sotaro,bryce
This change is a continuation of Part 1 (Bug 1570128), where the 2D content rendered by Firefox for Firefox Reality on Desktop is marshalled through VRHost so that it can be presented in a VR environment.
A new class, FxrOutputHandler, is created to manage creating a sharable texture, sharing it through VRShMem, and updating it when content updates. This class updates content with both WebRender and conventional rendering output.
This initial iteration of FxrOutputHandler does not have synchronization between reading and writing this shared texture across processes. A subsequent fix (Bug 1581881) is pending, which will reuse WebVR code to manage writing to and reading from a pool of textures.
This also presents issues with rendering protected media, so an additional class, FxrWindowManager, is created to manage all windows created for Firefox Reality on Desktop so that it can inform whether or not protected media can be presented.
The automated manual tests in vrhosttest.cpp now show the real shared texture handle rather than a fake value, which shows that marshaling succeeded.
Differential Revision: https://phabricator.services.mozilla.com/D46179
--HG--
extra : moz-landing-system : lando
2019-09-26 15:50:44 +03:00
|
|
|
|
2018-11-16 20:29:57 +03:00
|
|
|
parent:
|
Bug 1581855:Part 2 - Present VR output to VR Host r=kip,jrmuizel,sotaro,bryce
This change is a continuation of Part 1 (Bug 1570128), where the 2D content rendered by Firefox for Firefox Reality on Desktop is marshalled through VRHost so that it can be presented in a VR environment.
A new class, FxrOutputHandler, is created to manage creating a sharable texture, sharing it through VRShMem, and updating it when content updates. This class updates content with both WebRender and conventional rendering output.
This initial iteration of FxrOutputHandler does not have synchronization between reading and writing this shared texture across processes. A subsequent fix (Bug 1581881) is pending, which will reuse WebVR code to manage writing to and reading from a pool of textures.
This also presents issues with rendering protected media, so an additional class, FxrWindowManager, is created to manage all windows created for Firefox Reality on Desktop so that it can inform whether or not protected media can be presented.
The automated manual tests in vrhosttest.cpp now show the real shared texture handle rather than a fake value, which shows that marshaling succeeded.
Differential Revision: https://phabricator.services.mozilla.com/D46179
--HG--
extra : moz-landing-system : lando
2019-09-26 15:50:44 +03:00
|
|
|
/**
|
|
|
|
* Fetches whether this window supports protected media, which is sent back in response.
|
|
|
|
*/
|
|
|
|
async IsWindowSupportingProtectedMedia(uint64_t aOuterWindowID) returns(bool isSupported);
|
|
|
|
|
2019-12-04 16:50:01 +03:00
|
|
|
/**
|
|
|
|
* Fetches whether this window supports WebVR, which is sent back in response.
|
|
|
|
*/
|
2019-11-06 17:53:08 +03:00
|
|
|
async IsWindowSupportingWebVR(uint64_t aOuterWindowID) returns(bool isSupported);
|
|
|
|
|
2018-11-16 20:29:57 +03:00
|
|
|
/** Records a history visit. */
|
2020-03-29 16:56:16 +03:00
|
|
|
async VisitURI(nsIURI aURI, nsIURI aLastVisitedURI,
|
2018-11-16 20:29:57 +03:00
|
|
|
uint32_t aFlags);
|
|
|
|
|
2018-11-16 20:32:02 +03:00
|
|
|
/** Fetches the visited status for an array of URIs (Android-only). */
|
2020-03-29 16:56:16 +03:00
|
|
|
async QueryVisitedState(nsIURI[] aURIs);
|
2018-11-16 20:32:02 +03:00
|
|
|
|
2019-08-08 19:06:56 +03:00
|
|
|
/**
|
|
|
|
* Construct a new WindowGlobal for an existing global in the content process
|
|
|
|
*/
|
|
|
|
async NewWindowGlobal(ManagedEndpoint<PWindowGlobalParent> aEndpoint,
|
|
|
|
WindowGlobalInit aInit);
|
|
|
|
|
2010-08-06 02:11:23 +04:00
|
|
|
/*
|
|
|
|
* FIXME: write protocol!
|
|
|
|
|
|
|
|
state LIVE:
|
|
|
|
send LoadURL goto LIVE;
|
|
|
|
//etc.
|
|
|
|
send Destroy goto DYING;
|
|
|
|
|
|
|
|
state DYING:
|
|
|
|
discard send blah;
|
|
|
|
// etc.
|
|
|
|
recv __delete__;
|
|
|
|
*/
|
2009-08-26 03:07:22 +04:00
|
|
|
};
|
|
|
|
|
2009-09-10 02:00:14 +04:00
|
|
|
}
|
2012-07-30 18:58:26 +04:00
|
|
|
}
|