AddUserTasks => setUserTasks
This commit is contained in:
parent
bf66aeb8ee
commit
ee9964c141
3 changed files with 4 additions and 4 deletions
|
@ -189,8 +189,8 @@ mate::ObjectTemplateBuilder App::GetObjectTemplateBuilder(
|
||||||
.SetMethod("clearRecentDocuments",
|
.SetMethod("clearRecentDocuments",
|
||||||
base::Bind(&Browser::ClearRecentDocuments, browser))
|
base::Bind(&Browser::ClearRecentDocuments, browser))
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
.SetMethod("addUserTasks",
|
.SetMethod("setUserTasks",
|
||||||
base::Bind(&Browser::AddUserTasks, browser))
|
base::Bind(&Browser::SetUserTasks, browser))
|
||||||
#endif
|
#endif
|
||||||
.SetMethod("getDataPath", &App::GetDataPath)
|
.SetMethod("getDataPath", &App::GetDataPath)
|
||||||
.SetMethod("resolveProxy", &App::ResolveProxy)
|
.SetMethod("resolveProxy", &App::ResolveProxy)
|
||||||
|
|
|
@ -96,7 +96,7 @@ class Browser : public WindowListObserver {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Add a custom task to jump list.
|
// Add a custom task to jump list.
|
||||||
void AddUserTasks(const std::vector<UserTask>& tasks);
|
void SetUserTasks(const std::vector<UserTask>& tasks);
|
||||||
|
|
||||||
// Set the application user model ID, called when "SetName" is called.
|
// Set the application user model ID, called when "SetName" is called.
|
||||||
void SetAppUserModelID(const std::string& name);
|
void SetAppUserModelID(const std::string& name);
|
||||||
|
|
|
@ -71,7 +71,7 @@ void Browser::ClearRecentDocuments() {
|
||||||
destinations->RemoveAllDestinations();
|
destinations->RemoveAllDestinations();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Browser::AddUserTasks(const std::vector<UserTask>& tasks) {
|
void Browser::SetUserTasks(const std::vector<UserTask>& tasks) {
|
||||||
CComPtr<ICustomDestinationList> destinations;
|
CComPtr<ICustomDestinationList> destinations;
|
||||||
if (FAILED(destinations.CoCreateInstance(CLSID_DestinationList)))
|
if (FAILED(destinations.CoCreateInstance(CLSID_DestinationList)))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue