reworked find in page
This commit is contained in:
+9
@@ -60,6 +60,15 @@ class PrivateSearchAction extends BaseSelectionAction {
|
||||
);
|
||||
}
|
||||
|
||||
class FindInPageAction extends BaseSelectionAction {
|
||||
FindInPageAction(PerformAction action)
|
||||
: super(
|
||||
id: 'CUSTOM_CONTEXT_MENU_FIND_IN_PAGE',
|
||||
title: 'Find in page',
|
||||
performAction: action,
|
||||
);
|
||||
}
|
||||
|
||||
class ShareAction extends BaseSelectionAction {
|
||||
ShareAction(PerformAction action)
|
||||
: super(
|
||||
|
||||
@@ -9,10 +9,6 @@ class GeckoFindInPageService {
|
||||
GeckoFindInPageService({required this.tabId, GeckoFindApi? api})
|
||||
: _api = api ?? _apiInstance;
|
||||
|
||||
GeckoFindInPageService.forActiveTab({GeckoFindApi? api})
|
||||
: _api = api ?? _apiInstance,
|
||||
tabId = null;
|
||||
|
||||
Future<void> findAll(String text) {
|
||||
return _api.findAll(tabId, text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user