Flutter Engine
The Flutter Engine
Namespaces | Macros | Variables
ax_platform_node_win.cc File Reference
#include "ax_platform_node_win.h"
#include <wrl/client.h>
#include <wrl/implements.h>
#include <algorithm>
#include <map>
#include <set>
#include <string>
#include <unordered_set>
#include <utility>
#include "ax/ax_action_data.h"
#include "ax/ax_active_popup.h"
#include "ax/ax_enum_util.h"
#include "ax/ax_mode_observer.h"
#include "ax/ax_node_data.h"
#include "ax/ax_node_position.h"
#include "ax/ax_role_properties.h"
#include "ax/ax_tree_data.h"
#include "base/win/enum_variant.h"
#include "base/win/scoped_bstr.h"
#include "base/win/scoped_safearray.h"
#include "base/win/scoped_variant.h"
#include "base/win/variant_vector.h"
#include "ax_fragment_root_win.h"
#include "ax_platform_node_delegate.h"
#include "ax_platform_node_delegate_utils_win.h"
#include "ax_platform_node_textprovider_win.h"
#include "shellscalingapi.h"
#include "uia_registrar_win.h"
#include "base/logging.h"
#include "base/win/atl_module.h"
#include "base/win/display.h"
#include "flutter/fml/platform/win/wstring_conversion.h"
#include "gfx/geometry/rect_conversions.h"

Go to the source code of this file.

Namespaces

namespace  ax
 
namespace  ax::mojom
 
namespace  ui
 

Macros

#define COM_OBJECT_VALIDATE()
 
#define COM_OBJECT_VALIDATE_1_ARG(arg)
 
#define COM_OBJECT_VALIDATE_2_ARGS(arg1, arg2)
 
#define COM_OBJECT_VALIDATE_3_ARGS(arg1, arg2, arg3)
 
#define COM_OBJECT_VALIDATE_4_ARGS(arg1, arg2, arg3, arg4)
 
#define COM_OBJECT_VALIDATE_5_ARGS(arg1, arg2, arg3, arg4, arg5)
 
#define COM_OBJECT_VALIDATE_VAR_ID_AND_GET_TARGET(var_id, target)
 
#define COM_OBJECT_VALIDATE_VAR_ID_1_ARG_AND_GET_TARGET(var_id, arg, target)
 
#define COM_OBJECT_VALIDATE_VAR_ID_2_ARGS_AND_GET_TARGET(var_id, arg1, arg2, target)
 
#define COM_OBJECT_VALIDATE_VAR_ID_3_ARGS_AND_GET_TARGET(var_id, arg1, arg2, arg3, target)
 
#define COM_OBJECT_VALIDATE_VAR_ID_4_ARGS_AND_GET_TARGET(var_id, arg1, arg2, arg3, arg4, target)
 

Variables

const uint32_t ui::kScreenReaderAndHTMLAccessibilityModes
 

Macro Definition Documentation

◆ COM_OBJECT_VALIDATE

#define COM_OBJECT_VALIDATE ( )
Value:
if (!GetDelegate()) \
return E_FAIL;

Definition at line 58 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_1_ARG

#define COM_OBJECT_VALIDATE_1_ARG (   arg)
Value:
if (!GetDelegate()) \
return E_FAIL; \
if (!arg) \
return E_INVALIDARG; \
*arg = {};

Definition at line 61 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_2_ARGS

#define COM_OBJECT_VALIDATE_2_ARGS (   arg1,
  arg2 
)
Value:
if (!GetDelegate()) \
return E_FAIL; \
if (!arg1) \
return E_INVALIDARG; \
*arg1 = {}; \
if (!arg2) \
return E_INVALIDARG; \
*arg2 = {};

Definition at line 67 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_3_ARGS

#define COM_OBJECT_VALIDATE_3_ARGS (   arg1,
  arg2,
  arg3 
)
Value:
if (!GetDelegate()) \
return E_FAIL; \
if (!arg1) \
return E_INVALIDARG; \
*arg1 = {}; \
if (!arg2) \
return E_INVALIDARG; \
*arg2 = {}; \
if (!arg3) \
return E_INVALIDARG; \
*arg3 = {};

Definition at line 76 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_4_ARGS

