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