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

Unified Diff: Source/web/WebAXObject.cpp

Issue 794513002: Return boolean value for bool return type functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 | « Source/web/AssertMatchingEnums.cpp ('k') | public/web/WebAXEnums.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebAXObject.cpp
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp
index 034aaa1a6abf74c583ac5d44e23439ab63230c8c..b61c9c002a77ba13565a085f5cd69b7d5f8d369e 100644
--- a/Source/web/WebAXObject.cpp
+++ b/Source/web/WebAXObject.cpp
@@ -200,7 +200,7 @@ WebAXObject WebAXObject::parentObject() const
bool WebAXObject::canSetSelectedAttribute() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->canSetSelectedAttribute();
}
@@ -208,7 +208,7 @@ bool WebAXObject::canSetSelectedAttribute() const
bool WebAXObject::isAnchor() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isAnchor();
}
@@ -224,7 +224,7 @@ WebAXOptionalBool WebAXObject::isAriaGrabbed() const
bool WebAXObject::isAriaReadOnly() const
{
if (isDetached())
- return 0;
+ return false;
return equalIgnoringCase(m_private->getAttribute(HTMLNames::aria_readonlyAttr), "true");
}
@@ -232,7 +232,7 @@ bool WebAXObject::isAriaReadOnly() const
bool WebAXObject::isButtonStateMixed() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->checkboxOrRadioValue() == ButtonStateMixed;
}
@@ -240,7 +240,7 @@ bool WebAXObject::isButtonStateMixed() const
bool WebAXObject::isChecked() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isChecked();
}
@@ -248,7 +248,7 @@ bool WebAXObject::isChecked() const
bool WebAXObject::isClickable() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isClickable();
}
@@ -256,7 +256,7 @@ bool WebAXObject::isClickable() const
bool WebAXObject::isCollapsed() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isCollapsed();
}
@@ -264,7 +264,7 @@ bool WebAXObject::isCollapsed() const
bool WebAXObject::isControl() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isControl();
}
@@ -272,7 +272,7 @@ bool WebAXObject::isControl() const
bool WebAXObject::isEnabled() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isEnabled();
}
@@ -288,7 +288,7 @@ WebAXExpanded WebAXObject::isExpanded() const
bool WebAXObject::isFocused() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isFocused();
}
@@ -296,7 +296,7 @@ bool WebAXObject::isFocused() const
bool WebAXObject::isHovered() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isHovered();
}
@@ -304,7 +304,7 @@ bool WebAXObject::isHovered() const
bool WebAXObject::isIndeterminate() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isIndeterminate();
}
@@ -312,7 +312,7 @@ bool WebAXObject::isIndeterminate() const
bool WebAXObject::isLinked() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isLinked();
}
@@ -320,7 +320,7 @@ bool WebAXObject::isLinked() const
bool WebAXObject::isLoaded() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isLoaded();
}
@@ -328,7 +328,7 @@ bool WebAXObject::isLoaded() const
bool WebAXObject::isMultiSelectable() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isMultiSelectable();
}
@@ -336,7 +336,7 @@ bool WebAXObject::isMultiSelectable() const
bool WebAXObject::isOffScreen() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isOffScreen();
}
@@ -344,7 +344,7 @@ bool WebAXObject::isOffScreen() const
bool WebAXObject::isPasswordField() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isPasswordField();
}
@@ -352,7 +352,7 @@ bool WebAXObject::isPasswordField() const
bool WebAXObject::isPressed() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isPressed();
}
@@ -360,7 +360,7 @@ bool WebAXObject::isPressed() const
bool WebAXObject::isReadOnly() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isReadOnly();
}
@@ -368,7 +368,7 @@ bool WebAXObject::isReadOnly() const
bool WebAXObject::isRequired() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isRequired();
}
@@ -376,7 +376,7 @@ bool WebAXObject::isRequired() const
bool WebAXObject::isSelected() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isSelected();
}
@@ -400,7 +400,7 @@ WebAXOrientation WebAXObject::orientation() const
bool WebAXObject::isVisible() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isVisible();
}
@@ -408,7 +408,7 @@ bool WebAXObject::isVisible() const
bool WebAXObject::isVisited() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->isVisited();
}
@@ -464,7 +464,7 @@ bool WebAXObject::ariaDescribedby(WebVector<WebAXObject>& describedbyElements) c
bool WebAXObject::ariaHasPopup() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->ariaHasPopup();
}
@@ -512,7 +512,7 @@ bool WebAXObject::isInLiveRegion() const
bool WebAXObject::liveRegionAtomic() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->liveRegionAtomic();
}
@@ -520,7 +520,7 @@ bool WebAXObject::liveRegionAtomic() const
bool WebAXObject::liveRegionBusy() const
{
if (isDetached())
- return 0;
+ return false;
return m_private->liveRegionBusy();
}
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | public/web/WebAXEnums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698