2018-10-24 10:49:10 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_COMMON_APPLICATION_INFO_H_
|
|
|
|
#define ATOM_COMMON_APPLICATION_INFO_H_
|
2013-04-08 16:41:30 +00:00
|
|
|
|
2017-12-05 20:58:48 +00:00
|
|
|
#if defined(OS_WIN)
|
2018-10-24 10:49:10 +00:00
|
|
|
#include "atom/browser/win/scoped_hstring.h"
|
2018-06-21 23:45:45 +00:00
|
|
|
#include "base/strings/string16.h"
|
2017-12-05 20:58:48 +00:00
|
|
|
#endif
|
|
|
|
|
2013-04-08 16:41:30 +00:00
|
|
|
#include <string>
|
|
|
|
|
2018-10-24 10:49:10 +00:00
|
|
|
namespace atom {
|
2013-04-08 16:41:30 +00:00
|
|
|
|
2017-12-05 20:58:48 +00:00
|
|
|
void OverrideApplicationName(const std::string& name);
|
2018-02-20 16:16:51 +00:00
|
|
|
std::string GetOverriddenApplicationName();
|
|
|
|
|
|
|
|
void OverrideApplicationVersion(const std::string& version);
|
|
|
|
std::string GetOverriddenApplicationVersion();
|
2017-12-05 20:58:48 +00:00
|
|
|
|
2013-04-08 16:41:30 +00:00
|
|
|
std::string GetApplicationName();
|
|
|
|
std::string GetApplicationVersion();
|
|
|
|
|
2017-12-05 20:58:48 +00:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
PCWSTR GetRawAppUserModelID();
|
|
|
|
bool GetAppUserModelID(ScopedHString* app_id);
|
|
|
|
void SetAppUserModelID(const base::string16& name);
|
2018-09-05 16:06:29 +00:00
|
|
|
bool IsRunningInDesktopBridge();
|
2017-12-05 20:58:48 +00:00
|
|
|
#endif
|
|
|
|
|
2018-10-24 10:49:10 +00:00
|
|
|
} // namespace atom
|
2013-04-08 16:41:30 +00:00
|
|
|
|
2018-10-24 10:49:10 +00:00
|
|
|
#endif // ATOM_COMMON_APPLICATION_INFO_H_
|