mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 11:38:16 +00:00
bug 315570 r=benjamin
Add a reusable autocomplete result type that doesn't depend on Mork. Components can easily provide autocomplete results using this interface and implementation. This patch fixes some style and portability nits.
This commit is contained in:
parent
2b146eed76
commit
b9777b38a2
@ -268,6 +268,7 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
class AutoCompleteIntermediateResultSet;
|
||||
|
||||
// nsNavHistory
|
||||
|
||||
@ -277,7 +278,7 @@ class nsNavHistory : nsSupportsWeakReference,
|
||||
public nsIBrowserHistory,
|
||||
public nsIAutoCompleteSearch
|
||||
{
|
||||
friend struct AutoCompleteIntermediateResultSet;
|
||||
friend class AutoCompleteIntermediateResultSet;
|
||||
public:
|
||||
nsNavHistory();
|
||||
|
||||
|
@ -54,8 +54,10 @@ public:
|
||||
NS_DECL_NSIAUTOCOMPLETERESULT
|
||||
NS_DECL_NSIAUTOCOMPLETESIMPLERESULT
|
||||
|
||||
private:
|
||||
~nsAutoCompleteSimpleResult() {}
|
||||
|
||||
protected:
|
||||
~nsAutoCompleteSimpleResult() {};
|
||||
|
||||
// What we really want is an array of structs with value/comment contents.
|
||||
// But then we'd either have to use COM or manage object lifetimes ourselves.
|
||||
|
Loading…
x
Reference in New Issue
Block a user