Flutter Windows Embedder
platform_handler.cc File Reference
#include "flutter/shell/platform/windows/platform_handler.h"
#include <windows.h>
#include <cstring>
#include <optional>
#include "flutter/fml/logging.h"
#include "flutter/fml/macros.h"
#include "flutter/fml/platform/win/wstring_conversion.h"
#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_result_functions.h"
#include "flutter/shell/platform/common/json_method_codec.h"
#include "flutter/shell/platform/windows/flutter_windows_view.h"

Go to the source code of this file.

Namespaces

 flutter
 

Functions

static AppExitType flutter::StringToAppExitType (const std::string &string)
 

Variables

static constexpr char kChannelName [] = "flutter/platform"
 
static constexpr char kGetClipboardDataMethod [] = "Clipboard.getData"
 
static constexpr char kHasStringsClipboardMethod [] = "Clipboard.hasStrings"
 
static constexpr char kSetClipboardDataMethod [] = "Clipboard.setData"
 
static constexpr char kExitApplicationMethod [] = "System.exitApplication"
 
static constexpr char kRequestAppExitMethod [] = "System.requestAppExit"
 
static constexpr char kInitializationCompleteMethod []
 
static constexpr char kPlaySoundMethod [] = "SystemSound.play"
 
static constexpr char kExitCodeKey [] = "exitCode"
 
static constexpr char kExitTypeKey [] = "type"
 
static constexpr char kExitResponseKey [] = "response"
 
static constexpr char kExitResponseCancel [] = "cancel"
 
static constexpr char kExitResponseExit [] = "exit"
 
static constexpr char kTextPlainFormat [] = "text/plain"
 
static constexpr char kTextKey [] = "text"
 
static constexpr char kUnknownClipboardFormatMessage []
 
static constexpr char kValueKey [] = "value"
 
static constexpr int kAccessDeniedErrorCode = 5
 
static constexpr int kErrorSuccess = 0
 
static constexpr char kExitRequestError [] = "ExitApplication error"
 
static constexpr char kInvalidExitRequestMessage []
 
static constexpr const char * flutter::kExitTypeNames []
 

Variable Documentation

◆ kAccessDeniedErrorCode

constexpr int kAccessDeniedErrorCode = 5
staticconstexpr

◆ kChannelName

constexpr char kChannelName[] = "flutter/platform"
staticconstexpr

Definition at line 19 of file platform_handler.cc.

◆ kErrorSuccess

◆ kExitApplicationMethod

constexpr char kExitApplicationMethod[] = "System.exitApplication"
staticconstexpr

Definition at line 24 of file platform_handler.cc.

◆ kExitCodeKey

constexpr char kExitCodeKey[] = "exitCode"
staticconstexpr

Definition at line 30 of file platform_handler.cc.

◆ kExitRequestError

constexpr char kExitRequestError[] = "ExitApplication error"
staticconstexpr

Definition at line 47 of file platform_handler.cc.

◆ kExitResponseCancel

constexpr char kExitResponseCancel[] = "cancel"
staticconstexpr

Definition at line 35 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::SystemExitApplication().

◆ kExitResponseExit

constexpr char kExitResponseExit[] = "exit"
staticconstexpr

◆ kExitResponseKey

constexpr char kExitResponseKey[] = "response"
staticconstexpr

◆ kExitTypeKey

constexpr char kExitTypeKey[] = "type"
staticconstexpr

Definition at line 32 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::RequestAppExit().

◆ kGetClipboardDataMethod

constexpr char kGetClipboardDataMethod[] = "Clipboard.getData"
staticconstexpr

Definition at line 21 of file platform_handler.cc.

◆ kHasStringsClipboardMethod

constexpr char kHasStringsClipboardMethod[] = "Clipboard.hasStrings"
staticconstexpr

Definition at line 22 of file platform_handler.cc.

◆ kInitializationCompleteMethod

constexpr char kInitializationCompleteMethod[]
staticconstexpr
Initial value:
=
"System.initializationComplete"

Definition at line 26 of file platform_handler.cc.

◆ kInvalidExitRequestMessage

constexpr char kInvalidExitRequestMessage[]
staticconstexpr
Initial value:
=
"Invalid application exit request"

Definition at line 48 of file platform_handler.cc.

◆ kPlaySoundMethod

constexpr char kPlaySoundMethod[] = "SystemSound.play"
staticconstexpr

Definition at line 28 of file platform_handler.cc.

◆ kRequestAppExitMethod

constexpr char kRequestAppExitMethod[] = "System.requestAppExit"
staticconstexpr

Definition at line 25 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::RequestAppExit().

◆ kSetClipboardDataMethod

constexpr char kSetClipboardDataMethod[] = "Clipboard.setData"
staticconstexpr

Definition at line 23 of file platform_handler.cc.

◆ kTextKey

constexpr char kTextKey[] = "text"
staticconstexpr

Definition at line 39 of file platform_handler.cc.

◆ kTextPlainFormat

constexpr char kTextPlainFormat[] = "text/plain"
staticconstexpr

Definition at line 38 of file platform_handler.cc.

◆ kUnknownClipboardFormatMessage

constexpr char kUnknownClipboardFormatMessage[]
staticconstexpr
Initial value:
=
"Unknown clipboard format"

Definition at line 40 of file platform_handler.cc.

◆ kValueKey

constexpr char kValueKey[] = "value"
staticconstexpr

Definition at line 43 of file platform_handler.cc.

Referenced by flutter::PlatformHandler::GetHasStrings().