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

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

Issue 863283005: Support aria-dropeffect attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 m_private->ariaDescribedbyElements(describedby); 470 m_private->ariaDescribedbyElements(describedby);
471 471
472 WebVector<WebAXObject> result(describedby.size()); 472 WebVector<WebAXObject> result(describedby.size());
473 for (size_t i = 0; i < describedby.size(); i++) 473 for (size_t i = 0; i < describedby.size(); i++)
474 result[i] = WebAXObject(describedby[i]); 474 result[i] = WebAXObject(describedby[i]);
475 describedbyElements.swap(result); 475 describedbyElements.swap(result);
476 476
477 return true; 477 return true;
478 } 478 }
479 479
480 WebString WebAXObject::ariaDropEffect() const
481 {
482 if (isDetached())
483 return WebString();
484
485 return WebString(m_private->ariaDropEffect());
486 }
487
480 bool WebAXObject::ariaHasPopup() const 488 bool WebAXObject::ariaHasPopup() const
481 { 489 {
482 if (isDetached()) 490 if (isDetached())
483 return false; 491 return false;
484 492
485 return m_private->ariaHasPopup(); 493 return m_private->ariaHasPopup();
486 } 494 }
487 495
488 bool WebAXObject::ariaFlowTo(WebVector<WebAXObject>& flowToElements) const 496 bool WebAXObject::ariaFlowTo(WebVector<WebAXObject>& flowToElements) const
489 { 497 {
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 m_private = object; 1319 m_private = object;
1312 return *this; 1320 return *this;
1313 } 1321 }
1314 1322
1315 WebAXObject::operator WTF::PassRefPtr<AXObject>() const 1323 WebAXObject::operator WTF::PassRefPtr<AXObject>() const
1316 { 1324 {
1317 return m_private.get(); 1325 return m_private.get();
1318 } 1326 }
1319 1327
1320 } // namespace blink 1328 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698