Flutter Engine
cursor_handler.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_CURSOR_HANDLER_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_CURSOR_HANDLER_H_
7 
8 #include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/binary_messenger.h"
9 #include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/encodable_value.h"
10 #include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/method_channel.h"
11 #include "flutter/shell/platform/windows/public/flutter_windows.h"
12 #include "flutter/shell/platform/windows/window_binding_handler.h"
13 
14 namespace flutter {
15 
16 // Handler for the cursor system channel.
18  public:
19  explicit CursorHandler(flutter::BinaryMessenger* messenger,
20  WindowBindingHandler* delegate);
21 
22  private:
23  // Called when a method is called on |channel_|;
24  void HandleMethodCall(
26  std::unique_ptr<flutter::MethodResult<EncodableValue>> result);
27 
28  // The MethodChannel used for communication with the Flutter engine.
29  std::unique_ptr<flutter::MethodChannel<EncodableValue>> channel_;
30 
31  // The delegate for cursor updates.
32  WindowBindingHandler* delegate_;
33 };
34 
35 } // namespace flutter
36 
37 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_CURSOR_HANDLER_H_
G_BEGIN_DECLS FlMethodCall * method_call
CursorHandler(flutter::BinaryMessenger *messenger, WindowBindingHandler *delegate)