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

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

Issue 2389633002: reflow comments in web/ (Closed)
Patch Set: . Created 4 years, 2 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
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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 return m_private->headingLevel(); 637 return m_private->headingLevel();
638 } 638 }
639 639
640 int WebAXObject::hierarchicalLevel() const { 640 int WebAXObject::hierarchicalLevel() const {
641 if (isDetached()) 641 if (isDetached())
642 return 0; 642 return 0;
643 643
644 return m_private->hierarchicalLevel(); 644 return m_private->hierarchicalLevel();
645 } 645 }
646 646
647 // FIXME: This method passes in a point that has page scale applied but assumes that (0, 0) 647 // FIXME: This method passes in a point that has page scale applied but assumes
648 // is the top left of the visual viewport. In other words, the point has the Vis ualViewport 648 // that (0, 0) is the top left of the visual viewport. In other words, the
649 // scale applied, but not the VisualViewport offset. crbug.com/459591. 649 // point has the VisualViewport scale applied, but not the VisualViewport
650 // offset. crbug.com/459591.
650 WebAXObject WebAXObject::hitTest(const WebPoint& point) const { 651 WebAXObject WebAXObject::hitTest(const WebPoint& point) const {
651 if (isDetached()) 652 if (isDetached())
652 return WebAXObject(); 653 return WebAXObject();
653 654
654 IntPoint contentsPoint = 655 IntPoint contentsPoint =
655 m_private->documentFrameView()->soonToBeRemovedUnscaledViewportToContents( 656 m_private->documentFrameView()->soonToBeRemovedUnscaledViewportToContents(
656 point); 657 point);
657 AXObject* hit = m_private->accessibilityHitTest(contentsPoint); 658 AXObject* hit = m_private->accessibilityHitTest(contentsPoint);
658 659
659 if (hit) 660 if (hit)
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 WebAXObject& WebAXObject::operator=(AXObject* object) { 1456 WebAXObject& WebAXObject::operator=(AXObject* object) {
1456 m_private = object; 1457 m_private = object;
1457 return *this; 1458 return *this;
1458 } 1459 }
1459 1460
1460 WebAXObject::operator AXObject*() const { 1461 WebAXObject::operator AXObject*() const {
1461 return m_private.get(); 1462 return m_private.get();
1462 } 1463 }
1463 1464
1464 } // namespace blink 1465 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | third_party/WebKit/Source/web/WebDOMMessageEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698