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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXSpinButton.h

Issue 2772913003: AXObject::performDefaultAction() should focus if it can't click (Closed)
Patch Set: Add test Created 3 years, 9 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class AXSpinButtonPart final : public AXMockObject { 63 class AXSpinButtonPart final : public AXMockObject {
64 public: 64 public:
65 static AXSpinButtonPart* create(AXObjectCacheImpl&); 65 static AXSpinButtonPart* create(AXObjectCacheImpl&);
66 ~AXSpinButtonPart() override {} 66 ~AXSpinButtonPart() override {}
67 void setIsIncrementor(bool value) { m_isIncrementor = value; } 67 void setIsIncrementor(bool value) { m_isIncrementor = value; }
68 68
69 private: 69 private:
70 explicit AXSpinButtonPart(AXObjectCacheImpl&); 70 explicit AXSpinButtonPart(AXObjectCacheImpl&);
71 bool m_isIncrementor : 1; 71 bool m_isIncrementor : 1;
72 72
73 bool press() const override; 73 bool press() override;
74 AccessibilityRole roleValue() const override { return ButtonRole; } 74 AccessibilityRole roleValue() const override { return ButtonRole; }
75 bool isSpinButtonPart() const override { return true; } 75 bool isSpinButtonPart() const override { return true; }
76 void getRelativeBounds(AXObject** outContainer, 76 void getRelativeBounds(AXObject** outContainer,
77 FloatRect& outBoundsInContainer, 77 FloatRect& outBoundsInContainer,
78 SkMatrix44& outContainerTransform) const override; 78 SkMatrix44& outContainerTransform) const override;
79 }; 79 };
80 80
81 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButton, isNativeSpinButton()); 81 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButton, isNativeSpinButton());
82 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButtonPart, isSpinButtonPart()); 82 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButtonPart, isSpinButtonPart());
83 83
84 } // namespace blink 84 } // namespace blink
85 85
86 #endif // AXSpinButton_h 86 #endif // AXSpinButton_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698