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.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_COMMON_APPLICATION_INFO_H_
|
|
|
|
#define ELECTRON_SHELL_COMMON_APPLICATION_INFO_H_
|
2013-04-08 16:41:30 +00:00
|
|
|
|
2017-12-05 20:58:48 +00:00
|
|
|
#if defined(OS_WIN)
|
2019-06-19 20:46:59 +00:00
|
|
|
#include "shell/browser/win/scoped_hstring.h"
|
2017-12-05 20:58:48 +00:00
|
|
|
#endif
|
|
|
|
|
2013-04-08 16:41:30 +00:00
|
|
|
#include <string>
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2013-04-08 16:41:30 +00:00
|
|
|
|
2021-07-14 20:10:37 +00:00
|
|
|
std::string& OverriddenApplicationName();
|
|
|
|
std::string& OverriddenApplicationVersion();
|
2018-02-20 16:16:51 +00:00
|
|
|
|
2021-07-14 20:10:37 +00:00
|
|
|
std::string GetPossiblyOverriddenApplicationName();
|
2017-12-05 20:58:48 +00:00
|
|
|
|
2013-04-08 16:41:30 +00:00
|
|
|
std::string GetApplicationName();
|
|
|
|
std::string GetApplicationVersion();
|
2019-01-21 18:32:34 +00:00
|
|
|
// Returns the user agent of Electron.
|
|
|
|
std::string GetApplicationUserAgent();
|
2013-04-08 16:41:30 +00:00
|
|
|
|
2017-12-05 20:58:48 +00:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
PCWSTR GetRawAppUserModelID();
|
|
|
|
bool GetAppUserModelID(ScopedHString* app_id);
|
2021-03-23 18:12:59 +00:00
|
|
|
void SetAppUserModelID(const std::wstring& name);
|
2018-09-05 16:06:29 +00:00
|
|
|
bool IsRunningInDesktopBridge();
|
2017-12-05 20:58:48 +00:00
|
|
|
#endif
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2013-04-08 16:41:30 +00:00
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_COMMON_APPLICATION_INFO_H_
|