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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2581063002: Add IdleSpellCheckCallback to LocalFrame (Closed)
Patch Set: Fri Dec 16 12:24:18 JST 2016 Created 4 years 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/frame/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index fb15870385883cdc2dd4670bbb7544fa8596c0bd..51d953ec92a97e6597a916694f3e2b5b3ceb0aa9 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -58,6 +58,7 @@ class FloatSize;
class FrameConsole;
class FrameSelection;
class FrameView;
+class IdleSpellCheckCallback;
class InputMethodController;
class InstrumentingAgents;
class InterfaceProvider;
@@ -144,6 +145,7 @@ class CORE_EXPORT LocalFrame final : public Frame,
ScriptController& script() const;
SpellChecker& spellChecker() const;
FrameConsole& console() const;
+ IdleSpellCheckCallback& idleSpellCheckCallback() const;
// This method is used to get the highest level LocalFrame in this
// frame's in-process subtree.
@@ -258,6 +260,7 @@ class CORE_EXPORT LocalFrame final : public Frame,
const Member<EventHandler> m_eventHandler;
const Member<FrameConsole> m_console;
const Member<InputMethodController> m_inputMethodController;
+ const Member<IdleSpellCheckCallback> m_idleSpellCheckCallback;
int m_navigationDisableCount;
@@ -327,6 +330,11 @@ inline EventHandler& LocalFrame::eventHandler() const {
return *m_eventHandler;
}
+inline IdleSpellCheckCallback& LocalFrame::idleSpellCheckCallback() const {
+ DCHECK(m_idleSpellCheckCallback);
+ return *m_idleSpellCheckCallback;
+}
+
DEFINE_TYPE_CASTS(LocalFrame,
Frame,
localFrame,

Powered by Google App Engine
This is Rietveld 408576698