/* vim: se cin sw=2 ts=2 et : */ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * 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/. */
class GfxInfoBase : public nsIGfxInfo, public nsIObserver, public nsSupportsWeakReference #ifdef DEBUG
, public nsIGfxInfoDebug #endif
{ public:
GfxInfoBase();
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSIOBSERVER
// We only declare a subset of the nsIGfxInfo interface. It's up to derived // classes to implement the rest of the interface. // Derived classes need to use // using GfxInfoBase::GetFeatureStatus; // using GfxInfoBase::GetFeatureSuggestedDriverVersion; // to import the relevant methods into their namespace.
NS_IMETHOD GetFeatureStatus(int32_t aFeature, nsACString& aFailureId,
int32_t* _retval) override;
NS_IMETHOD GetFeatureSuggestedDriverVersion(int32_t aFeature,
nsAString& _retval) override;
NS_IMETHOD GetFeatureStatusStr(const nsAString& aFeature,
nsACString& aFailureId,
nsAString& _retval) override;
NS_IMETHOD GetFeatureSuggestedDriverVersionStr(const nsAString& aFeature,
nsAString& _retval) override;
// Non-XPCOM method to get IPC data:
nsTArray<mozilla::gfx::GfxInfoFeatureStatus> GetAllFeatures();
// Initialization function. If you override this, you must call this class's // version of Init first. // We need Init to be called separately from the constructor so we can // register as an observer after all derived classes have been constructed // and we know we have a non-zero refcount. // Ideally, Init() would be void-return, but the rules of // NS_GENERIC_FACTORY_CONSTRUCTOR_INIT require it be nsresult return. virtual nsresult Init();
// Gets the driver info table. Used by GfxInfoBase to check for general cases // (while subclasses check for more specific ones). virtualconst nsTArray<GfxDriverInfo>& GetGfxDriverInfo() = 0;
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.