| OLD | NEW |
| 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 2624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2635 } | 2635 } |
| 2636 | 2636 |
| 2637 LRESULT RenderWidgetHostViewWin::OnGetObject(UINT message, WPARAM wparam, | 2637 LRESULT RenderWidgetHostViewWin::OnGetObject(UINT message, WPARAM wparam, |
| 2638 LPARAM lparam, BOOL& handled) { | 2638 LPARAM lparam, BOOL& handled) { |
| 2639 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnGetObject"); | 2639 TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnGetObject"); |
| 2640 if (kIdCustom == lparam) { | 2640 if (kIdCustom == lparam) { |
| 2641 // An MSAA client requestes our custom id. Assume that we have detected an | 2641 // An MSAA client requestes our custom id. Assume that we have detected an |
| 2642 // active windows screen reader. | 2642 // active windows screen reader. |
| 2643 BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected(); | 2643 BrowserAccessibilityState::GetInstance()->OnScreenReaderDetected(); |
| 2644 render_widget_host_->SetAccessibilityMode( | 2644 render_widget_host_->SetAccessibilityMode( |
| 2645 BrowserAccessibilityStateImpl::GetInstance()->GetAccessibilityMode()); | 2645 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()); |
| 2646 | 2646 |
| 2647 // Return with failure. | 2647 // Return with failure. |
| 2648 return static_cast<LRESULT>(0L); | 2648 return static_cast<LRESULT>(0L); |
| 2649 } | 2649 } |
| 2650 | 2650 |
| 2651 if (lparam != OBJID_CLIENT) { | 2651 if (lparam != OBJID_CLIENT) { |
| 2652 handled = false; | 2652 handled = false; |
| 2653 return static_cast<LRESULT>(0L); | 2653 return static_cast<LRESULT>(0L); |
| 2654 } | 2654 } |
| 2655 | 2655 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3132 return new RenderWidgetHostViewWin(widget); | 3132 return new RenderWidgetHostViewWin(widget); |
| 3133 } | 3133 } |
| 3134 | 3134 |
| 3135 // static | 3135 // static |
| 3136 void RenderWidgetHostViewPort::GetDefaultScreenInfo( | 3136 void RenderWidgetHostViewPort::GetDefaultScreenInfo( |
| 3137 WebKit::WebScreenInfo* results) { | 3137 WebKit::WebScreenInfo* results) { |
| 3138 GetScreenInfoForWindow(results, 0); | 3138 GetScreenInfoForWindow(results, 0); |
| 3139 } | 3139 } |
| 3140 | 3140 |
| 3141 } // namespace content | 3141 } // namespace content |
| OLD | NEW |