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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 explicit AXSpinButton(AXObjectCacheImpl&); 47 explicit AXSpinButton(AXObjectCacheImpl&);
48 48
49 AccessibilityRole roleValue() const override; 49 AccessibilityRole roleValue() const override;
50 bool isSpinButton() const override { return true; } 50 bool isSpinButton() const override { return true; }
51 bool isNativeSpinButton() const override { return true; } 51 bool isNativeSpinButton() const override { return true; }
52 void addChildren() override; 52 void addChildren() override;
53 LayoutRect elementRect() const override; 53 LayoutRect elementRect() const override;
54 void detach() override; 54 void detach() override;
55 void detachFromParent() override; 55 void detachFromParent() override;
56 56
57 RawPtrWillBeMember<SpinButtonElement> m_spinButtonElement; 57 Member<SpinButtonElement> m_spinButtonElement;
58 }; 58 };
59 59
60 class AXSpinButtonPart final : public AXMockObject { 60 class AXSpinButtonPart final : public AXMockObject {
61 public: 61 public:
62 static AXSpinButtonPart* create(AXObjectCacheImpl&); 62 static AXSpinButtonPart* create(AXObjectCacheImpl&);
63 ~AXSpinButtonPart() override { } 63 ~AXSpinButtonPart() override { }
64 void setIsIncrementor(bool value) { m_isIncrementor = value; } 64 void setIsIncrementor(bool value) { m_isIncrementor = value; }
65 65
66 private: 66 private:
67 explicit AXSpinButtonPart(AXObjectCacheImpl&); 67 explicit AXSpinButtonPart(AXObjectCacheImpl&);
68 bool m_isIncrementor : 1; 68 bool m_isIncrementor : 1;
69 69
70 bool press() const override; 70 bool press() const override;
71 AccessibilityRole roleValue() const override { return ButtonRole; } 71 AccessibilityRole roleValue() const override { return ButtonRole; }
72 bool isSpinButtonPart() const override { return true; } 72 bool isSpinButtonPart() const override { return true; }
73 LayoutRect elementRect() const override; 73 LayoutRect elementRect() const override;
74 }; 74 };
75 75
76 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButton, isNativeSpinButton()); 76 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButton, isNativeSpinButton());
77 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButtonPart, isSpinButtonPart()); 77 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButtonPart, isSpinButtonPart());
78 78
79 } // namespace blink 79 } // namespace blink
80 80
81 #endif // AXSpinButton_h 81 #endif // AXSpinButton_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698