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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h

Issue 2727673005: Better spellcheck_test (Closed)
Patch Set: Mon Mar 6 11:18:30 PST 2017 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
index db1e34d49f2b9e952e397da3c15dcdcc17755b47..50b1795962fcdd830689b4b4e4559577ce21a715 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
@@ -14,6 +14,14 @@ namespace blink {
class LocalFrame;
class SpellCheckRequester;
+#define FOR_EACH_IDLE_SPELL_CHECK_CALLBACK_STATE(V) \
+ V(Inactive) \
+ V(HotModeRequested) \
+ V(InHotModeInvocation) \
+ V(ColdModeTimerStarted) \
+ V(ColdModeRequested) \
+ V(InColdModeInvocation)
+
// Main class for the implementation of idle time spell checker.
class CORE_EXPORT IdleSpellCheckCallback final
: public IdleRequestCallback,
@@ -26,12 +34,9 @@ class CORE_EXPORT IdleSpellCheckCallback final
~IdleSpellCheckCallback() override;
enum class State {
- kInactive,
- kHotModeRequested,
- kInHotModeInvocation,
- kColdModeTimerStarted,
- kColdModeRequested,
- kInColdModeInvocation
+#define V(state) k##state,
+ FOR_EACH_IDLE_SPELL_CHECK_CALLBACK_STATE(V)
+#undef V
};
State state() const { return m_state; }
« no previous file with comments | « third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js ('k') | third_party/WebKit/Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698