/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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/. */
namespace mozilla { namespace dom { class Event; class EventTarget;
} // namespace dom
} // namespace mozilla
class nsIDocShellTreeItem; class nsWebBrowser; class ChromeTooltipListener;
class nsDocShellTreeOwner final : public nsIDocShellTreeOwner, public nsIBaseWindow, public nsIInterfaceRequestor, public nsIWebProgressListener, public nsIDOMEventListener, public nsSupportsWeakReference { friendclass nsWebBrowser;
// These helper functions return the correct instances of the requested // interfaces. If the object passed to SetWebBrowserChrome() implements // nsISupportsWeakReference, then these functions call QueryReferent on // that object. Otherwise, they return an addrefed pointer. If the // WebBrowserChrome object doesn't exist, they return nullptr.
already_AddRefed<nsIWebBrowserChrome> GetWebBrowserChrome();
already_AddRefed<nsIBaseWindow> GetOwnerWin();
already_AddRefed<nsIInterfaceRequestor> GetOwnerRequestor();
// the objects that listen for chrome events like context menus and tooltips. // They are separate objects to avoid circular references between |this| // and the DOM.
RefPtr<ChromeTooltipListener> mChromeTooltipListener;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.