2012-04-03 03:34:16 +02:00
|
|
|
// 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"
|
2012-04-12 22:21:50 +02:00
|
|
|
|
|
|
|
// This file is shared by cefclient and cef_unittests so don't include using
|
|
|
|
// a qualified path.
|
|
|
|
#include "client_app.h" // NOLINT(build/include)
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2012-04-12 23:58:35 +02:00
|
|
|
// Stub implementations.
|
|
|
|
std::string AppGetWorkingDirectory() {
|
|
|
|
return std::string();
|
|
|
|
}
|
2014-07-11 22:28:37 +02:00
|
|
|
CefWindowHandle AppGetMainWindowHandle() {
|
2012-04-12 23:58:35 +02:00
|
|
|
return NULL;
|
|
|
|
}
|
2013-03-19 23:59:33 +01:00
|
|
|
void AppQuitMessageLoop() {
|
|
|
|
}
|
2013-04-03 19:31:10 +02:00
|
|
|
bool AppIsOffScreenRenderingEnabled() {
|
|
|
|
return false;
|
|
|
|
}
|
2012-04-12 23:58:35 +02:00
|
|
|
|
|
|
|
// Process entry point.
|
2012-04-03 03:34:16 +02:00
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
CefMainArgs main_args(argc, argv);
|
|
|
|
|
2012-04-12 22:21:50 +02:00
|
|
|
CefRefPtr<CefApp> app(new ClientApp);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute the secondary process.
|
2013-11-15 19:47:02 +01:00
|
|
|
return CefExecuteProcess(main_args, app, NULL);
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|