Commit 82c7f7d7 authored by Kristian Kirs's avatar Kristian Kirs Committed by Commit Bot

Fix clang build if ATK_230, ATK_232 aren't defined

In this case compiler warns about function declared never referenced.

Change-Id: If8f7458c930890182c74e776dd31bb168956a693
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2246167
Commit-Queue: Katie Dektar <katie@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Reviewed-by: default avatarKatie Dektar <katie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779326}
parent dba9a2b8
......@@ -210,13 +210,17 @@ void SetIntPointerValueIfNotNull(int* pointer, int value) {
*pointer = value;
}
#if defined(ATK_230)
bool SupportsAtkComponentScrollingInterface() {
return dlsym(RTLD_DEFAULT, "atk_component_scroll_to_point");
}
#endif
#if defined(ATK_232)
bool SupportsAtkTextScrollingInterface() {
return dlsym(RTLD_DEFAULT, "atk_text_scroll_substring_to_point");
}
#endif
AtkObject* FindAtkObjectParentFrame(AtkObject* atk_object) {
AXPlatformNodeAuraLinux* node =
......@@ -1270,6 +1274,7 @@ char* GetStringAtOffset(AtkText* atk_text,
}
#endif
#if defined(ATK_230)
gfx::Rect GetUnclippedParentHypertextRangeBoundsRect(
AXPlatformNodeDelegate* ax_platform_node_delegate,
const int start_offset,
......@@ -1293,6 +1298,7 @@ gfx::Rect GetUnclippedParentHypertextRangeBoundsRect(
AXClippingBehavior::kClipped)
.OffsetFromOrigin();
}
#endif
void GetCharacterExtents(AtkText* atk_text,
int offset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment