remote-search: implement LaunchSearch() DBus method
This will be used to launch a search in the application itself. https://bugzilla.gnome.org/show_bug.cgi?id=689735
This commit is contained in:

committed by
Cosimo Cecchi

parent
72d54d9915
commit
2cc7fd07f8
@ -81,6 +81,7 @@ const SearchProvider = new Lang.Class({
|
||||
this.appInfo = appInfo;
|
||||
this.searchSystem = null;
|
||||
this.isRemoteProvider = !!isRemoteProvider;
|
||||
this.canLaunchSearch = false;
|
||||
},
|
||||
|
||||
/**
|
||||
@ -167,6 +168,16 @@ const SearchProvider = new Lang.Class({
|
||||
*/
|
||||
activateResult: function(id) {
|
||||
throw new Error('Not implemented');
|
||||
},
|
||||
|
||||
/**
|
||||
* launchSearch:
|
||||
* @terms: Current search terms
|
||||
*
|
||||
* Called when the user clicks the provider icon.
|
||||
*/
|
||||
launchSearch: function(terms) {
|
||||
throw new Error('Not implemented');
|
||||
}
|
||||
});
|
||||
Signals.addSignalMethods(SearchProvider.prototype);
|
||||
|
Reference in New Issue
Block a user