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) { ...@@ -210,13 +210,17 @@ void SetIntPointerValueIfNotNull(int* pointer, int value) {
*pointer = value; *pointer = value;
} }
#if defined(ATK_230)
bool SupportsAtkComponentScrollingInterface() { bool SupportsAtkComponentScrollingInterface() {
return dlsym(RTLD_DEFAULT, "atk_component_scroll_to_point"); return dlsym(RTLD_DEFAULT, "atk_component_scroll_to_point");
} }
#endif
#if defined(ATK_232)
bool SupportsAtkTextScrollingInterface() { bool SupportsAtkTextScrollingInterface() {
return dlsym(RTLD_DEFAULT, "atk_text_scroll_substring_to_point"); return dlsym(RTLD_DEFAULT, "atk_text_scroll_substring_to_point");
} }
#endif
AtkObject* FindAtkObjectParentFrame(AtkObject* atk_object) { AtkObject* FindAtkObjectParentFrame(AtkObject* atk_object) {
AXPlatformNodeAuraLinux* node = AXPlatformNodeAuraLinux* node =
...@@ -1270,6 +1274,7 @@ char* GetStringAtOffset(AtkText* atk_text, ...@@ -1270,6 +1274,7 @@ char* GetStringAtOffset(AtkText* atk_text,
} }
#endif #endif
#if defined(ATK_230)
gfx::Rect GetUnclippedParentHypertextRangeBoundsRect( gfx::Rect GetUnclippedParentHypertextRangeBoundsRect(
AXPlatformNodeDelegate* ax_platform_node_delegate, AXPlatformNodeDelegate* ax_platform_node_delegate,
const int start_offset, const int start_offset,
...@@ -1293,6 +1298,7 @@ gfx::Rect GetUnclippedParentHypertextRangeBoundsRect( ...@@ -1293,6 +1298,7 @@ gfx::Rect GetUnclippedParentHypertextRangeBoundsRect(
AXClippingBehavior::kClipped) AXClippingBehavior::kClipped)
.OffsetFromOrigin(); .OffsetFromOrigin();
} }
#endif
void GetCharacterExtents(AtkText* atk_text, void GetCharacterExtents(AtkText* atk_text,
int offset, 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