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

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

Issue 10793032: Merge 147074 - Don't turn on accessibility automatically on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 browser_accessibility_manager_.reset( 1490 browser_accessibility_manager_.reset(
1491 BrowserAccessibilityManager::CreateEmptyDocument( 1491 BrowserAccessibilityManager::CreateEmptyDocument(
1492 parent, 1492 parent,
1493 static_cast<content::AccessibilityNodeData::State>(0), 1493 static_cast<content::AccessibilityNodeData::State>(0),
1494 this)); 1494 this));
1495 } 1495 }
1496 browser_accessibility_manager_->OnAccessibilityNotifications(params); 1496 browser_accessibility_manager_->OnAccessibilityNotifications(params);
1497 } 1497 }
1498 1498
1499 AtkObject* RenderWidgetHostViewGtk::GetAccessible() { 1499 AtkObject* RenderWidgetHostViewGtk::GetAccessible() {
1500 RenderWidgetHostImpl::From(GetRenderWidgetHost())->
1501 SetAccessibilityMode(AccessibilityModeComplete);
1502
1503 if (!browser_accessibility_manager_.get()) { 1500 if (!browser_accessibility_manager_.get()) {
1504 GtkWidget* parent = gtk_widget_get_parent(view_.get()); 1501 GtkWidget* parent = gtk_widget_get_parent(view_.get());
1505 browser_accessibility_manager_.reset( 1502 browser_accessibility_manager_.reset(
1506 BrowserAccessibilityManager::CreateEmptyDocument( 1503 BrowserAccessibilityManager::CreateEmptyDocument(
1507 parent, 1504 parent,
1508 static_cast<content::AccessibilityNodeData::State>(0), 1505 static_cast<content::AccessibilityNodeData::State>(0),
1509 this)); 1506 this));
1510 } 1507 }
1511 BrowserAccessibilityGtk* root = 1508 BrowserAccessibilityGtk* root =
1512 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); 1509 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk();
1513 1510
1514 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); 1511 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER);
1515 return root->GetAtkObject(); 1512 return root->GetAtkObject();
1516 } 1513 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698