Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(842)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 14473011: Adds new experimental accessibility extension api to enable or disable native accessibility. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase from master. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_view_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <InputScope.h> 8 #include <InputScope.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after
2638 } 2638 }
2639 2639
2640 LRESULT RenderWidgetHostViewWin::OnGetObject(UINT message, WPARAM wparam, 2640 LRESULT RenderWidgetHostViewWin::OnGetObject(UINT message, WPARAM wparam,
2641 LPARAM lparam, BOOL& handled) { 2641 LPARAM lparam, BOOL& handled) {
2642 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnGetObject"); 2642 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnGetObject");
2643 if (kIdCustom == lparam) { 2643 if (kIdCustom == lparam) {
2644 // An MSAA client requestes our custom id. Assume that we have detected an 2644 // An MSAA client requestes our custom id. Assume that we have detected an
2645 // active windows screen reader. 2645 // active windows screen reader.
2646 BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected(); 2646 BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected();
2647 render_widget_host_->SetAccessibilityMode( 2647 render_widget_host_->SetAccessibilityMode(
2648 BrowserAccessibilityStateImpl::GetInstance()->GetAccessibilityMode()); 2648 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode());
2649 2649
2650 // Return with failure. 2650 // Return with failure.
2651 return static_cast<LRESULT>(0L); 2651 return static_cast<LRESULT>(0L);
2652 } 2652 }
2653 2653
2654 if (lparam != OBJID_CLIENT) { 2654 if (lparam != OBJID_CLIENT) {
2655 handled = false; 2655 handled = false;
2656 return static_cast<LRESULT>(0L); 2656 return static_cast<LRESULT>(0L);
2657 } 2657 }
2658 2658
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
3135 return new RenderWidgetHostViewWin(widget); 3135 return new RenderWidgetHostViewWin(widget);
3136 } 3136 }
3137 3137
3138 // static 3138 // static
3139 void RenderWidgetHostViewPort::GetDefaultScreenInfo( 3139 void RenderWidgetHostViewPort::GetDefaultScreenInfo(
3140 WebKit::WebScreenInfo* results) { 3140 WebKit::WebScreenInfo* results) {
3141 GetScreenInfoForWindow(results, 0); 3141 GetScreenInfoForWindow(results, 0);
3142 } 3142 }
3143 3143
3144 } // namespace content 3144 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/public/browser/browser_accessibility_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698