application_info.h 884 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright (c) 2013 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef SHELL_COMMON_APPLICATION_INFO_H_
  5. #define SHELL_COMMON_APPLICATION_INFO_H_
  6. #if defined(OS_WIN)
  7. #include "shell/browser/win/scoped_hstring.h"
  8. #endif
  9. #include <string>
  10. namespace electron {
  11. std::string& OverriddenApplicationName();
  12. std::string& OverriddenApplicationVersion();
  13. std::string GetPossiblyOverriddenApplicationName();
  14. std::string GetApplicationName();
  15. std::string GetApplicationVersion();
  16. // Returns the user agent of Electron.
  17. std::string GetApplicationUserAgent();
  18. #if defined(OS_WIN)
  19. PCWSTR GetRawAppUserModelID();
  20. bool GetAppUserModelID(ScopedHString* app_id);
  21. void SetAppUserModelID(const std::wstring& name);
  22. bool IsRunningInDesktopBridge();
  23. #endif
  24. } // namespace electron
  25. #endif // SHELL_COMMON_APPLICATION_INFO_H_