chore: fix various chromium-style errors in windows (#13394)
These errors weren't previously picked up because the GN build wasn't running on Windows.
This commit is contained in:
parent
1c64ac8c41
commit
6f91af9343
24 changed files with 100 additions and 57 deletions
|
@ -164,7 +164,7 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
|
|||
|
||||
const DWORD obj_id = static_cast<DWORD>(l_param);
|
||||
|
||||
if (obj_id != OBJID_CLIENT) {
|
||||
if (obj_id != static_cast<DWORD>(OBJID_CLIENT)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
|
|||
|
||||
checked_for_a11y_support_ = true;
|
||||
|
||||
const auto axState = content::BrowserAccessibilityState::GetInstance();
|
||||
auto* const axState = content::BrowserAccessibilityState::GetInstance();
|
||||
if (axState && !axState->IsAccessibleBrowser()) {
|
||||
axState->OnScreenReaderDetected();
|
||||
Browser::Get()->OnAccessibilitySupportChanged();
|
||||
|
@ -278,6 +278,8 @@ void NativeWindowViews::HandleSizeEvent(WPARAM w_param, LPARAM l_param) {
|
|||
NotifyWindowRestore();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -350,7 +352,7 @@ LRESULT CALLBACK NativeWindowViews::MouseHookProc(int n_code,
|
|||
// the cursor since they are in a state where they would otherwise ignore all
|
||||
// mouse input.
|
||||
if (w_param == WM_MOUSEMOVE) {
|
||||
for (auto window : forwarding_windows_) {
|
||||
for (auto* window : forwarding_windows_) {
|
||||
// At first I considered enumerating windows to check whether the cursor
|
||||
// was directly above the window, but since nothing bad seems to happen
|
||||
// if we post the message even if some other window occludes it I have
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue