forked from adobe/brackets-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess_helper_mac.cpp
More file actions
35 lines (25 loc) · 889 Bytes
/
Copy pathprocess_helper_mac.cpp
File metadata and controls
35 lines (25 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
#include "include/cef_app.h"
#include <CoreFoundation/CoreFoundation.h>
// This file is shared by cefclient and cef_unittests so don't include using
// a qualified path.
#include "client_app.h" // NOLINT(build/include)
// Application startup time
CFTimeInterval g_appStartupTime;
// Stub implementations.
std::string AppGetWorkingDirectory() {
return std::string();
}
CefWindowHandle AppGetMainHwnd() {
return NULL;
}
// Process entry point.
int main(int argc, char* argv[]) {
CefMainArgs main_args(argc, argv);
g_appStartupTime = CFAbsoluteTimeGetCurrent();
CefRefPtr<CefApp> app(new ClientApp);
// Execute the secondary process.
return CefExecuteProcess(main_args, app);
}