| Index: views/view_gtk.cc
|
| ===================================================================
|
| --- views/view_gtk.cc (revision 53979)
|
| +++ views/view_gtk.cc (working copy)
|
| @@ -7,6 +7,7 @@
|
| #include <gtk/gtk.h>
|
|
|
| #include "base/logging.h"
|
| +#include "views/views_delegate.h"
|
|
|
| namespace views {
|
|
|
| @@ -21,9 +22,19 @@
|
| }
|
|
|
| void View::NotifyAccessibilityEvent(AccessibilityTypes::Event event_type) {
|
| - // Not implemented on GTK.
|
| + NotifyAccessibilityEvent(event_type, true);
|
| }
|
|
|
| +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.
|
| +}
|
| +
|
| ViewAccessibilityWrapper* View::GetViewAccessibilityWrapper() {
|
| NOTIMPLEMENTED();
|
| return NULL;
|
|
|