#include "flutter/shell/platform/linux/fl_windowing_channel.h"#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_channel.h"#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_method_codec.h"Go to the source code of this file.
Classes | |
| struct | _FlWindowingChannel | 
Functions | |
| static gboolean | is_valid_size_argument (FlValue *value) | 
| static FlWindowingSize * | parse_size_value (FlValue *value) | 
| static gboolean | parse_window_state_value (FlValue *value, FlWindowState *state) | 
| static const gchar * | window_state_to_string (FlWindowState state) | 
| static FlMethodResponse * | create_regular (FlWindowingChannel *self, FlValue *args) | 
| static FlMethodResponse * | modify_regular (FlWindowingChannel *self, FlValue *args) | 
| static FlMethodResponse * | destroy_window (FlWindowingChannel *self, FlValue *args) | 
| static void | method_call_cb (FlMethodChannel *channel, FlMethodCall *method_call, gpointer user_data) | 
| static void | fl_windowing_channel_dispose (GObject *object) | 
| static void | fl_windowing_channel_class_init (FlWindowingChannelClass *klass) | 
| static void | fl_windowing_channel_init (FlWindowingChannel *self) | 
| FlWindowingChannel * | fl_windowing_channel_new (FlBinaryMessenger *messenger, FlWindowingChannelVTable *vtable, gpointer user_data) | 
| FlMethodResponse * | fl_windowing_channel_make_create_regular_response (int64_t view_id, FlWindowingSize *size, FlWindowState state) | 
| FlMethodResponse * | fl_windowing_channel_make_modify_regular_response () | 
| FlMethodResponse * | fl_windowing_channel_make_destroy_window_response () | 
Variables | |
| static constexpr char | kChannelName [] = "flutter/windowing" | 
| static constexpr char | kBadArgumentsError [] = "Bad Arguments" | 
| static constexpr char | kCreateRegularMethod [] = "createRegular" | 
| static constexpr char | kModifyRegularMethod [] = "modifyRegular" | 
| static constexpr char | kDestroyWindowMethod [] = "destroyWindow" | 
| static constexpr char | kSizeKey [] = "size" | 
| static constexpr char | kMinSizeKey [] = "minSize" | 
| static constexpr char | kMaxSizeKey [] = "maxSize" | 
| static constexpr char | kTitleKey [] = "title" | 
| static constexpr char | kStateKey [] = "state" | 
| static constexpr char | kViewIdKey [] = "viewId" | 
      
  | 
  static | 
