Add API to get and override application name.

This commit is contained in:
Cheng Zhao 2013-12-05 10:32:58 +08:00
parent 420ae1a2cc
commit 5670ee7693
4 changed files with 41 additions and 0 deletions

View file

@ -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,