8d086a43cb
* add brightray API to override app version * in atom browser, use brightray app version API * on Linux, have GetApplicationVersion() use brightray version API * on Linux, implement brightray::GetApplicationName() * fix typo in brightray API * make browser.GetName() logic follow GetVersion() logic * improve variable name in OverrideApplicationVersion declaration * fix typo in brightray impl
29 lines
725 B
C++
29 lines
725 B
C++
#ifndef BRIGHTRAY_COMMON_APPLICATION_INFO_H_
|
|
#define BRIGHTRAY_COMMON_APPLICATION_INFO_H_
|
|
|
|
#if defined(OS_WIN)
|
|
#include "brightray/browser/win/scoped_hstring.h"
|
|
#endif
|
|
|
|
#include <string>
|
|
|
|
namespace brightray {
|
|
|
|
void OverrideApplicationName(const std::string& name);
|
|
std::string GetOverriddenApplicationName();
|
|
|
|
void OverrideApplicationVersion(const std::string& version);
|
|
std::string GetOverriddenApplicationVersion();
|
|
|
|
std::string GetApplicationName();
|
|
std::string GetApplicationVersion();
|
|
|
|
#if defined(OS_WIN)
|
|
PCWSTR GetRawAppUserModelID();
|
|
bool GetAppUserModelID(ScopedHString* app_id);
|
|
void SetAppUserModelID(const base::string16& name);
|
|
#endif
|
|
|
|
} // namespace brightray
|
|
|
|
#endif // BRIGHTRAY_COMMON_APPLICATION_INFO_H_
|