Flutter Windows Embedder
windows_proc_table.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 
6 
7 namespace flutter {
8 
10  user32_ = fml::NativeLibrary::Create("user32.dll");
11  get_pointer_type_ =
12  user32_->ResolveFunction<GetPointerType_*>("GetPointerType");
13 }
14 
16  user32_ = nullptr;
17 }
18 
19 BOOL WindowsProcTable::GetPointerType(UINT32 pointer_id,
20  POINTER_INPUT_TYPE* pointer_type) {
21  if (!get_pointer_type_.has_value()) {
22  return FALSE;
23  }
24 
25  return get_pointer_type_.value()(pointer_id, pointer_type);
26 }
27 
29  PULONG count,
30  PZZWSTR languages,
31  PULONG length) const {
32  return ::GetThreadPreferredUILanguages(flags, count, languages, length);
33 }
34 
35 } // namespace flutter
flutter::WindowsProcTable::GetPointerType
virtual BOOL GetPointerType(UINT32 pointer_id, POINTER_INPUT_TYPE *pointer_type)
Definition: windows_proc_table.cc:19
flutter::WindowsProcTable::~WindowsProcTable
virtual ~WindowsProcTable()
Definition: windows_proc_table.cc:15
windows_proc_table.h
flutter::WindowsProcTable::WindowsProcTable
WindowsProcTable()
Definition: windows_proc_table.cc:9
flutter
Definition: accessibility_bridge_windows.cc:11
flutter::WindowsProcTable::GetThreadPreferredUILanguages
virtual LRESULT GetThreadPreferredUILanguages(DWORD flags, PULONG count, PZZWSTR languages, PULONG length) const
Definition: windows_proc_table.cc:28