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

@ -36,6 +36,12 @@ class Browser : public WindowListObserver {
// Overrides the application version.
void SetVersion(const std::string& version);
// Returns the application's name, default is just Atom-Shell.
std::string GetName() const;
// Overrides the application name.
void SetName(const std::string& name);
#if defined(OS_MACOSX)
// Bounce the dock icon.
enum BounceType {
@ -91,6 +97,7 @@ class Browser : public WindowListObserver {
ObserverList<BrowserObserver> observers_;
std::string version_override_;
std::string name_override_;
DISALLOW_COPY_AND_ASSIGN(Browser);
};