Title: [151764] trunk/Tools
- Revision
- 151764
- Author
- [email protected]
- Date
- 2013-06-19 21:14:43 -0700 (Wed, 19 Jun 2013)
Log Message
[Windows] AX: Expand notification support.
https://bugs.webkit.org/show_bug.cgi?id=117761
Reviewed by Anders Carlsson.
* DumpRenderTree/win/AccessibilityUIElementWin.cpp:
(AccessibilityUIElement::isPressActionSupported): Provide implementation.
(AccessibilityUIElement::press): Provide implementation.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (151763 => 151764)
--- trunk/Tools/ChangeLog 2013-06-20 02:35:58 UTC (rev 151763)
+++ trunk/Tools/ChangeLog 2013-06-20 04:14:43 UTC (rev 151764)
@@ -1,3 +1,14 @@
+2013-06-19 Brent Fulgham <[email protected]>
+
+ [Windows] AX: Expand notification support.
+ https://bugs.webkit.org/show_bug.cgi?id=117761
+
+ Reviewed by Anders Carlsson.
+
+ * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
+ (AccessibilityUIElement::isPressActionSupported): Provide implementation.
+ (AccessibilityUIElement::press): Provide implementation.
+
2013-06-19 Benjamin Poulain <[email protected]>
Use the PlatformEvent timestamp when creating a DOM Event
Modified: trunk/Tools/DumpRenderTree/win/AccessibilityUIElementWin.cpp (151763 => 151764)
--- trunk/Tools/DumpRenderTree/win/AccessibilityUIElementWin.cpp 2013-06-20 02:35:58 UTC (rev 151763)
+++ trunk/Tools/DumpRenderTree/win/AccessibilityUIElementWin.cpp 2013-06-20 04:14:43 UTC (rev 151764)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008 Apple Inc. All Rights Reserved.
+ * Copyright (C) 2008, 2013 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -30,6 +30,7 @@
#include "DumpRenderTree.h"
#include "FrameLoadDelegate.h"
#include <_javascript_Core/JSStringRef.h>
+#include <wtf/text/WTFString.h>
#include <comutil.h>
#include <tchar.h>
#include <string>
@@ -434,7 +435,14 @@
bool AccessibilityUIElement::isPressActionSupported()
{
- return false;
+ BSTR valueBSTR;
+ if (FAILED(m_element->get_accDefaultAction(self(), &valueBSTR) || !valueBSTR))
+ return false;
+
+ if (!::SysStringLen(valueBSTR))
+ return false;
+
+ return true;
}
bool AccessibilityUIElement::isIncrementActionSupported()
@@ -597,7 +605,10 @@
void AccessibilityUIElement::press()
{
- // FIXME: implement
+ if (!m_element)
+ return;
+
+ m_element->accDoDefaultAction(self());
}
AccessibilityUIElement AccessibilityUIElement::disclosedRowAtIndex(unsigned index)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes