parent
					
						
							
								b48788af43
							
						
					
				
			
			
				commit
				
					
						c474ad0913
					
				
			
		
					 1 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -84,6 +84,20 @@ bool NativeWindowViews::PreHandleMSG(
 | 
			
		|||
  NotifyWindowMessage(message, w_param, l_param);
 | 
			
		||||
 | 
			
		||||
  switch (message) {
 | 
			
		||||
    // Screen readers send WM_GETOBJECT in order to get the accessibility
 | 
			
		||||
    // object, so take this opportunity to push Chromium into accessible
 | 
			
		||||
    // mode if it isn't already, always say we didn't handle the message
 | 
			
		||||
    // because we still want Chromium to handle returning the actual
 | 
			
		||||
    // accessibility object.
 | 
			
		||||
    case WM_GETOBJECT: {
 | 
			
		||||
      const DWORD obj_id = static_cast<DWORD>(l_param);
 | 
			
		||||
      if (obj_id == OBJID_CLIENT) {
 | 
			
		||||
        const auto axState = content::BrowserAccessibilityState::GetInstance();
 | 
			
		||||
        if (axState && !axState->IsAccessibleBrowser())
 | 
			
		||||
          axState->OnScreenReaderDetected();
 | 
			
		||||
      }
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
    case WM_COMMAND:
 | 
			
		||||
      // Handle thumbar button click message.
 | 
			
		||||
      if (HIWORD(w_param) == THBN_CLICKED)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue