Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
wm_builders.cc
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#include "flutter/shell/platform/windows/testing/wm_builders.h"
6
7namespace flutter {
8namespace testing {
9
11 LPARAM lParam = (repeat_count << 0) | (scan_code << 16) | (extended << 24) |
12 (prev_state << 30);
13 return Win32Message{
14 .message = WM_KEYDOWN,
15 .wParam = key,
16 .lParam = lParam,
17 .expected_result = expected_result,
18 };
19}
20
22 LPARAM lParam = (1 /* repeat_count */ << 0) | (scan_code << 16) |
23 (extended << 24) | (!overwrite_prev_state_0 << 30) |
24 (1 /* transition */ << 31);
25 return Win32Message{
26 .message = WM_KEYUP,
27 .wParam = key,
28 .lParam = lParam,
29 .expected_result = expected_result,
30 };
31}
32
34 LPARAM lParam = (repeat_count << 0) | (scan_code << 16) | (extended << 24) |
35 (bit25 << 25) | (context << 29) | (prev_state << 30) |
36 (transition << 31);
37 return Win32Message{
38 .message = WM_CHAR,
39 .wParam = char_code,
40 .lParam = lParam,
41 .expected_result = expected_result,
42 };
43}
44
46 LPARAM lParam = (repeat_count << 0) | (scan_code << 16) | (extended << 24) |
47 (context << 29) | (prev_state << 30) |
48 (0 /* transition */ << 31);
49 return Win32Message{
50 .message = WM_SYSKEYDOWN,
51 .wParam = key,
52 .lParam = lParam,
53 .expected_result = expected_result,
54 };
55}
56
58 LPARAM lParam = (1 /* repeat_count */ << 0) | (scan_code << 16) |
59 (extended << 24) | (context << 29) |
60 (1 /* prev_state */ << 30) | (1 /* transition */ << 31);
61 return Win32Message{
62 .message = WM_SYSKEYUP,
63 .wParam = key,
64 .lParam = lParam,
65 .expected_result = expected_result,
66 };
67}
68
70 LPARAM lParam = (repeat_count << 0) | (scan_code << 16) | (extended << 24) |
71 (context << 30) | (prev_state << 30) | (transition << 31);
72 return Win32Message{
73 .message = WM_DEADCHAR,
74 .wParam = char_code,
75 .lParam = lParam,
76 .expected_result = expected_result,
77 };
78}
79
80} // namespace testing
81} // namespace flutter
Win32Message Build(LRESULT expected_result=kWmResultDontCheck)
WmFieldTransitionState transition
WmFieldPrevState prev_state
Win32Message Build(LRESULT expected_result=kWmResultDontCheck)
WmFieldTransitionState transition
Win32Message Build(LRESULT expected_result=kWmResultDontCheck)
Win32Message Build(LRESULT expected_result=kWmResultDontCheck)
Win32Message Build(LRESULT expected_result=kWmResultDontCheck)
Win32Message Build(LRESULT expected_result=kWmResultDontCheck)
LONG_PTR LRESULT
LONG_PTR LPARAM