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

Side by Side Diff: third_party/WebKit/Source/web/WebAXObject.cpp

Issue 2518183002: Moved action verbs out of Blink. (Closed)
Patch Set: Added missing braces. Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 Document* document = m_private->getDocument(); 126 Document* document = m_private->getDocument();
127 if (!document || !document->view()) 127 if (!document || !document->view())
128 return false; 128 return false;
129 document->view()->updateLifecycleToCompositingCleanPlusScrolling(); 129 document->view()->updateLifecycleToCompositingCleanPlusScrolling();
130 } 130 }
131 131
132 // Doing a layout can cause this object to be invalid, so check again. 132 // Doing a layout can cause this object to be invalid, so check again.
133 return !isDetached(); 133 return !isDetached();
134 } 134 }
135 135
136 WebString WebAXObject::actionVerb() const { 136 WebAXSupportedAction WebAXObject::action() const {
137 if (isDetached()) 137 if (isDetached())
138 return WebString(); 138 return WebAXSupportedAction::None;
139 139
140 return m_private->actionVerb(); 140 return static_cast<WebAXSupportedAction>(m_private->action());
141 } 141 }
142 142
143 bool WebAXObject::canDecrement() const { 143 bool WebAXObject::canDecrement() const {
144 if (isDetached()) 144 if (isDetached())
145 return false; 145 return false;
146 146
147 return m_private->isSlider(); 147 return m_private->isSlider();
148 } 148 }
149 149
150 bool WebAXObject::canIncrement() const { 150 bool WebAXObject::canIncrement() const {
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 WebAXObject& WebAXObject::operator=(AXObject* object) { 1467 WebAXObject& WebAXObject::operator=(AXObject* object) {
1468 m_private = object; 1468 m_private = object;
1469 return *this; 1469 return *this;
1470 } 1470 }
1471 1471
1472 WebAXObject::operator AXObject*() const { 1472 WebAXObject::operator AXObject*() const {
1473 return m_private.get(); 1473 return m_private.get();
1474 } 1474 }
1475 1475
1476 } // namespace blink 1476 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/public/platform/WebLocalizedString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698