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

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

Issue 2713553003: Convert SpinButtonElement timer to UnspecedTimer frame-specific timer. (Closed)
Patch Set: Convert SpinButtonElement timer to UnspecedTimer frame-specific timer. 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp » ('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) 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void stopRepeatingTimer(); 91 void stopRepeatingTimer();
92 void repeatingTimerFired(TimerBase*); 92 void repeatingTimerFired(TimerBase*);
93 void setHovered(bool = true) override; 93 void setHovered(bool = true) override;
94 bool shouldRespondToMouseEvents(); 94 bool shouldRespondToMouseEvents();
95 bool isMouseFocusable() const override { return false; } 95 bool isMouseFocusable() const override { return false; }
96 96
97 Member<SpinButtonOwner> m_spinButtonOwner; 97 Member<SpinButtonOwner> m_spinButtonOwner;
98 bool m_capturing; 98 bool m_capturing;
99 UpDownState m_upDownState; 99 UpDownState m_upDownState;
100 UpDownState m_pressStartingState; 100 UpDownState m_pressStartingState;
101 Timer<SpinButtonElement> m_repeatingTimer; 101 TaskRunnerTimer<SpinButtonElement> m_repeatingTimer;
102 }; 102 };
103 103
104 DEFINE_TYPE_CASTS(SpinButtonElement, 104 DEFINE_TYPE_CASTS(SpinButtonElement,
105 Node, 105 Node,
106 node, 106 node,
107 toElement(node)->isSpinButtonElement(), 107 toElement(node)->isSpinButtonElement(),
108 toElement(node).isSpinButtonElement()); 108 toElement(node).isSpinButtonElement());
109 109
110 } // namespace blink 110 } // namespace blink
111 111
112 #endif 112 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698