Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: ui/accessibility/platform/ax_platform_node_auralinux.cc

Issue 1243043002: Implement Atk Component interface 'grab_focus' for Chrome UI Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/platform/ax_platform_node_auralinux.cc
diff --git a/ui/accessibility/platform/ax_platform_node_auralinux.cc b/ui/accessibility/platform/ax_platform_node_auralinux.cc
index 722280a97784ca0da65ad42f4fa3ca48db91269c..320d0d0709d87f64c5d63552c82753f9c862394f 100644
--- a/ui/accessibility/platform/ax_platform_node_auralinux.cc
+++ b/ui/accessibility/platform/ax_platform_node_auralinux.cc
@@ -264,10 +264,18 @@ static void ax_platform_node_auralinux_get_size(AtkComponent* atk_component,
obj->GetSize(width, height);
}
+static gboolean ax_platform_node_auralinux_grab_focus(
+ AtkComponent* atk_component) {
+ g_return_val_if_fail(ATK_IS_COMPONENT(atk_component), FALSE);
+
+ return atk_component_grab_focus(atk_component);
dmazzoni 2015/07/21 15:49:01 You're implementing atk_component_grab_focus for o
+}
+
void ax_component_interface_base_init(AtkComponentIface* iface) {
iface->get_extents = ax_platform_node_auralinux_get_extents;
iface->get_position = ax_platform_node_auralinux_get_position;
iface->get_size = ax_platform_node_auralinux_get_size;
+ iface->grab_focus = ax_platform_node_auralinux_grab_focus;
}
static const GInterfaceInfo ComponentInfo = {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698