summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/accessible_widget_helper_gtk.h
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.h
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.h')
-rw-r--r--chrome/browser/gtk/accessible_widget_helper_gtk.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/chrome/browser/gtk/accessible_widget_helper_gtk.h b/chrome/browser/gtk/accessible_widget_helper_gtk.h
deleted file mode 100644
index 775b92e..0000000
--- a/chrome/browser/gtk/accessible_widget_helper_gtk.h
+++ /dev/null
@@ -1,58 +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.
-
-#ifndef CHROME_BROWSER_GTK_ACCESSIBLE_WIDGET_HELPER_GTK_H_
-#define CHROME_BROWSER_GTK_ACCESSIBLE_WIDGET_HELPER_GTK_H_
-
-#include <gtk/gtk.h>
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/singleton.h"
-#include "chrome/browser/gtk/accessibility_event_router_gtk.h"
-#include "chrome/common/accessibility_events.h"
-
-class Profile;
-
-// Helper class that helps to manage the accessibility information for all
-// of the widgets in a container. Create an instance of this class for
-// each container GtkWidget (like a dialog) that should send accessibility
-// events for all of its descendants.
-//
-// Most controls have default behavior for accessibility; when this needs
-// to be augmented, call one of the methods below to ignore a particular
-// widget or change its details.
-//
-// All of the information managed by this class is registered with the
-// (global) AccessibilityEventRouter and unregistered when this object is
-// destroyed.
-class AccessibleWidgetHelper {
- public:
- // Contruct an AccessibleWidgetHelper that makes the given root widget
- // accessible for the lifetime of this object, sending accessibility
- // notifications to the given profile.
- AccessibleWidgetHelper(GtkWidget* root_widget, Profile* profile);
-
- virtual ~AccessibleWidgetHelper();
-
- // Do not send accessibility events for this widget
- void IgnoreWidget(GtkWidget* widget);
-
- // Use the following string as the name of this widget, instead of the
- // gtk label associated with the widget.
- void SetWidgetName(GtkWidget* widget, std::string name);
-
- // Use the following string as the name of this widget, instead of the
- // gtk label associated with the widget.
- void SetWidgetName(GtkWidget* widget, int string_id);
-
- private:
- AccessibilityEventRouter* accessibility_event_router_;
- GtkWidget* root_widget_;
- std::vector<GtkWidget*> managed_widgets_;
-};
-
-#endif // CHROME_BROWSER_GTK_ACCESSIBLE_WIDGET_HELPER_GTK_H_