Add API to get and override application name.
This commit is contained in:
parent
420ae1a2cc
commit
5670ee7693
4 changed files with 41 additions and 0 deletions
|
@ -47,6 +47,14 @@ void Browser::SetVersion(const std::string& version) {
|
|||
version_override_ = version;
|
||||
}
|
||||
|
||||
std::string Browser::GetName() const {
|
||||
return name_override_.empty() ? "Atom-Shell" : name_override_;
|
||||
}
|
||||
|
||||
void Browser::SetName(const std::string& name) {
|
||||
name_override_ = name;
|
||||
}
|
||||
|
||||
bool Browser::OpenFile(const std::string& file_path) {
|
||||
bool prevent_default = false;
|
||||
FOR_EACH_OBSERVER(BrowserObserver,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue