Allow client to specify EXE file and args to set as default handler

* Optional path param to setAsDefaultProtocolClient
* Optional args param to setAsDefaultProtocolClient
This commit is contained in:
Samuel Attard 2016-08-16 15:35:20 +10:00
parent 420f756c47
commit e5daf63b0e
No known key found for this signature in database
GPG key ID: 273DC1869D8F13EF
4 changed files with 55 additions and 32 deletions

View file

@ -76,13 +76,13 @@ class Browser : public WindowListObserver {
void SetAppUserModelID(const base::string16& name);
// Remove the default protocol handler registry key
bool RemoveAsDefaultProtocolClient(const std::string& protocol);
bool RemoveAsDefaultProtocolClient(const std::string& protocol, mate::Arguments* args);
// Set as default handler for a protocol.
bool SetAsDefaultProtocolClient(const std::string& protocol);
bool SetAsDefaultProtocolClient(const std::string& protocol, mate::Arguments* args);
// Query the current state of default handler for a protocol.
bool IsDefaultProtocolClient(const std::string& protocol);
bool IsDefaultProtocolClient(const std::string& protocol, mate::Arguments* args);
// Set/Get the badge count.
bool SetBadgeCount(int count);