PatternSelector has a default implementation...
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@276 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
committed by
Alexandre Deckner
parent
c1bbe7400c
commit
c6662bd928
@@ -149,18 +149,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class BrowsingHistoryPatternSelector : public BAutoCompleter::PatternSelector {
|
|
||||||
virtual void SelectPatternBounds(const BString& text, int32 caretPos,
|
|
||||||
int32* start, int32* length)
|
|
||||||
{
|
|
||||||
if (!start || !length)
|
|
||||||
return;
|
|
||||||
*start = 0;
|
|
||||||
*length = text.Length();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark - BrowserWindow
|
// #pragma mark - BrowserWindow
|
||||||
|
|
||||||
|
|
||||||
@@ -300,8 +288,7 @@ BrowserWindow::BrowserWindow(BRect frame, const BMessenger& downloadListener,
|
|||||||
fURLTextControl->MakeFocus(true);
|
fURLTextControl->MakeFocus(true);
|
||||||
|
|
||||||
fURLAutoCompleter = new TextControlCompleter(fURLTextControl,
|
fURLAutoCompleter = new TextControlCompleter(fURLTextControl,
|
||||||
new BrowsingHistoryChoiceModel(),
|
new BrowsingHistoryChoiceModel());
|
||||||
new BrowsingHistoryPatternSelector());
|
|
||||||
|
|
||||||
fFindGroup = layoutItemFor(findGroup);
|
fFindGroup = layoutItemFor(findGroup);
|
||||||
fTabGroup = layoutItemFor(fTabManager->TabGroup());
|
fTabGroup = layoutItemFor(fTabManager->TabGroup());
|
||||||
|
|||||||
Reference in New Issue
Block a user