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

Side by Side Diff: Source/core/html/shadow/SpinButtonElement.h

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 void releaseCapture(EventDispatch = EventDispatchAllowed); 63 void releaseCapture(EventDispatch = EventDispatchAllowed);
64 void removeSpinButtonOwner() { m_spinButtonOwner = nullptr; } 64 void removeSpinButtonOwner() { m_spinButtonOwner = nullptr; }
65 65
66 void step(int amount); 66 void step(int amount);
67 67
68 virtual bool willRespondToMouseMoveEvents() override; 68 virtual bool willRespondToMouseMoveEvents() override;
69 virtual bool willRespondToMouseClickEvents() override; 69 virtual bool willRespondToMouseClickEvents() override;
70 70
71 void forwardEvent(Event*); 71 void forwardEvent(Event*);
72 72
73 virtual void trace(Visitor*) override; 73 DECLARE_VIRTUAL_TRACE();
74 74
75 private: 75 private:
76 SpinButtonElement(Document&, SpinButtonOwner&); 76 SpinButtonElement(Document&, SpinButtonOwner&);
77 77
78 virtual void detach(const AttachContext&) override; 78 virtual void detach(const AttachContext&) override;
79 virtual bool isSpinButtonElement() const override { return true; } 79 virtual bool isSpinButtonElement() const override { return true; }
80 virtual bool isDisabledFormControl() const override { return shadowHost() && shadowHost()->isDisabledFormControl(); } 80 virtual bool isDisabledFormControl() const override { return shadowHost() && shadowHost()->isDisabledFormControl(); }
81 virtual bool matchesReadOnlyPseudoClass() const override; 81 virtual bool matchesReadOnlyPseudoClass() const override;
82 virtual bool matchesReadWritePseudoClass() const override; 82 virtual bool matchesReadWritePseudoClass() const override;
83 virtual void defaultEventHandler(Event*) override; 83 virtual void defaultEventHandler(Event*) override;
(...skipping 11 matching lines...) Expand all
95 UpDownState m_upDownState; 95 UpDownState m_upDownState;
96 UpDownState m_pressStartingState; 96 UpDownState m_pressStartingState;
97 Timer<SpinButtonElement> m_repeatingTimer; 97 Timer<SpinButtonElement> m_repeatingTimer;
98 }; 98 };
99 99
100 DEFINE_TYPE_CASTS(SpinButtonElement, Node, node, toElement(node)->isSpinButtonEl ement(), toElement(node).isSpinButtonElement()); 100 DEFINE_TYPE_CASTS(SpinButtonElement, Node, node, toElement(node)->isSpinButtonEl ement(), toElement(node).isSpinButtonElement());
101 101
102 } // namespace 102 } // namespace
103 103
104 #endif 104 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/PickerIndicatorElement.cpp ('k') | Source/core/html/shadow/SpinButtonElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698