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