]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Implement brightray's stub functions.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 31 Dec 2013 12:24:30 +0000 (12:24 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 31 Dec 2013 12:24:53 +0000 (12:24 +0000)
atom.gyp
common/linux/application_info.cc [new file with mode: 0644]

index 75076d980b246783378d7f18c9de5937d37cc4c3..935938f17bb1bc469a4e35fb1570aceb678af156 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
       'common/crash_reporter/win/crash_service_main.h',
       'common/draggable_region.cc',
       'common/draggable_region.h',
+      'common/linux/application_info.cc',
       'common/node_bindings.cc',
       'common/node_bindings.h',
       'common/node_bindings_mac.cc',
diff --git a/common/linux/application_info.cc b/common/linux/application_info.cc
new file mode 100644 (file)
index 0000000..93d33b5
--- /dev/null
@@ -0,0 +1,19 @@
+// Copyright (c) 2013 GitHub, Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <string>
+
+#include "common/atom_version.h"
+
+namespace brightray {
+
+std::string GetApplicationName() {
+  return "Atom-Shell";
+}
+
+std::string GetApplicationVersion() {
+  return ATOM_VERSION_STRING;
+}
+
+}  // namespace brightray