Definition at line 93 of file fl_windowing_channel.cc.
References args, fl_method_error_response_new(), fl_value_get_string(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_MAP, FL_VALUE_TYPE_STRING, FL_WINDOW_STATE_UNDEFINED, is_valid_size_argument(), kBadArgumentsError, kMaxSizeKey, kMinSizeKey, kSizeKey, kStateKey, kTitleKey, parse_size_value(), parse_window_state_value(), and state.
Referenced by method_call_cb().
      
  | 
  static | 
Definition at line 197 of file fl_windowing_channel.cc.
References args, fl_method_error_response_new(), fl_value_get_int(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_INT, FL_VALUE_TYPE_MAP, kBadArgumentsError, and kViewIdKey.
Referenced by method_call_cb().
      
  | 
  static | 
Definition at line 251 of file fl_windowing_channel.cc.
References fl_windowing_channel_dispose().
      
  | 
  static | 
Definition at line 243 of file fl_windowing_channel.cc.
Referenced by fl_windowing_channel_class_init().
      
  | 
  static | 
Definition at line 255 of file fl_windowing_channel.cc.
| FlMethodResponse* fl_windowing_channel_make_create_regular_response | ( | int64_t | view_id, | 
| FlWindowingSize * | size, | ||
| FlWindowState | state | ||
| ) | 
Definition at line 275 of file fl_windowing_channel.cc.
References fl_method_success_response_new(), fl_value_append_take(), fl_value_new_float(), fl_value_new_int(), fl_value_new_list(), fl_value_new_map(), fl_value_new_string(), fl_value_set_string(), fl_value_set_string_take(), FlWindowingSize::height, kSizeKey, kStateKey, kViewIdKey, state, FlWindowingSize::width, and window_state_to_string().
Referenced by create_regular().
| FlMethodResponse* fl_windowing_channel_make_destroy_window_response | ( | ) | 
Definition at line 294 of file fl_windowing_channel.cc.
References fl_method_success_response_new().
Referenced by destroy_window().
| FlMethodResponse* fl_windowing_channel_make_modify_regular_response | ( | ) | 
Definition at line 290 of file fl_windowing_channel.cc.
References fl_method_success_response_new().
Referenced by modify_regular().
| FlWindowingChannel* fl_windowing_channel_new | ( | FlBinaryMessenger * | messenger, | 
| FlWindowingChannelVTable * | vtable, | ||
| gpointer | user_data | ||
| ) | 
fl_windowing_channel_new: @messenger: an #FlBinaryMessenger @vtable: callbacks for incoming method calls. @user_data: data to pass in callbacks.
Creates a new channel that sends handled windowing requests from the platform.
Returns: a new #FlWindowingChannel
Definition at line 257 of file fl_windowing_channel.cc.
References fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_standard_method_codec_new(), kChannelName, method_call_cb(), and user_data.
Referenced by fl_windowing_handler_new().
      
  | 
  static | 
Definition at line 39 of file fl_windowing_channel.cc.
References fl_value_get_length(), fl_value_get_list_value(), fl_value_get_type(), FL_VALUE_TYPE_FLOAT, FL_VALUE_TYPE_LIST, and value.
Referenced by create_regular(), and modify_regular().
      
  | 
  static | 
Definition at line 216 of file fl_windowing_channel.cc.
References args, create_regular(), destroy_window(), error, fl_method_call_get_args(), fl_method_call_get_name(), fl_method_call_respond(), fl_method_not_implemented_response_new(), kCreateRegularMethod, kDestroyWindowMethod, kModifyRegularMethod, method_call, modify_regular(), and user_data.
Referenced by fl_windowing_channel_new().
      
  | 
  static | 
Definition at line 150 of file fl_windowing_channel.cc.
References args, fl_method_error_response_new(), fl_value_get_int(), fl_value_get_string(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_INT, FL_VALUE_TYPE_MAP, FL_VALUE_TYPE_STRING, FL_WINDOW_STATE_UNDEFINED, is_valid_size_argument(), kBadArgumentsError, kSizeKey, kStateKey, kTitleKey, kViewIdKey, parse_size_value(), parse_window_state_value(), and state.
Referenced by method_call_cb().
      
  | 
  static | 
Definition at line 50 of file fl_windowing_channel.cc.
References fl_value_get_float(), fl_value_get_list_value(), FlWindowingSize::height, value, and FlWindowingSize::width.
Referenced by create_regular(), and modify_regular().
      
  | 
  static | 
Definition at line 57 of file fl_windowing_channel.cc.
References fl_value_get_string(), fl_value_get_type(), FL_VALUE_TYPE_STRING, FL_WINDOW_STATE_MAXIMIZED, FL_WINDOW_STATE_MINIMIZED, FL_WINDOW_STATE_RESTORED, state, TRUE, and value.
Referenced by create_regular(), and modify_regular().
      
  | 
  static | 
Definition at line 77 of file fl_windowing_channel.cc.
References FL_WINDOW_STATE_MAXIMIZED, FL_WINDOW_STATE_MINIMIZED, FL_WINDOW_STATE_RESTORED, FL_WINDOW_STATE_UNDEFINED, and state.
Referenced by fl_windowing_channel_make_create_regular_response().
      
  | 
  staticconstexpr | 
Definition at line 11 of file fl_windowing_channel.cc.
Referenced by create_regular(), destroy_window(), and modify_regular().
      
  | 
  staticconstexpr | 
Definition at line 10 of file fl_windowing_channel.cc.
Referenced by fl_windowing_channel_new().
      
  | 
  staticconstexpr | 
Definition at line 13 of file fl_windowing_channel.cc.
Referenced by method_call_cb().
      
  | 
  staticconstexpr | 
Definition at line 15 of file fl_windowing_channel.cc.
Referenced by method_call_cb().
      
  | 
  staticconstexpr | 
Definition at line 19 of file fl_windowing_channel.cc.
Referenced by create_regular().
      
  | 
  staticconstexpr | 
Definition at line 18 of file fl_windowing_channel.cc.
Referenced by create_regular().
      
  | 
  staticconstexpr | 
Definition at line 14 of file fl_windowing_channel.cc.
Referenced by method_call_cb().
      
  | 
  staticconstexpr | 
Definition at line 17 of file fl_windowing_channel.cc.
Referenced by create_regular(), fl_windowing_channel_make_create_regular_response(), and modify_regular().
      
  | 
  staticconstexpr | 
Definition at line 21 of file fl_windowing_channel.cc.
Referenced by create_regular(), fl_windowing_channel_make_create_regular_response(), and modify_regular().
      
  | 
  staticconstexpr | 
Definition at line 20 of file fl_windowing_channel.cc.
Referenced by create_regular(), and modify_regular().
      
  | 
  staticconstexpr | 
Definition at line 22 of file fl_windowing_channel.cc.
Referenced by destroy_window(), fl_windowing_channel_make_create_regular_response(), and modify_regular().