summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/accessible_widget_helper_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-27 23:07:47 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-27 23:07:47 +0000
commite7cb7c391191e5b0973cdc6f533055aa227463d3 (patch)
tree42026d7e64be842f01fb58b92e2e375d9c58fed1 /chrome/browser/gtk/accessible_widget_helper_gtk.cc
parent23eda2f57f058bf1fb0633494c53d33c9f0f0182 (diff)
downloadchromium_src-e7cb7c391191e5b0973cdc6f533055aa227463d3.zip
chromium_src-e7cb7c391191e5b0973cdc6f533055aa227463d3.tar.gz
chromium_src-e7cb7c391191e5b0973cdc6f533055aa227463d3.tar.bz2
revert 37335:
Add an accessibility API for events raised outside of the web content. BUG=none TEST=none patch by Dominic Mazzoni <dmazzoni [at] google> review url: http://codereview.chromium.org/402099/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/accessible_widget_helper_gtk.cc')
-rw-r--r--chrome/browser/gtk/accessible_widget_helper_gtk.cc41
1 files changed, 0 insertions, 41 deletions
diff --git a/chrome/browser/gtk/accessible_widget_helper_gtk.cc b/chrome/browser/gtk/accessible_widget_helper_gtk.cc
deleted file mode 100644
index 64710b1..0000000
--- a/chrome/browser/gtk/accessible_widget_helper_gtk.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/gtk/accessible_widget_helper_gtk.h"
-
-#include "app/l10n_util.h"
-#include "chrome/browser/profile.h"
-
-AccessibleWidgetHelper::AccessibleWidgetHelper(
- GtkWidget* root_widget, Profile* profile)
- : accessibility_event_router_(AccessibilityEventRouter::GetInstance()),
- root_widget_(root_widget) {
- accessibility_event_router_->AddRootWidget(root_widget_, profile);
-}
-
-AccessibleWidgetHelper::~AccessibleWidgetHelper() {
- if (root_widget_)
- accessibility_event_router_->RemoveRootWidget(root_widget_);
- for (unsigned int i = 0; i < managed_widgets_.size(); i++) {
- accessibility_event_router_->RemoveWidget(managed_widgets_[i]);
- }
-}
-
-void AccessibleWidgetHelper::IgnoreWidget(GtkWidget* widget) {
- accessibility_event_router_->IgnoreWidget(widget);
- managed_widgets_.push_back(widget);
-}
-
-void AccessibleWidgetHelper::SetWidgetName(
- GtkWidget* widget, std::string name) {
- accessibility_event_router_->SetWidgetName(widget, name);
- managed_widgets_.push_back(widget);
-}
-
-void AccessibleWidgetHelper::SetWidgetName(
- GtkWidget* widget, int string_id) {
- std::string name = l10n_util::GetStringUTF8(string_id);
- accessibility_event_router_->SetWidgetName(widget, name);
- managed_widgets_.push_back(widget);
-}