Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6336e0e

Browse files
committed
format
1 parent dd7f87b commit 6336e0e

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

shell/platform/windows/flutter_window_win32_unittests.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ class SpyKeyboardKeyHandler : public KeyboardHandlerBase {
3636
public:
3737
SpyKeyboardKeyHandler(flutter::BinaryMessenger* messenger,
3838
KeyboardKeyHandler::EventDispatcher dispatch_event) {
39-
real_implementation_ =
40-
std::make_unique<KeyboardKeyHandler>(dispatch_event);
39+
real_implementation_ = std::make_unique<KeyboardKeyHandler>(dispatch_event);
4140
real_implementation_->AddDelegate(
4241
std::make_unique<KeyboardKeyChannelHandler>(messenger));
4342
ON_CALL(*this, KeyboardHook(_, _, _, _, _, _))

shell/platform/windows/flutter_windows_view.cc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ void FlutterWindowsView::SetEngine(
5858
auto internal_plugin_messenger = internal_plugin_registrar_->messenger();
5959
InitializeKeyboard();
6060
platform_handler_ = PlatformHandler::Create(internal_plugin_messenger, this);
61-
cursor_handler_ = std::make_unique<CursorHandler>(
62-
internal_plugin_messenger, binding_handler_.get());
61+
cursor_handler_ = std::make_unique<CursorHandler>(internal_plugin_messenger,
62+
binding_handler_.get());
6363

6464
PhysicalWindowBounds bounds = binding_handler_->GetPhysicalWindowBounds();
6565

@@ -80,7 +80,8 @@ FlutterWindowsView::CreateKeyboardKeyHandler(
8080
// of the event. In order to allow the same real event in the future, the
8181
// handler is "toggled" when events pass through, therefore the redispatching
8282
// algorithm does not allow more than 1 handler that takes |SendInput|.
83-
auto keyboard_key_handler = std::make_unique<KeyboardKeyHandler>(dispatch_event);
83+
auto keyboard_key_handler =
84+
std::make_unique<KeyboardKeyHandler>(dispatch_event);
8485
keyboard_key_handler->AddDelegate(
8586
std::make_unique<KeyboardKeyEmbedderHandler>(
8687
[this](const FlutterKeyEvent& event, FlutterKeyEventCallback callback,
@@ -267,12 +268,10 @@ void FlutterWindowsView::InitializeKeyboard() {
267268
auto internal_plugin_messenger = internal_plugin_registrar_->messenger();
268269
#ifdef WINUWP
269270
KeyboardKeyHandler::EventDispatcher dispatch_event = nullptr;
270-
KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state =
271-
nullptr;
271+
KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state = nullptr;
272272
#else
273273
KeyboardKeyHandler::EventDispatcher dispatch_event = SendInput;
274-
KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state =
275-
GetKeyState;
274+
KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state = GetKeyState;
276275
#endif
277276
keyboard_key_handler_ = std::move(CreateKeyboardKeyHandler(
278277
internal_plugin_messenger, dispatch_event, get_key_state));

shell/platform/windows/text_input_plugin.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ class TextInputPlugin {
3030
virtual ~TextInputPlugin();
3131

3232
virtual void KeyboardHook(int key,
33-
int scancode,
34-
int action,
35-
char32_t character,
36-
bool extended,
37-
bool was_down);
33+
int scancode,
34+
int action,
35+
char32_t character,
36+
bool extended,
37+
bool was_down);
3838

3939
virtual void TextHook(const std::u16string& text);
4040

0 commit comments

Comments
 (0)