Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix syntax
  • Loading branch information
dkwingsmt committed Jul 14, 2020
commit d2faebdeccc83373541fd3062fbf1b23d353140b
54 changes: 27 additions & 27 deletions shell/platform/windows/win32_flutter_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,32 @@ constexpr int kScrollOffsetMultiplier = 20;
// rendering/mouse_cursor.dart.
static HCURSOR GetCursorByName(const std::string& cursor_name) {
static auto* cursors = new std::map<std::string, const wchar_t*>{
{"allScroll" : IDC_SIZEALL},
{"basic" : IDC_ARROW},
{"click" : IDC_HAND},
{"forbidden" : IDC_NO},
{"help" : IDC_HELP},
{"move" : IDC_SIZEALL},
{"none" : nullptr},
{"noDrop" : IDC_NO},
{"precise" : IDC_CROSS},
{"progress" : IDC_APPSTARTING},
{"text" : IDC_IBEAM},
{"resizeColumn" : IDC_SIZEWE},
{"resizeDown" : IDC_SIZENS},
{"resizeDownLeft" : IDC_SIZENESW},
{"resizeDownRight" : IDC_SIZENWSE},
{"resizeLeft" : IDC_SIZEWE},
{"resizeLeftRight" : IDC_SIZEWE},
{"resizeRight" : IDC_SIZEWE},
{"resizeRow" : IDC_SIZENS},
{"resizeUp" : IDC_SIZENS},
{"resizeUpDown" : IDC_SIZENS},
{"resizeUpLeft" : IDC_SIZENWSE},
{"resizeUpRight" : IDC_SIZENESW},
{"resizeUpLeftDownRight" : IDC_SIZENWSE},
{"resizeUpRightDownLeft" : IDC_SIZENESW},
{"wait" : IDC_WAIT},
{"allScroll", IDC_SIZEALL},
{"basic", IDC_ARROW},
{"click", IDC_HAND},
{"forbidden", IDC_NO},
{"help", IDC_HELP},
{"move", IDC_SIZEALL},
{"none", nullptr},
{"noDrop", IDC_NO},
{"precise", IDC_CROSS},
{"progress", IDC_APPSTARTING},
{"text", IDC_IBEAM},
{"resizeColumn", IDC_SIZEWE},
{"resizeDown", IDC_SIZENS},
{"resizeDownLeft", IDC_SIZENESW},
{"resizeDownRight", IDC_SIZENWSE},
{"resizeLeft", IDC_SIZEWE},
{"resizeLeftRight", IDC_SIZEWE},
{"resizeRight", IDC_SIZEWE},
{"resizeRow", IDC_SIZENS},
{"resizeUp", IDC_SIZENS},
{"resizeUpDown", IDC_SIZENS},
{"resizeUpLeft", IDC_SIZENWSE},
{"resizeUpRight", IDC_SIZENESW},
{"resizeUpLeftDownRight", IDC_SIZENWSE},
{"resizeUpRightDownLeft", IDC_SIZENESW},
{"wait", IDC_WAIT},
};
const wchar_t* idc_name = IDC_ARROW;
auto it = cursors->find(cursor_name);
Expand All @@ -61,7 +61,7 @@ static HCURSOR GetCursorByName(const std::string& cursor_name) {
} // namespace

Win32FlutterWindow::Win32FlutterWindow(int width, int height)
: binding_handler_delegate_(nullptr) {
, binding_handler_delegate_(nullptr) {
Win32Window::InitializeChild("FLUTTERVIEW", width, height);
current_cursor_ = ::LoadCursor(nullptr, IDC_ARROW);
}
Expand Down