Quellcode-Bibliothek nsGNOMEShellSearchProvider.h
Sprache: C
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim:expandtab:shiftwidth=2:tabstop=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 GnomeHistoryIcon { public:
GnomeHistoryIcon() : mTimeStamp(-1), mWidth(0), mHeight(0) {}
// From which search is this icon void Set(int aTimeStamp, mozilla::UniquePtr<uint8_t[]> aData, int aWidth, int aHeight) {
mTimeStamp = aTimeStamp;
mWidth = aWidth;
mHeight = aHeight;
mData = std::move(aData);
}
private: int mTimeStamp;
mozilla::UniquePtr<uint8_t[]> mData; int mWidth; int mHeight;
};
// nsGNOMEShellHistorySearchResult is a container with contains search results // which are files asynchronously by nsGNOMEShellHistoryService. // The search results can be opened by Firefox then. class nsGNOMEShellHistorySearchResult : public nsUnixRemoteServer { public:
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(nsGNOMEShellHistorySearchResult)
// Receive (asynchronously) history search results from history service. // This is called asynchronously by nsGNOMEShellHistoryService // when we have search results available. void ReceiveSearchResultContainer(
nsCOMPtr<nsINavHistoryContainerResultNode> aHistResultContainer);
nsCOMPtr<nsINavHistoryContainerResultNode> GetSearchResultContainer() { return mHistResultContainer;
} void HandleCommandLine(mozilla::Span<constchar> aBuffer,
uint32_t aTimestamp) {
nsUnixRemoteServer::HandleCommandLine(aBuffer, aTimestamp);
}
void SetHistoryIcon(int aTimeStamp, mozilla::UniquePtr<uint8_t[]> aData, int aWidth, int aHeight, int aIconIndex);
GnomeHistoryIcon* GetHistoryIcon(int aIconIndex);
¤ 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.0.13Bemerkung:
(vorverarbeitet)
¤
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.