forked from leanflutter/window_manager
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged latest fixes, renamed files and classes for windows
- Loading branch information
1 parent
2d5ba21
commit 72f7406
Showing
8 changed files
with
991 additions
and
977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 46 additions & 45 deletions
91
...de/window_manager/window_manager_plugin.h → ...manager_plus/window_manager_plus_plugin.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
#ifndef FLUTTER_PLUGIN_WINDOW_MANAGER_PLUGIN_H_ | ||
#define FLUTTER_PLUGIN_WINDOW_MANAGER_PLUGIN_H_ | ||
|
||
#include <any> | ||
#include <map> | ||
#include <string> | ||
#include <vector> | ||
#include <windows.h> | ||
|
||
#include <flutter_plugin_registrar.h> | ||
|
||
#include <memory> | ||
|
||
#ifdef FLUTTER_PLUGIN_IMPL | ||
#define FLUTTER_PLUGIN_EXPORT __declspec(dllexport) | ||
#else | ||
#define FLUTTER_PLUGIN_EXPORT __declspec(dllimport) | ||
#endif | ||
|
||
#if defined(__cplusplus) | ||
extern "C" { | ||
#endif | ||
|
||
FLUTTER_PLUGIN_EXPORT void WindowManagerPluginRegisterWithRegistrar( | ||
FlutterDesktopPluginRegistrarRef registrar); | ||
|
||
#ifndef RUNNER_FLUTTER_WINDOW_H_ | ||
#define RUNNER_FLUTTER_WINDOW_H_ | ||
class FlutterWindow { | ||
public: | ||
virtual void Destroy() = 0; | ||
}; | ||
|
||
#endif // RUNNER_FLUTTER_WINDOW_H_ | ||
|
||
typedef std::shared_ptr<FlutterWindow> (*WindowCreatedCallback)( | ||
std::vector<std::string> command_line_arguments); | ||
FLUTTER_PLUGIN_EXPORT void WindowManagerPluginSetWindowCreatedCallback( | ||
WindowCreatedCallback callback); | ||
|
||
#if defined(__cplusplus) | ||
} // extern "C" | ||
#endif | ||
|
||
#endif // FLUTTER_PLUGIN_WINDOW_MANAGER_PLUGIN_H_ | ||
#ifndef FLUTTER_PLUGIN_WINDOW_MANAGER_PLUS_PLUGIN_H_ | ||
#define FLUTTER_PLUGIN_WINDOW_MANAGER_PLUS_PLUGIN_H_ | ||
|
||
#include <any> | ||
#include <map> | ||
#include <string> | ||
#include <vector> | ||
#include <windows.h> | ||
|
||
#include <flutter_plugin_registrar.h> | ||
|
||
#include <memory> | ||
|
||
#ifdef FLUTTER_PLUGIN_IMPL | ||
#define FLUTTER_PLUGIN_EXPORT __declspec(dllexport) | ||
#else | ||
#define FLUTTER_PLUGIN_EXPORT __declspec(dllimport) | ||
#endif | ||
|
||
#if defined(__cplusplus) | ||
extern "C" { | ||
#endif | ||
|
||
FLUTTER_PLUGIN_EXPORT void WindowManagerPlusPluginRegisterWithRegistrar( | ||
FlutterDesktopPluginRegistrarRef registrar); | ||
|
||
#ifndef RUNNER_FLUTTER_WINDOW_H_ | ||
#define RUNNER_FLUTTER_WINDOW_H_ | ||
class FlutterWindow { | ||
public: | ||
virtual void Destroy() = 0; | ||
}; | ||
|
||
#endif // RUNNER_FLUTTER_WINDOW_H_ | ||
|
||
typedef std::shared_ptr<FlutterWindow> ( | ||
*WindowManagerPlusPluginWindowCreatedCallback)( | ||
std::vector<std::string> command_line_arguments); | ||
FLUTTER_PLUGIN_EXPORT void WindowManagerPlusPluginSetWindowCreatedCallback( | ||
WindowManagerPlusPluginWindowCreatedCallback callback); | ||
|
||
#if defined(__cplusplus) | ||
} // extern "C" | ||
#endif | ||
|
||
#endif // FLUTTER_PLUGIN_WINDOW_MANAGER_PLUS_PLUGIN_H_ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.