OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/render_widget_host_view_win.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/l10n_util_win.h" | 8 #include "app/l10n_util_win.h" |
9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 } | 1504 } |
1505 } | 1505 } |
1506 | 1506 |
1507 void RenderWidgetHostViewWin::OnAccessibilityObjectStateChange(int acc_obj_id) { | 1507 void RenderWidgetHostViewWin::OnAccessibilityObjectStateChange(int acc_obj_id) { |
1508 if (browser_accessibility_manager_.get()) { | 1508 if (browser_accessibility_manager_.get()) { |
1509 browser_accessibility_manager_->OnAccessibilityObjectStateChange( | 1509 browser_accessibility_manager_->OnAccessibilityObjectStateChange( |
1510 acc_obj_id); | 1510 acc_obj_id); |
1511 } | 1511 } |
1512 } | 1512 } |
1513 | 1513 |
| 1514 void RenderWidgetHostViewWin::OnAccessibilityObjectChildrenChange( |
| 1515 const std::vector<webkit_glue::WebAccessibility>& acc_changes) { |
| 1516 if (browser_accessibility_manager_.get()) { |
| 1517 browser_accessibility_manager_->OnAccessibilityObjectChildrenChange( |
| 1518 acc_changes); |
| 1519 } |
| 1520 } |
| 1521 |
1514 void RenderWidgetHostViewWin::Observe(NotificationType type, | 1522 void RenderWidgetHostViewWin::Observe(NotificationType type, |
1515 const NotificationSource& source, | 1523 const NotificationSource& source, |
1516 const NotificationDetails& details) { | 1524 const NotificationDetails& details) { |
1517 DCHECK(type == NotificationType::RENDERER_PROCESS_TERMINATED); | 1525 DCHECK(type == NotificationType::RENDERER_PROCESS_TERMINATED); |
1518 | 1526 |
1519 // Get the RenderProcessHost that posted this notification, and exit | 1527 // Get the RenderProcessHost that posted this notification, and exit |
1520 // if it's not the one associated with this host view. | 1528 // if it's not the one associated with this host view. |
1521 RenderProcessHost* render_process_host = | 1529 RenderProcessHost* render_process_host = |
1522 Source<RenderProcessHost>(source).ptr(); | 1530 Source<RenderProcessHost>(source).ptr(); |
1523 DCHECK(render_process_host); | 1531 DCHECK(render_process_host); |
(...skipping 22 matching lines...) Expand all Loading... |
1546 if (!browser_accessibility_manager_.get() || | 1554 if (!browser_accessibility_manager_.get() || |
1547 !render_widget_host_ || | 1555 !render_widget_host_ || |
1548 !render_widget_host_->process() || | 1556 !render_widget_host_->process() || |
1549 !render_widget_host_->process()->HasConnection()) { | 1557 !render_widget_host_->process()->HasConnection()) { |
1550 return; | 1558 return; |
1551 } | 1559 } |
1552 | 1560 |
1553 render_widget_host_->AccessibilityDoDefaultAction(acc_obj_id); | 1561 render_widget_host_->AccessibilityDoDefaultAction(acc_obj_id); |
1554 } | 1562 } |
1555 | 1563 |
| 1564 void RenderWidgetHostViewWin::AccessibilityObjectChildrenChangeAck() { |
| 1565 render_widget_host_->AccessibilityObjectChildrenChangeAck(); |
| 1566 } |
| 1567 |
1556 LRESULT RenderWidgetHostViewWin::OnGetObject(UINT message, WPARAM wparam, | 1568 LRESULT RenderWidgetHostViewWin::OnGetObject(UINT message, WPARAM wparam, |
1557 LPARAM lparam, BOOL& handled) { | 1569 LPARAM lparam, BOOL& handled) { |
1558 if (lparam != OBJID_CLIENT) { | 1570 if (lparam != OBJID_CLIENT) { |
1559 handled = false; | 1571 handled = false; |
1560 return static_cast<LRESULT>(0L); | 1572 return static_cast<LRESULT>(0L); |
1561 } | 1573 } |
1562 | 1574 |
1563 if (!browser_accessibility_manager_.get()) { | 1575 if (!browser_accessibility_manager_.get()) { |
1564 render_widget_host_->EnableRendererAccessibility(); | 1576 render_widget_host_->EnableRendererAccessibility(); |
1565 | 1577 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1722 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 1734 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( |
1723 gfx::NativeView native_view) { | 1735 gfx::NativeView native_view) { |
1724 if (::IsWindow(native_view)) { | 1736 if (::IsWindow(native_view)) { |
1725 HANDLE raw_render_host_view = ::GetProp(native_view, | 1737 HANDLE raw_render_host_view = ::GetProp(native_view, |
1726 kRenderWidgetHostViewKey); | 1738 kRenderWidgetHostViewKey); |
1727 if (raw_render_host_view) | 1739 if (raw_render_host_view) |
1728 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view); | 1740 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view); |
1729 } | 1741 } |
1730 return NULL; | 1742 return NULL; |
1731 } | 1743 } |
OLD | NEW |