#define COM_OBJECT_VALIDATE_4_ARGS (   arg1,
  arg2,
  arg3,
  arg4 
)
Value:
if (!GetDelegate()) \
return E_FAIL; \
if (!arg1) \
return E_INVALIDARG; \
*arg1 = {}; \
if (!arg2) \
return E_INVALIDARG; \
*arg2 = {}; \
if (!arg3) \
return E_INVALIDARG; \
*arg3 = {}; \
if (!arg4) \
return E_INVALIDARG; \
*arg4 = {};

Definition at line 88 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_5_ARGS

#define COM_OBJECT_VALIDATE_5_ARGS (   arg1,
  arg2,
  arg3,
  arg4,
  arg5 
)
Value:
if (!GetDelegate()) \
return E_FAIL; \
if (!arg1) \
return E_INVALIDARG; \
*arg1 = {}; \
if (!arg2) \
return E_INVALIDARG; \
*arg2 = {}; \
if (!arg3) \
return E_INVALIDARG; \
*arg3 = {}; \
if (!arg4) \
return E_INVALIDARG; \
*arg4 = {}; \
if (!arg5) \
return E_INVALIDARG; \
*arg5 = {};

Definition at line 103 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_VAR_ID_1_ARG_AND_GET_TARGET

#define COM_OBJECT_VALIDATE_VAR_ID_1_ARG_AND_GET_TARGET (   var_id,
  arg,
  target 
)
Value:
if (!GetDelegate()) \
return E_FAIL; \
if (!arg) \
return E_INVALIDARG; \
*arg = {}; \
target = GetTargetFromChildID(var_id); \
if (!target) \
return E_INVALIDARG; \
if (!target->GetDelegate()) \
return E_INVALIDARG;
uint32_t * target

Definition at line 129 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_VAR_ID_2_ARGS_AND_GET_TARGET

#define COM_OBJECT_VALIDATE_VAR_ID_2_ARGS_AND_GET_TARGET (   var_id,
  arg1,
  arg2,
  target 
)
Value:
if (!GetDelegate()) \
return E_FAIL; \
if (!arg1) \
return E_INVALIDARG; \
*arg1 = {}; \
if (!arg2) \
return E_INVALIDARG; \
*arg2 = {}; \
target = GetTargetFromChildID(var_id); \
if (!target) \
return E_INVALIDARG; \
if (!target->GetDelegate()) \
return E_INVALIDARG;

Definition at line 140 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_VAR_ID_3_ARGS_AND_GET_TARGET

#define COM_OBJECT_VALIDATE_VAR_ID_3_ARGS_AND_GET_TARGET (   var_id,
  arg1,
  arg2,
  arg3,
  target 
)
Value:
if (!GetDelegate()) \
return E_FAIL; \
if (!arg1) \
return E_INVALIDARG; \
*arg1 = {}; \
if (!arg2) \
return E_INVALIDARG; \
*arg2 = {}; \
if (!arg3) \
return E_INVALIDARG; \
*arg3 = {}; \
target = GetTargetFromChildID(var_id); \
if (!target) \
return E_INVALIDARG; \
if (!target->GetDelegate()) \
return E_INVALIDARG;

Definition at line 155 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_VAR_ID_4_ARGS_AND_GET_TARGET

#define COM_OBJECT_VALIDATE_VAR_ID_4_ARGS_AND_GET_TARGET (   var_id,
  arg1,
  arg2,
  arg3,
  arg4,
  target 
)
Value:
if (!GetDelegate()) \
return E_FAIL; \
if (!arg1) \
return E_INVALIDARG; \
*arg1 = {}; \
if (!arg2) \
return E_INVALIDARG; \
*arg2 = {}; \
if (!arg3) \
return E_INVALIDARG; \
*arg3 = {}; \
if (!arg4) \
return E_INVALIDARG; \
*arg4 = {}; \
target = GetTargetFromChildID(var_id); \
if (!target) \
return E_INVALIDARG; \
if (!target->GetDelegate()) \
return E_INVALIDARG;

Definition at line 173 of file ax_platform_node_win.cc.

◆ COM_OBJECT_VALIDATE_VAR_ID_AND_GET_TARGET

#define COM_OBJECT_VALIDATE_VAR_ID_AND_GET_TARGET (   var_id,
  target 
)
Value:
if (!GetDelegate()) \
return E_FAIL; \
target = GetTargetFromChildID(var_id); \
if (!target) \
return E_INVALIDARG; \
if (!target->GetDelegate()) \
return E_INVALIDARG;

Definition at line 121 of file ax_platform_node_win.cc.