2011-10-01 20:14:36 +04:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 2; -*- */
|
2009-08-18 23:05:15 +04:00
|
|
|
/* vim: set sw=4 ts=8 et tw=80 : */
|
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-07-01 00:39:22 +04:00
|
|
|
|
2010-08-21 03:24:41 +04:00
|
|
|
#ifndef mozilla_dom_TabChild_h
|
|
|
|
#define mozilla_dom_TabChild_h
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2010-07-19 22:33:33 +04:00
|
|
|
#include "mozilla/dom/PBrowserChild.h"
|
2009-07-01 00:39:22 +04:00
|
|
|
#include "nsIWebNavigation.h"
|
|
|
|
#include "nsCOMPtr.h"
|
2009-11-05 21:14:22 +03:00
|
|
|
#include "nsAutoPtr.h"
|
|
|
|
#include "nsIWebBrowserChrome2.h"
|
2012-06-10 02:15:12 +04:00
|
|
|
#include "nsIEmbeddingSiteWindow.h"
|
2009-11-05 21:14:22 +03:00
|
|
|
#include "nsIWebBrowserChromeFocus.h"
|
2009-11-17 17:22:23 +03:00
|
|
|
#include "nsIDOMEventListener.h"
|
2010-01-01 04:34:06 +03:00
|
|
|
#include "nsIInterfaceRequestor.h"
|
2010-01-01 04:35:55 +03:00
|
|
|
#include "nsIWindowProvider.h"
|
2010-02-20 20:05:20 +03:00
|
|
|
#include "nsIDOMWindow.h"
|
2010-03-03 23:30:25 +03:00
|
|
|
#include "nsIDocShell.h"
|
2013-09-24 01:30:40 +04:00
|
|
|
#include "nsIInterfaceRequestorUtils.h"
|
2010-02-20 20:05:20 +03:00
|
|
|
#include "nsFrameMessageManager.h"
|
2012-09-29 06:18:18 +04:00
|
|
|
#include "nsIWebProgressListener.h"
|
2010-08-06 02:11:23 +04:00
|
|
|
#include "nsIPresShell.h"
|
2010-02-20 20:05:20 +03:00
|
|
|
#include "nsIScriptObjectPrincipal.h"
|
2010-03-26 21:39:39 +03:00
|
|
|
#include "nsWeakReference.h"
|
2010-05-13 21:44:51 +04:00
|
|
|
#include "nsITabChild.h"
|
2014-01-23 00:27:23 +04:00
|
|
|
#include "nsITooltipListener.h"
|
2012-06-15 06:31:55 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".
There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.
I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 22:32:37 +04:00
|
|
|
#include "mozilla/dom/TabContext.h"
|
2014-04-01 10:13:50 +04:00
|
|
|
#include "mozilla/DOMEventTargetHelper.h"
|
2014-03-18 08:48:21 +04:00
|
|
|
#include "mozilla/EventDispatcher.h"
|
2013-09-25 15:21:16 +04:00
|
|
|
#include "mozilla/EventForwards.h"
|
2013-10-19 00:57:55 +04:00
|
|
|
#include "mozilla/layers/CompositorTypes.h"
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2013-02-16 02:27:21 +04:00
|
|
|
class nsICachedFileDescriptorListener;
|
2013-06-15 01:47:56 +04:00
|
|
|
class nsIDOMWindowUtils;
|
2010-03-24 13:47:18 +03:00
|
|
|
|
2009-07-01 00:39:22 +04:00
|
|
|
namespace mozilla {
|
2010-08-21 03:24:41 +04:00
|
|
|
namespace layout {
|
|
|
|
class RenderFrameChild;
|
|
|
|
}
|
|
|
|
|
2014-04-17 15:54:25 +04:00
|
|
|
namespace layers {
|
2014-04-09 23:16:16 +04:00
|
|
|
class ActiveElementManager;
|
|
|
|
}
|
|
|
|
|
2014-04-22 00:40:09 +04:00
|
|
|
namespace widget {
|
|
|
|
struct AutoCacheNativeKeyCommands;
|
|
|
|
}
|
|
|
|
|
2009-08-12 20:18:08 +04:00
|
|
|
namespace dom {
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2009-11-17 17:22:23 +03:00
|
|
|
class TabChild;
|
2012-08-02 10:02:29 +04:00
|
|
|
class ClonedMessageData;
|
2014-03-25 06:28:46 +04:00
|
|
|
class TabChildBase;
|
2009-11-17 17:22:23 +03:00
|
|
|
|
2014-04-01 10:13:50 +04:00
|
|
|
class TabChildGlobal : public DOMEventTargetHelper,
|
2010-02-20 20:05:20 +03:00
|
|
|
public nsIContentFrameMessageManager,
|
2013-12-12 05:51:56 +04:00
|
|
|
public nsIScriptObjectPrincipal,
|
|
|
|
public nsIGlobalObject
|
2010-02-20 20:05:20 +03:00
|
|
|
{
|
|
|
|
public:
|
2014-03-25 06:28:46 +04:00
|
|
|
TabChildGlobal(TabChildBase* aTabChild);
|
2012-04-27 00:56:46 +04:00
|
|
|
void Init();
|
2010-02-20 20:05:20 +03:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2014-04-01 10:13:50 +04:00
|
|
|
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(TabChildGlobal, DOMEventTargetHelper)
|
2012-08-27 18:13:02 +04:00
|
|
|
NS_FORWARD_SAFE_NSIMESSAGELISTENERMANAGER(mMessageManager)
|
|
|
|
NS_FORWARD_SAFE_NSIMESSAGESENDER(mMessageManager)
|
2011-10-01 20:14:36 +04:00
|
|
|
NS_IMETHOD SendSyncMessage(const nsAString& aMessageName,
|
2014-01-09 21:39:36 +04:00
|
|
|
JS::Handle<JS::Value> aObject,
|
|
|
|
JS::Handle<JS::Value> aRemote,
|
2013-11-06 21:21:15 +04:00
|
|
|
nsIPrincipal* aPrincipal,
|
2011-10-01 20:14:36 +04:00
|
|
|
JSContext* aCx,
|
2012-08-22 19:56:38 +04:00
|
|
|
uint8_t aArgc,
|
2014-01-09 21:39:36 +04:00
|
|
|
JS::MutableHandle<JS::Value> aRetval)
|
2010-02-20 20:05:20 +03:00
|
|
|
{
|
2011-10-01 20:14:36 +04:00
|
|
|
return mMessageManager
|
2013-11-06 21:21:15 +04:00
|
|
|
? mMessageManager->SendSyncMessage(aMessageName, aObject, aRemote,
|
|
|
|
aPrincipal, aCx, aArgc, aRetval)
|
2011-10-01 20:14:36 +04:00
|
|
|
: NS_ERROR_NULL_POINTER;
|
2010-02-20 20:05:20 +03:00
|
|
|
}
|
2013-10-01 20:15:06 +04:00
|
|
|
NS_IMETHOD SendRpcMessage(const nsAString& aMessageName,
|
2014-01-09 21:39:36 +04:00
|
|
|
JS::Handle<JS::Value> aObject,
|
|
|
|
JS::Handle<JS::Value> aRemote,
|
2013-11-06 21:21:15 +04:00
|
|
|
nsIPrincipal* aPrincipal,
|
2013-10-01 20:15:06 +04:00
|
|
|
JSContext* aCx,
|
|
|
|
uint8_t aArgc,
|
2014-01-09 21:39:36 +04:00
|
|
|
JS::MutableHandle<JS::Value> aRetval)
|
2013-10-01 20:15:06 +04:00
|
|
|
{
|
|
|
|
return mMessageManager
|
2013-11-06 21:21:15 +04:00
|
|
|
? mMessageManager->SendRpcMessage(aMessageName, aObject, aRemote,
|
|
|
|
aPrincipal, aCx, aArgc, aRetval)
|
2013-10-01 20:15:06 +04:00
|
|
|
: NS_ERROR_NULL_POINTER;
|
|
|
|
}
|
2013-06-05 20:15:48 +04:00
|
|
|
NS_IMETHOD GetContent(nsIDOMWindow** aContent) MOZ_OVERRIDE;
|
|
|
|
NS_IMETHOD GetDocShell(nsIDocShell** aDocShell) MOZ_OVERRIDE;
|
|
|
|
NS_IMETHOD Dump(const nsAString& aStr) MOZ_OVERRIDE
|
2010-02-20 20:05:20 +03:00
|
|
|
{
|
|
|
|
return mMessageManager ? mMessageManager->Dump(aStr) : NS_OK;
|
|
|
|
}
|
2013-06-05 20:15:48 +04:00
|
|
|
NS_IMETHOD PrivateNoteIntentionalCrash() MOZ_OVERRIDE;
|
2011-06-25 13:52:00 +04:00
|
|
|
NS_IMETHOD Btoa(const nsAString& aBinaryData,
|
2013-06-05 20:15:48 +04:00
|
|
|
nsAString& aAsciiBase64String) MOZ_OVERRIDE;
|
2011-06-25 13:52:00 +04:00
|
|
|
NS_IMETHOD Atob(const nsAString& aAsciiString,
|
2013-06-05 20:15:48 +04:00
|
|
|
nsAString& aBinaryData) MOZ_OVERRIDE;
|
2010-02-20 20:05:20 +03:00
|
|
|
|
|
|
|
NS_IMETHOD AddEventListener(const nsAString& aType,
|
|
|
|
nsIDOMEventListener* aListener,
|
2011-09-29 10:19:26 +04:00
|
|
|
bool aUseCapture)
|
2010-02-20 20:05:20 +03:00
|
|
|
{
|
|
|
|
// By default add listeners only for trusted events!
|
2014-04-01 10:13:50 +04:00
|
|
|
return DOMEventTargetHelper::AddEventListener(aType, aListener,
|
|
|
|
aUseCapture, false, 2);
|
2010-02-20 20:05:20 +03:00
|
|
|
}
|
2014-04-01 10:13:50 +04:00
|
|
|
using DOMEventTargetHelper::AddEventListener;
|
2010-02-20 20:05:20 +03:00
|
|
|
NS_IMETHOD AddEventListener(const nsAString& aType,
|
|
|
|
nsIDOMEventListener* aListener,
|
2011-09-29 10:19:26 +04:00
|
|
|
bool aUseCapture, bool aWantsUntrusted,
|
2013-06-05 20:15:48 +04:00
|
|
|
uint8_t optional_argc) MOZ_OVERRIDE
|
2010-02-20 20:05:20 +03:00
|
|
|
{
|
2014-04-01 10:13:50 +04:00
|
|
|
return DOMEventTargetHelper::AddEventListener(aType, aListener,
|
|
|
|
aUseCapture,
|
|
|
|
aWantsUntrusted,
|
|
|
|
optional_argc);
|
2010-02-20 20:05:20 +03:00
|
|
|
}
|
|
|
|
|
2013-08-09 04:16:47 +04:00
|
|
|
nsresult
|
2014-03-18 08:48:19 +04:00
|
|
|
PreHandleEvent(EventChainPreVisitor& aVisitor)
|
2013-08-09 04:16:47 +04:00
|
|
|
{
|
|
|
|
aVisitor.mForceContentDispatch = true;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2013-06-05 20:15:48 +04:00
|
|
|
virtual JSContext* GetJSContextForEventHandlers() MOZ_OVERRIDE;
|
|
|
|
virtual nsIPrincipal* GetPrincipal() MOZ_OVERRIDE;
|
2013-12-12 05:51:56 +04:00
|
|
|
virtual JSObject* GetGlobalJSObject() MOZ_OVERRIDE;
|
2010-02-20 20:05:20 +03:00
|
|
|
|
|
|
|
nsCOMPtr<nsIContentFrameMessageManager> mMessageManager;
|
2014-03-25 06:28:46 +04:00
|
|
|
TabChildBase* mTabChild;
|
2010-02-20 20:05:20 +03:00
|
|
|
};
|
|
|
|
|
2012-06-15 06:31:55 +04:00
|
|
|
class ContentListener MOZ_FINAL : public nsIDOMEventListener
|
2009-11-17 17:22:23 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ContentListener(TabChild* aTabChild) : mTabChild(aTabChild) {}
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIDOMEVENTLISTENER
|
|
|
|
protected:
|
|
|
|
TabChild* mTabChild;
|
|
|
|
};
|
|
|
|
|
2014-03-25 06:28:46 +04:00
|
|
|
// This is base clase which helps to share Viewport and touch related functionality
|
|
|
|
// between b2g/android FF/embedlite clients implementation.
|
|
|
|
// It make sense to place in this class all helper functions, and functionality which could be shared between
|
|
|
|
// Cross-process/Cross-thread implmentations.
|
2014-04-23 01:26:45 +04:00
|
|
|
class TabChildBase : public nsISupports,
|
|
|
|
public nsFrameScriptExecutor,
|
2014-03-25 06:28:46 +04:00
|
|
|
public ipc::MessageManagerCallback
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabChildBase();
|
2014-04-23 01:26:45 +04:00
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
|
|
|
NS_DECL_CYCLE_COLLECTION_CLASS(TabChildBase)
|
2014-03-25 06:28:46 +04:00
|
|
|
|
|
|
|
virtual nsIWebNavigation* WebNavigation() = 0;
|
|
|
|
virtual nsIWidget* WebWidget() = 0;
|
|
|
|
nsIPrincipal* GetPrincipal() { return mPrincipal; }
|
|
|
|
bool IsAsyncPanZoomEnabled();
|
|
|
|
// Recalculates the display state, including the CSS
|
|
|
|
// viewport. This should be called whenever we believe the
|
|
|
|
// viewport data on a document may have changed. If it didn't
|
|
|
|
// change, this function doesn't do anything. However, it should
|
|
|
|
// not be called all the time as it is fairly expensive.
|
|
|
|
bool HandlePossibleViewportChange();
|
|
|
|
virtual bool DoUpdateZoomConstraints(const uint32_t& aPresShellId,
|
|
|
|
const mozilla::layers::FrameMetrics::ViewID& aViewId,
|
|
|
|
const bool& aIsRoot,
|
|
|
|
const mozilla::layers::ZoomConstraints& aConstraints) = 0;
|
|
|
|
|
|
|
|
nsEventStatus DispatchSynthesizedMouseEvent(uint32_t aMsg, uint64_t aTime,
|
|
|
|
const LayoutDevicePoint& aRefPoint,
|
|
|
|
nsIWidget* aWidget);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
CSSSize GetPageSize(nsCOMPtr<nsIDocument> aDocument, const CSSSize& aViewport);
|
|
|
|
|
|
|
|
// Get the DOMWindowUtils for the top-level window in this tab.
|
|
|
|
already_AddRefed<nsIDOMWindowUtils> GetDOMWindowUtils();
|
|
|
|
// Get the Document for the top-level window in this tab.
|
|
|
|
already_AddRefed<nsIDocument> GetDocument();
|
|
|
|
|
|
|
|
// Wrapper for nsIDOMWindowUtils.setCSSViewport(). This updates some state
|
|
|
|
// variables local to this class before setting it.
|
|
|
|
void SetCSSViewport(const CSSSize& aSize);
|
|
|
|
|
|
|
|
// Wraps up a JSON object as a structured clone and sends it to the browser
|
|
|
|
// chrome script.
|
|
|
|
//
|
|
|
|
// XXX/bug 780335: Do the work the browser chrome script does in C++ instead
|
|
|
|
// so we don't need things like this.
|
|
|
|
void DispatchMessageManagerMessage(const nsAString& aMessageName,
|
|
|
|
const nsAString& aJSONData);
|
|
|
|
|
|
|
|
nsEventStatus DispatchWidgetEvent(WidgetGUIEvent& event);
|
|
|
|
|
|
|
|
bool HasValidInnerSize();
|
|
|
|
void InitializeRootMetrics();
|
|
|
|
|
|
|
|
mozilla::layers::FrameMetrics ProcessUpdateFrame(const mozilla::layers::FrameMetrics& aFrameMetrics);
|
|
|
|
|
|
|
|
bool UpdateFrameHandler(const mozilla::layers::FrameMetrics& aFrameMetrics);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
float mOldViewportWidth;
|
|
|
|
bool mContentDocumentIsDisplayed;
|
|
|
|
nsRefPtr<TabChildGlobal> mTabChildGlobal;
|
|
|
|
ScreenIntSize mInnerSize;
|
|
|
|
mozilla::layers::FrameMetrics mLastRootMetrics;
|
|
|
|
mozilla::layout::ScrollingBehavior mScrolling;
|
|
|
|
};
|
|
|
|
|
2010-07-19 22:33:33 +04:00
|
|
|
class TabChild : public PBrowserChild,
|
2009-11-05 21:14:22 +03:00
|
|
|
public nsIWebBrowserChrome2,
|
2012-06-10 02:15:12 +04:00
|
|
|
public nsIEmbeddingSiteWindow,
|
2010-01-01 04:34:06 +03:00
|
|
|
public nsIWebBrowserChromeFocus,
|
2010-01-01 04:35:55 +03:00
|
|
|
public nsIInterfaceRequestor,
|
2010-03-26 21:39:39 +03:00
|
|
|
public nsIWindowProvider,
|
2012-09-29 06:18:18 +04:00
|
|
|
public nsIDOMEventListener,
|
|
|
|
public nsIWebProgressListener,
|
2010-05-13 21:44:51 +04:00
|
|
|
public nsSupportsWeakReference,
|
2012-08-09 00:37:57 +04:00
|
|
|
public nsITabChild,
|
2012-09-28 09:43:12 +04:00
|
|
|
public nsIObserver,
|
2014-01-23 00:27:23 +04:00
|
|
|
public TabContext,
|
2014-03-25 06:28:46 +04:00
|
|
|
public nsITooltipListener,
|
|
|
|
public TabChildBase
|
2009-07-01 00:39:22 +04:00
|
|
|
{
|
2012-08-02 10:02:29 +04:00
|
|
|
typedef mozilla::dom::ClonedMessageData ClonedMessageData;
|
2012-11-28 00:43:52 +04:00
|
|
|
typedef mozilla::layout::RenderFrameChild RenderFrameChild;
|
|
|
|
typedef mozilla::layout::ScrollingBehavior ScrollingBehavior;
|
2014-04-17 15:54:25 +04:00
|
|
|
typedef mozilla::layers::ActiveElementManager ActiveElementManager;
|
2010-08-21 03:24:41 +04:00
|
|
|
|
2009-07-01 00:39:22 +04:00
|
|
|
public:
|
2012-08-29 19:26:18 +04:00
|
|
|
/**
|
|
|
|
* This is expected to be called off the critical path to content
|
|
|
|
* startup. This is an opportunity to load things that are slow
|
|
|
|
* on the critical path.
|
2012-06-22 05:17:52 +04:00
|
|
|
*/
|
2012-08-29 19:26:18 +04:00
|
|
|
static void PreloadSlowThings();
|
|
|
|
|
|
|
|
/** Return a TabChild with the given attributes. */
|
2013-07-10 21:07:51 +04:00
|
|
|
static already_AddRefed<TabChild>
|
|
|
|
Create(ContentChild* aManager, const TabContext& aContext, uint32_t aChromeFlags);
|
2012-08-29 19:26:18 +04:00
|
|
|
|
2009-07-01 00:39:22 +04:00
|
|
|
virtual ~TabChild();
|
2009-11-05 21:14:22 +03:00
|
|
|
|
2012-09-05 20:23:45 +04:00
|
|
|
bool IsRootContentDocument();
|
|
|
|
|
2009-11-05 21:14:22 +03:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIWEBBROWSERCHROME
|
|
|
|
NS_DECL_NSIWEBBROWSERCHROME2
|
|
|
|
NS_DECL_NSIEMBEDDINGSITEWINDOW
|
|
|
|
NS_DECL_NSIWEBBROWSERCHROMEFOCUS
|
2010-01-01 04:34:06 +03:00
|
|
|
NS_DECL_NSIINTERFACEREQUESTOR
|
2010-01-01 04:35:55 +03:00
|
|
|
NS_DECL_NSIWINDOWPROVIDER
|
2012-09-29 06:18:18 +04:00
|
|
|
NS_DECL_NSIDOMEVENTLISTENER
|
|
|
|
NS_DECL_NSIWEBPROGRESSLISTENER
|
2012-05-28 13:27:25 +04:00
|
|
|
NS_DECL_NSITABCHILD
|
2012-08-09 00:37:57 +04:00
|
|
|
NS_DECL_NSIOBSERVER
|
2014-01-23 00:27:23 +04:00
|
|
|
NS_DECL_NSITOOLTIPLISTENER
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2012-09-28 09:43:12 +04:00
|
|
|
/**
|
|
|
|
* MessageManagerCallback methods that we override.
|
|
|
|
*/
|
2013-10-01 20:15:06 +04:00
|
|
|
virtual bool DoSendBlockingMessage(JSContext* aCx,
|
|
|
|
const nsAString& aMessage,
|
|
|
|
const mozilla::dom::StructuredCloneData& aData,
|
|
|
|
JS::Handle<JSObject *> aCpows,
|
2013-11-06 21:21:15 +04:00
|
|
|
nsIPrincipal* aPrincipal,
|
2013-10-01 20:15:06 +04:00
|
|
|
InfallibleTArray<nsString>* aJSONRetVal,
|
|
|
|
bool aIsSync) MOZ_OVERRIDE;
|
2013-07-11 02:05:39 +04:00
|
|
|
virtual bool DoSendAsyncMessage(JSContext* aCx,
|
|
|
|
const nsAString& aMessage,
|
|
|
|
const mozilla::dom::StructuredCloneData& aData,
|
2013-11-06 21:21:15 +04:00
|
|
|
JS::Handle<JSObject *> aCpows,
|
|
|
|
nsIPrincipal* aPrincipal) MOZ_OVERRIDE;
|
2014-03-25 06:28:46 +04:00
|
|
|
virtual bool DoUpdateZoomConstraints(const uint32_t& aPresShellId,
|
|
|
|
const ViewID& aViewId,
|
|
|
|
const bool& aIsRoot,
|
|
|
|
const ZoomConstraints& aConstraints) MOZ_OVERRIDE;
|
2014-01-17 21:46:41 +04:00
|
|
|
virtual bool RecvLoadURL(const nsCString& uri) MOZ_OVERRIDE;
|
2013-02-16 02:27:21 +04:00
|
|
|
virtual bool RecvCacheFileDescriptor(const nsString& aPath,
|
|
|
|
const FileDescriptor& aFileDescriptor)
|
|
|
|
MOZ_OVERRIDE;
|
2014-01-17 21:46:41 +04:00
|
|
|
virtual bool RecvShow(const nsIntSize& size) MOZ_OVERRIDE;
|
|
|
|
virtual bool RecvUpdateDimensions(const nsRect& rect,
|
|
|
|
const nsIntSize& size,
|
|
|
|
const ScreenOrientation& orientation) MOZ_OVERRIDE;
|
|
|
|
virtual bool RecvUpdateFrame(const mozilla::layers::FrameMetrics& aFrameMetrics) MOZ_OVERRIDE;
|
2014-02-06 02:43:20 +04:00
|
|
|
virtual bool RecvAcknowledgeScrollUpdate(const ViewID& aScrollId,
|
|
|
|
const uint32_t& aScrollGeneration) MOZ_OVERRIDE;
|
2014-03-12 23:27:45 +04:00
|
|
|
virtual bool RecvHandleDoubleTap(const CSSPoint& aPoint,
|
2014-02-07 21:13:50 +04:00
|
|
|
const mozilla::layers::ScrollableLayerGuid& aGuid) MOZ_OVERRIDE;
|
2014-03-12 23:27:45 +04:00
|
|
|
virtual bool RecvHandleSingleTap(const CSSPoint& aPoint,
|
2014-02-07 21:13:50 +04:00
|
|
|
const mozilla::layers::ScrollableLayerGuid& aGuid) MOZ_OVERRIDE;
|
2014-03-12 23:27:45 +04:00
|
|
|
virtual bool RecvHandleLongTap(const CSSPoint& aPoint,
|
2014-02-07 21:13:50 +04:00
|
|
|
const mozilla::layers::ScrollableLayerGuid& aGuid) MOZ_OVERRIDE;
|
2014-03-12 23:27:45 +04:00
|
|
|
virtual bool RecvHandleLongTapUp(const CSSPoint& aPoint,
|
2014-02-07 21:13:50 +04:00
|
|
|
const mozilla::layers::ScrollableLayerGuid& aGuid) MOZ_OVERRIDE;
|
2014-04-15 21:39:20 +04:00
|
|
|
virtual bool RecvNotifyAPZStateChange(const ViewID& aViewId,
|
|
|
|
const APZStateChange& aChange,
|
|
|
|
const int& aArg) MOZ_OVERRIDE;
|
2014-01-17 21:46:41 +04:00
|
|
|
virtual bool RecvActivate() MOZ_OVERRIDE;
|
|
|
|
virtual bool RecvDeactivate() MOZ_OVERRIDE;
|
2010-07-19 22:33:33 +04:00
|
|
|
virtual bool RecvMouseEvent(const nsString& aType,
|
|
|
|
const float& aX,
|
|
|
|
const float& aY,
|
2012-08-22 19:56:38 +04:00
|
|
|
const int32_t& aButton,
|
|
|
|
const int32_t& aClickCount,
|
|
|
|
const int32_t& aModifiers,
|
2014-01-17 21:46:41 +04:00
|
|
|
const bool& aIgnoreRootScrollFrame) MOZ_OVERRIDE;
|
|
|
|
virtual bool RecvRealMouseEvent(const mozilla::WidgetMouseEvent& event) MOZ_OVERRIDE;
|
2014-03-20 19:46:29 +04:00
|
|
|
virtual bool RecvRealKeyEvent(const mozilla::WidgetKeyboardEvent& event,
|
|
|
|
const MaybeNativeKeyBinding& aBindings) MOZ_OVERRIDE;
|
2014-01-17 21:46:41 +04:00
|
|
|
virtual bool RecvMouseWheelEvent(const mozilla::WidgetWheelEvent& event) MOZ_OVERRIDE;
|
2013-11-13 22:20:31 +04:00
|
|
|
virtual bool RecvRealTouchEvent(const WidgetTouchEvent& aEvent,
|
2014-01-17 21:46:41 +04:00
|
|
|
const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE;
|
2013-11-13 22:20:31 +04:00
|
|
|
virtual bool RecvRealTouchMoveEvent(const WidgetTouchEvent& aEvent,
|
2014-01-17 21:46:41 +04:00
|
|
|
const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE;
|
2010-07-19 22:33:33 +04:00
|
|
|
virtual bool RecvKeyEvent(const nsString& aType,
|
2012-08-22 19:56:38 +04:00
|
|
|
const int32_t& aKeyCode,
|
|
|
|
const int32_t& aCharCode,
|
|
|
|
const int32_t& aModifiers,
|
2014-01-17 21:46:41 +04:00
|
|
|
const bool& aPreventDefault) MOZ_OVERRIDE;
|
|
|
|
virtual bool RecvCompositionEvent(const mozilla::WidgetCompositionEvent& event) MOZ_OVERRIDE;
|
|
|
|
virtual bool RecvTextEvent(const mozilla::WidgetTextEvent& event) MOZ_OVERRIDE;
|
|
|
|
virtual bool RecvSelectionEvent(const mozilla::WidgetSelectionEvent& event) MOZ_OVERRIDE;
|
|
|
|
virtual bool RecvActivateFrameEvent(const nsString& aType, const bool& capture) MOZ_OVERRIDE;
|
|
|
|
virtual bool RecvLoadRemoteScript(const nsString& aURL,
|
|
|
|
const bool& aRunInGlobalScope) MOZ_OVERRIDE;
|
2010-07-19 22:33:33 +04:00
|
|
|
virtual bool RecvAsyncMessage(const nsString& aMessage,
|
2013-07-11 02:05:39 +04:00
|
|
|
const ClonedMessageData& aData,
|
2013-11-06 21:21:15 +04:00
|
|
|
const InfallibleTArray<CpowEntry>& aCpows,
|
|
|
|
const IPC::Principal& aPrincipal) MOZ_OVERRIDE;
|
2010-10-27 02:20:53 +04:00
|
|
|
|
|
|
|
virtual PDocumentRendererChild*
|
2013-12-26 22:06:53 +04:00
|
|
|
AllocPDocumentRendererChild(const nsRect& documentRect, const gfx::Matrix& transform,
|
2013-07-08 19:48:39 +04:00
|
|
|
const nsString& bgcolor,
|
|
|
|
const uint32_t& renderFlags, const bool& flushLayout,
|
2014-01-17 21:46:41 +04:00
|
|
|
const nsIntSize& renderSize) MOZ_OVERRIDE;
|
|
|
|
virtual bool DeallocPDocumentRendererChild(PDocumentRendererChild* actor) MOZ_OVERRIDE;
|
2010-10-27 02:20:53 +04:00
|
|
|
virtual bool RecvPDocumentRendererConstructor(PDocumentRendererChild* actor,
|
|
|
|
const nsRect& documentRect,
|
2013-12-26 22:06:53 +04:00
|
|
|
const gfx::Matrix& transform,
|
2010-10-27 02:20:53 +04:00
|
|
|
const nsString& bgcolor,
|
2012-08-22 19:56:38 +04:00
|
|
|
const uint32_t& renderFlags,
|
2010-10-27 02:20:53 +04:00
|
|
|
const bool& flushLayout,
|
2014-01-17 21:46:41 +04:00
|
|
|
const nsIntSize& renderSize) MOZ_OVERRIDE;
|
2010-10-27 02:20:53 +04:00
|
|
|
|
2014-02-24 00:19:43 +04:00
|
|
|
virtual PColorPickerChild*
|
|
|
|
AllocPColorPickerChild(const nsString& title, const nsString& initialColor) MOZ_OVERRIDE;
|
|
|
|
virtual bool DeallocPColorPickerChild(PColorPickerChild* actor) MOZ_OVERRIDE;
|
|
|
|
|
2012-07-18 23:09:28 +04:00
|
|
|
#ifdef DEBUG
|
2013-11-05 18:16:25 +04:00
|
|
|
virtual PContentPermissionRequestChild*
|
|
|
|
SendPContentPermissionRequestConstructor(PContentPermissionRequestChild* aActor,
|
2014-02-10 00:34:40 +04:00
|
|
|
const InfallibleTArray<PermissionRequest>& aRequests,
|
2013-11-05 18:16:25 +04:00
|
|
|
const IPC::Principal& aPrincipal);
|
2012-07-18 23:09:28 +04:00
|
|
|
#endif /* DEBUG */
|
|
|
|
|
2014-01-17 21:46:41 +04:00
|
|
|
virtual PContentPermissionRequestChild*
|
2014-02-10 00:34:40 +04:00
|
|
|
AllocPContentPermissionRequestChild(const InfallibleTArray<PermissionRequest>& aRequests,
|
2014-01-17 21:46:41 +04:00
|
|
|
const IPC::Principal& aPrincipal) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
|
|
DeallocPContentPermissionRequestChild(PContentPermissionRequestChild* actor) MOZ_OVERRIDE;
|
2010-05-13 21:44:51 +04:00
|
|
|
|
2014-02-18 04:30:06 +04:00
|
|
|
virtual PFilePickerChild*
|
|
|
|
AllocPFilePickerChild(const nsString& aTitle, const int16_t& aMode) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
|
|
DeallocPFilePickerChild(PFilePickerChild* actor) MOZ_OVERRIDE;
|
|
|
|
|
2013-07-08 19:48:39 +04:00
|
|
|
virtual POfflineCacheUpdateChild* AllocPOfflineCacheUpdateChild(
|
2012-07-31 10:36:00 +04:00
|
|
|
const URIParams& manifestURI,
|
2012-08-23 23:33:46 +04:00
|
|
|
const URIParams& documentURI,
|
2014-01-17 21:46:41 +04:00
|
|
|
const bool& stickDocument) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
|
|
DeallocPOfflineCacheUpdateChild(POfflineCacheUpdateChild* offlineCacheUpdate) MOZ_OVERRIDE;
|
2010-10-20 21:12:32 +04:00
|
|
|
|
2014-03-25 06:28:46 +04:00
|
|
|
virtual nsIWebNavigation* WebNavigation() MOZ_OVERRIDE { return mWebNav; }
|
|
|
|
virtual nsIWidget* WebWidget() MOZ_OVERRIDE { return mWidget; }
|
2009-11-06 23:43:39 +03:00
|
|
|
|
2012-08-29 19:26:18 +04:00
|
|
|
/** Return the DPI of the widget this TabChild draws to. */
|
|
|
|
void GetDPI(float* aDPI);
|
2013-05-02 03:06:19 +04:00
|
|
|
void GetDefaultScale(double *aScale);
|
2012-08-29 19:26:18 +04:00
|
|
|
|
2012-11-22 06:40:57 +04:00
|
|
|
ScreenOrientation GetOrientation() { return mOrientation; }
|
|
|
|
|
2011-10-21 02:17:09 +04:00
|
|
|
void SetBackgroundColor(const nscolor& aColor);
|
2012-07-18 03:59:45 +04:00
|
|
|
|
|
|
|
void NotifyPainted();
|
2012-07-20 10:48:27 +04:00
|
|
|
|
2014-04-22 00:40:09 +04:00
|
|
|
void RequestNativeKeyBindings(mozilla::widget::AutoCacheNativeKeyCommands* aAutoCache,
|
|
|
|
WidgetKeyboardEvent* aEvent);
|
2012-07-20 10:48:27 +04:00
|
|
|
|
2013-05-23 19:52:06 +04:00
|
|
|
/** Return a boolean indicating if the page has called preventDefault on
|
|
|
|
* the event.
|
|
|
|
*/
|
2013-09-11 16:28:58 +04:00
|
|
|
bool DispatchMouseEvent(const nsString& aType,
|
|
|
|
const CSSPoint& aPoint,
|
|
|
|
const int32_t& aButton,
|
|
|
|
const int32_t& aClickCount,
|
|
|
|
const int32_t& aModifiers,
|
|
|
|
const bool& aIgnoreRootScrollFrame,
|
|
|
|
const unsigned short& aInputSourceArg);
|
2013-05-23 19:52:06 +04:00
|
|
|
|
2012-11-08 07:51:55 +04:00
|
|
|
/**
|
|
|
|
* Signal to this TabChild that it should be made visible:
|
|
|
|
* activated widget, retained layer tree, etc. (Respectively,
|
|
|
|
* made not visible.)
|
|
|
|
*/
|
|
|
|
void MakeVisible();
|
|
|
|
void MakeHidden();
|
|
|
|
|
2013-02-16 02:27:21 +04:00
|
|
|
// Returns true if the file descriptor was found in the cache, false
|
|
|
|
// otherwise.
|
|
|
|
bool GetCachedFileDescriptor(const nsAString& aPath,
|
|
|
|
nsICachedFileDescriptorListener* aCallback);
|
|
|
|
|
|
|
|
void CancelCachedFileDescriptorCallback(
|
|
|
|
const nsAString& aPath,
|
|
|
|
nsICachedFileDescriptorListener* aCallback);
|
|
|
|
|
2013-07-10 21:07:51 +04:00
|
|
|
ContentChild* Manager() { return mManager; }
|
|
|
|
|
2013-08-13 11:56:57 +04:00
|
|
|
bool GetUpdateHitRegion() { return mUpdateHitRegion; }
|
|
|
|
|
|
|
|
void UpdateHitRegion(const nsRegion& aRegion);
|
|
|
|
|
2013-09-12 23:24:11 +04:00
|
|
|
static inline TabChild*
|
|
|
|
GetFrom(nsIDocShell* aDocShell)
|
|
|
|
{
|
|
|
|
nsCOMPtr<nsITabChild> tc = do_GetInterface(aDocShell);
|
|
|
|
return static_cast<TabChild*>(tc.get());
|
|
|
|
}
|
|
|
|
|
2013-10-03 00:08:30 +04:00
|
|
|
static TabChild* GetFrom(nsIPresShell* aPresShell);
|
2014-03-07 07:24:32 +04:00
|
|
|
static TabChild* GetFrom(uint64_t aLayersId);
|
|
|
|
|
|
|
|
void DidComposite();
|
2013-09-12 23:24:11 +04:00
|
|
|
|
|
|
|
static inline TabChild*
|
|
|
|
GetFrom(nsIDOMWindow* aWindow)
|
|
|
|
{
|
|
|
|
nsCOMPtr<nsIWebNavigation> webNav = do_GetInterface(aWindow);
|
|
|
|
nsCOMPtr<nsIDocShell> docShell = do_QueryInterface(webNav);
|
|
|
|
return GetFrom(docShell);
|
|
|
|
}
|
|
|
|
|
2010-08-06 02:11:23 +04:00
|
|
|
protected:
|
2014-01-16 01:10:39 +04:00
|
|
|
virtual PRenderFrameChild* AllocPRenderFrameChild() MOZ_OVERRIDE;
|
2013-07-08 19:48:39 +04:00
|
|
|
virtual bool DeallocPRenderFrameChild(PRenderFrameChild* aFrame) MOZ_OVERRIDE;
|
2012-07-06 22:15:45 +04:00
|
|
|
virtual bool RecvDestroy() MOZ_OVERRIDE;
|
2013-08-13 11:56:57 +04:00
|
|
|
virtual bool RecvSetUpdateHitRegion(const bool& aEnabled) MOZ_OVERRIDE;
|
2014-02-20 15:26:13 +04:00
|
|
|
virtual bool RecvSetIsDocShellActive(const bool& aIsActive) MOZ_OVERRIDE;
|
2010-08-06 02:11:23 +04:00
|
|
|
|
2013-09-11 08:18:36 +04:00
|
|
|
virtual PIndexedDBChild* AllocPIndexedDBChild(const nsCString& aGroup,
|
|
|
|
const nsCString& aASCIIOrigin,
|
2014-01-17 21:46:41 +04:00
|
|
|
bool* /* aAllowed */) MOZ_OVERRIDE;
|
2012-06-01 21:21:12 +04:00
|
|
|
|
2014-01-17 21:46:41 +04:00
|
|
|
virtual bool DeallocPIndexedDBChild(PIndexedDBChild* aActor) MOZ_OVERRIDE;
|
2012-06-01 21:21:12 +04:00
|
|
|
|
2009-07-01 00:39:22 +04:00
|
|
|
private:
|
2012-08-29 19:26:18 +04:00
|
|
|
/**
|
|
|
|
* Create a new TabChild object.
|
|
|
|
*
|
Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".
There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.
I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 22:32:37 +04:00
|
|
|
* |aOwnOrContainingAppId| is the app-id of our frame or of the closest app
|
|
|
|
* frame in the hierarchy which contains us.
|
|
|
|
*
|
|
|
|
* |aIsBrowserElement| indicates whether we're a browser (but not an app).
|
2012-08-29 19:26:18 +04:00
|
|
|
*/
|
2013-07-10 21:07:51 +04:00
|
|
|
TabChild(ContentChild* aManager, const TabContext& aContext, uint32_t aChromeFlags);
|
2012-08-29 19:26:18 +04:00
|
|
|
|
|
|
|
nsresult Init();
|
|
|
|
|
2014-02-22 03:12:43 +04:00
|
|
|
|
Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".
There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.
I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 22:32:37 +04:00
|
|
|
// Notify others that our TabContext has been updated. (At the moment, this
|
|
|
|
// sets the appropriate app-id and is-browser flags on our docshell.)
|
|
|
|
//
|
|
|
|
// You should call this after calling TabContext::SetTabContext(). We also
|
|
|
|
// call this during Init().
|
|
|
|
void NotifyTabContextUpdated();
|
2012-08-29 19:26:18 +04:00
|
|
|
|
2012-07-18 03:59:45 +04:00
|
|
|
bool UseDirectCompositor();
|
|
|
|
|
2014-01-17 21:46:41 +04:00
|
|
|
void ActorDestroy(ActorDestroyReason why) MOZ_OVERRIDE;
|
2010-07-22 03:23:03 +04:00
|
|
|
|
2012-08-29 19:26:18 +04:00
|
|
|
enum FrameScriptLoading { DONT_LOAD_SCRIPTS, DEFAULT_LOAD_SCRIPTS };
|
|
|
|
bool InitTabChildGlobal(FrameScriptLoading aScriptLoading = DEFAULT_LOAD_SCRIPTS);
|
|
|
|
bool InitRenderingState();
|
2010-08-21 03:24:40 +04:00
|
|
|
void DestroyWindow();
|
2012-09-11 08:30:33 +04:00
|
|
|
void SetProcessNameToAppName();
|
2013-07-10 03:26:07 +04:00
|
|
|
|
2012-06-13 02:01:25 +04:00
|
|
|
// Call RecvShow(nsIntSize(0, 0)) and block future calls to RecvShow().
|
|
|
|
void DoFakeShow();
|
|
|
|
|
2013-01-05 18:53:16 +04:00
|
|
|
// These methods are used for tracking synthetic mouse events
|
|
|
|
// dispatched for compatibility. On each touch event, we
|
|
|
|
// UpdateTapState(). If we've detected that the current gesture
|
|
|
|
// isn't a tap, then we CancelTapTracking(). In the meantime, we
|
|
|
|
// may detect a context-menu event, and if so we
|
|
|
|
// FireContextMenuEvent().
|
|
|
|
void FireContextMenuEvent();
|
|
|
|
void CancelTapTracking();
|
2013-09-27 10:20:57 +04:00
|
|
|
void UpdateTapState(const WidgetTouchEvent& aEvent, nsEventStatus aStatus);
|
2012-09-15 05:16:32 +04:00
|
|
|
|
2012-06-13 02:01:25 +04:00
|
|
|
nsresult
|
|
|
|
BrowserFrameProvideWindow(nsIDOMWindow* aOpener,
|
|
|
|
nsIURI* aURI,
|
|
|
|
const nsAString& aName,
|
|
|
|
const nsACString& aFeatures,
|
|
|
|
bool* aWindowIsNew,
|
|
|
|
nsIDOMWindow** aReturn);
|
|
|
|
|
2013-02-16 02:27:21 +04:00
|
|
|
class CachedFileDescriptorInfo;
|
|
|
|
class CachedFileDescriptorCallbackRunnable;
|
|
|
|
|
2013-05-01 04:42:05 +04:00
|
|
|
TextureFactoryIdentifier mTextureFactoryIdentifier;
|
2009-07-01 00:39:22 +04:00
|
|
|
nsCOMPtr<nsIWebNavigation> mWebNav;
|
2010-08-21 03:24:40 +04:00
|
|
|
nsCOMPtr<nsIWidget> mWidget;
|
2012-09-29 06:18:18 +04:00
|
|
|
nsCOMPtr<nsIURI> mLastURI;
|
2010-08-21 03:24:41 +04:00
|
|
|
RenderFrameChild* mRemoteFrame;
|
2013-07-10 21:07:51 +04:00
|
|
|
nsRefPtr<ContentChild> mManager;
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t mChromeFlags;
|
2014-03-07 07:24:32 +04:00
|
|
|
uint64_t mLayersId;
|
2013-03-04 18:37:43 +04:00
|
|
|
nsIntRect mOuterRect;
|
2013-01-05 18:53:16 +04:00
|
|
|
// When we're tracking a possible tap gesture, this is the "down"
|
|
|
|
// point of the touchstart.
|
2013-07-16 23:54:59 +04:00
|
|
|
LayoutDevicePoint mGestureDownPoint;
|
2013-01-05 18:53:16 +04:00
|
|
|
// The touch identifier of the active gesture.
|
|
|
|
int32_t mActivePointerId;
|
|
|
|
// A timer task that fires if the tap-hold timeout is exceeded by
|
|
|
|
// the touch we're tracking. That is, if touchend or a touchmove
|
|
|
|
// that exceeds the gesture threshold doesn't happen.
|
|
|
|
CancelableTask* mTapHoldTimer;
|
2013-05-30 04:56:09 +04:00
|
|
|
// Whether we have already received a FileDescriptor for the app package.
|
|
|
|
bool mAppPackageFileDescriptorRecved;
|
2013-02-16 02:27:21 +04:00
|
|
|
// At present only 1 of these is really expected.
|
|
|
|
nsAutoTArray<nsAutoPtr<CachedFileDescriptorInfo>, 1>
|
|
|
|
mCachedFileDescriptorInfos;
|
2011-10-21 02:17:09 +04:00
|
|
|
nscolor mLastBackgroundColor;
|
Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones DONTBUILD
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".
There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.
I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
(Re-landing changeset a6a847452dbf, backed out in 5091aa6083c4, because it was originally landed with the incorrect bug number.)
2012-10-31 00:13:21 +04:00
|
|
|
bool mDidFakeShow;
|
2012-08-07 07:00:41 +04:00
|
|
|
bool mNotified;
|
2012-08-29 19:26:18 +04:00
|
|
|
bool mTriedBrowserInit;
|
2012-11-22 06:40:57 +04:00
|
|
|
ScreenOrientation mOrientation;
|
2013-08-13 11:56:57 +04:00
|
|
|
bool mUpdateHitRegion;
|
2013-12-12 04:39:06 +04:00
|
|
|
bool mContextMenuHandled;
|
2013-12-20 13:11:01 +04:00
|
|
|
bool mWaitingTouchListeners;
|
2014-02-15 04:45:45 +04:00
|
|
|
void FireSingleTapEvent(LayoutDevicePoint aPoint);
|
2010-02-20 20:05:20 +03:00
|
|
|
|
2014-03-12 07:13:38 +04:00
|
|
|
bool mIgnoreKeyPressEvent;
|
2014-04-09 23:16:16 +04:00
|
|
|
nsRefPtr<ActiveElementManager> mActiveElementManager;
|
2014-03-12 07:13:38 +04:00
|
|
|
|
2009-07-01 00:39:22 +04:00
|
|
|
DISALLOW_EVIL_CONSTRUCTORS(TabChild);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-08-21 03:24:41 +04:00
|
|
|
#endif // mozilla_dom_TabChild_h
|