summaryrefslogtreecommitdiffstats
path: root/views/view_gtk.cc
diff options
context:
space:
mode:
authorjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 00:39:07 +0000
committerjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 00:39:07 +0000
commitbb837f9287259862c94155cc59cfc9e1bdfe1258 (patch)
treef23a7dabe56a4b4c9288ea022f65c090a4fc536b /views/view_gtk.cc
parentd19e63d5bd3a61fc46bae0c527731c79abb94957 (diff)
downloadchromium_src-bb837f9287259862c94155cc59cfc9e1bdfe1258.zip
chromium_src-bb837f9287259862c94155cc59cfc9e1bdfe1258.tar.gz
chromium_src-bb837f9287259862c94155cc59cfc9e1bdfe1258.tar.bz2
Revert 76825 - Refactor Views accessibility.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6581010 TBR=dmazzoni@chromium.org Review URL: http://codereview.chromium.org/6612035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76844 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view_gtk.cc')
-rw-r--r--views/view_gtk.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/views/view_gtk.cc b/views/view_gtk.cc
index 5155099..b666338 100644
--- a/views/view_gtk.cc
+++ b/views/view_gtk.cc
@@ -7,9 +7,25 @@
#include <gtk/gtk.h>
#include "base/logging.h"
+#include "views/views_delegate.h"
namespace views {
+void View::NotifyAccessibilityEvent(AccessibilityTypes::Event event_type,
+ bool send_native_event) {
+ // Send the notification to the delegate.
+ if (ViewsDelegate::views_delegate)
+ ViewsDelegate::views_delegate->NotifyAccessibilityEvent(this, event_type);
+
+ // In the future if we add native GTK accessibility support, the
+ // notification should be sent here.
+}
+
+ViewAccessibility* View::GetViewAccessibility() {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
int View::GetHorizontalDragThreshold() {
static bool determined_threshold = false;
static int drag_threshold = 8;