refine naming

This commit is contained in:
Prome
2022-10-14 17:04:06 +08:00
parent c35c021bab
commit c197bd90fe
2 changed files with 7 additions and 7 deletions

View File

@@ -23,10 +23,10 @@ set(PLUGIN_NAME "webview_cef_plugin")
list(APPEND PLUGIN_SOURCES
"webview_cef_plugin.cpp"
"webview_cef_plugin.h"
"${CMAKE_CURRENT_LIST_DIR}/../common/simple_app.cc"
"${CMAKE_CURRENT_LIST_DIR}/../common/simple_app.h"
"${CMAKE_CURRENT_LIST_DIR}/../common/simple_handler.cc"
"${CMAKE_CURRENT_LIST_DIR}/../common/simple_handler.h"
"${CMAKE_CURRENT_LIST_DIR}/../common/webview_app.cc"
"${CMAKE_CURRENT_LIST_DIR}/../common/webview_app.h"
"${CMAKE_CURRENT_LIST_DIR}/../common/webview_handler.cc"
"${CMAKE_CURRENT_LIST_DIR}/../common/webview_handler.h"
)
# Define the plugin library target. Its name must not be changed (see comment

View File

@@ -15,7 +15,7 @@
#include<iostream>
#include <mutex>
#include "simple_app.h"
#include "webview_app.h"
namespace webview_cef {
bool init = false;
@@ -35,8 +35,8 @@ namespace webview_cef {
}
return buffer;
}));
CefRefPtr<SimpleHandler> handler(new SimpleHandler(false));
CefRefPtr<SimpleApp> app(new SimpleApp(handler));
CefRefPtr<WebviewHandler> handler(new WebviewHandler());
CefRefPtr<WebviewApp> app(new WebviewApp(handler));
CefMainArgs mainArgs;