summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gtk_preserve_window.h
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-06 17:10:07 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-06 17:10:07 +0000
commit95b3f544eae3f1de91d29d0f4e1abef05592bd86 (patch)
treed311ee75208f1dba65bcf8116d568a6fd251af04 /ui/gfx/gtk_preserve_window.h
parentca2f7f1069844f6274008209473c2db7fff4bbf4 (diff)
downloadchromium_src-95b3f544eae3f1de91d29d0f4e1abef05592bd86.zip
chromium_src-95b3f544eae3f1de91d29d0f4e1abef05592bd86.tar.gz
chromium_src-95b3f544eae3f1de91d29d0f4e1abef05592bd86.tar.bz2
Revert 135593 - Add initial GTK web accessibility framework (new with valgrind fix).
This is the same as http://codereview.chromium.org/9839069/ which was landed but reverted due to a valgrind failure in content_unittests. The valgrind failure was because browser_accessibility_manager_unittest.cc is constructing its own subclass of BrowserAccessibility (for testing), but BrowserAccessibilityManagerGtk was assuming that any BrowserAccessibility could be static_casted to a BrowserAccessibilityGtk. I fixed this by making ToBrowserAccessibilityGtk() a virtual method with a default impl that returns NULL. Original change: This enables Linux desktop assistive technology such as the Orca screen reader to access the web contents. Builds on the same accessibility stack used by Mac & Windows already. This change works with Orca now, but it's minimal: all that works is getting the correct feedback when you tab through focusable links and controls in a webpage. Future changes will add the rest of the support. BUG=24585 TEST=Run Chrome on desktop Linux with Orca turned on, tab through links. TBR=darin,sky Review URL: https://chromiumcodereview.appspot.com/10381010 TBR=dmazzoni@chromium.org Review URL: https://chromiumcodereview.appspot.com/10379029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/gtk_preserve_window.h')
-rw-r--r--ui/gfx/gtk_preserve_window.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/ui/gfx/gtk_preserve_window.h b/ui/gfx/gtk_preserve_window.h
index 0af5d7a..37657b3 100644
--- a/ui/gfx/gtk_preserve_window.h
+++ b/ui/gfx/gtk_preserve_window.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -6,7 +6,6 @@
#define UI_GFX_GTK_PRESERVE_WINDOW_H_
#pragma once
-#include <atk/atk.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
@@ -62,14 +61,6 @@ void gtk_preserve_window_set_preserve(GtkPreserveWindow* widget,
UI_EXPORT void gtk_preserve_window_delegate_resize(GtkPreserveWindow* widget,
gboolean delegate);
-// Provide a function to return an AtkObject* when calls to get_accessible
-// are made on this widget. The parameter |userdata| will be passed to the
-// factory function.
-void gtk_preserve_window_set_accessible_factory(
- GtkPreserveWindow* widget,
- AtkObject* (*factory)(void* userdata),
- gpointer userdata);
-
G_END_DECLS
#endif // UI_GFX_GTK_PRESERVE_WINDOW_H_