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_gtk.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
6 | 6 |
7 // If this gets included after the gtk headers, then a bunch of compiler | 7 // If this gets included after the gtk headers, then a bunch of compiler |
8 // errors happen because of a "#define Status int" in Xlib.h, which interacts | 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts |
9 // badly with net::URLRequestStatus::Status. | 9 // badly with net::URLRequestStatus::Status. |
10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1492 browser_accessibility_manager_.reset( | 1492 browser_accessibility_manager_.reset( |
1493 BrowserAccessibilityManager::CreateEmptyDocument( | 1493 BrowserAccessibilityManager::CreateEmptyDocument( |
1494 parent, | 1494 parent, |
1495 static_cast<content::AccessibilityNodeData::State>(0), | 1495 static_cast<content::AccessibilityNodeData::State>(0), |
1496 this)); | 1496 this)); |
1497 } | 1497 } |
1498 browser_accessibility_manager_->OnAccessibilityNotifications(params); | 1498 browser_accessibility_manager_->OnAccessibilityNotifications(params); |
1499 } | 1499 } |
1500 | 1500 |
1501 AtkObject* RenderWidgetHostViewGtk::GetAccessible() { | 1501 AtkObject* RenderWidgetHostViewGtk::GetAccessible() { |
1502 RenderWidgetHostImpl::From(GetRenderWidgetHost())-> | |
1503 SetAccessibilityMode(AccessibilityModeComplete); | |
1504 | |
1505 if (!browser_accessibility_manager_.get()) { | 1502 if (!browser_accessibility_manager_.get()) { |
1506 GtkWidget* parent = gtk_widget_get_parent(view_.get()); | 1503 GtkWidget* parent = gtk_widget_get_parent(view_.get()); |
1507 browser_accessibility_manager_.reset( | 1504 browser_accessibility_manager_.reset( |
1508 BrowserAccessibilityManager::CreateEmptyDocument( | 1505 BrowserAccessibilityManager::CreateEmptyDocument( |
1509 parent, | 1506 parent, |
1510 static_cast<content::AccessibilityNodeData::State>(0), | 1507 static_cast<content::AccessibilityNodeData::State>(0), |
1511 this)); | 1508 this)); |
1512 } | 1509 } |
1513 BrowserAccessibilityGtk* root = | 1510 BrowserAccessibilityGtk* root = |
1514 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); | 1511 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); |
1515 | 1512 |
1516 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); | 1513 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); |
1517 return root->GetAtkObject(); | 1514 return root->GetAtkObject(); |
1518 } | 1515 } |
OLD | NEW |