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

Unified Diff: sky/engine/core/frame/LocalFrame.h

Issue 866213004: Switch Sky to pointer events (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: nits Created 5 years, 11 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
« no previous file with comments | « no previous file | sky/engine/core/frame/LocalFrame.cpp » ('j') | sky/engine/core/frame/NewEventHandler.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/frame/LocalFrame.h
diff --git a/sky/engine/core/frame/LocalFrame.h b/sky/engine/core/frame/LocalFrame.h
index a9a46cb722ca92f654d4fb34bb5fc929f1039110..309a10a73098b3070b896a323742e32d3efa35e1 100644
--- a/sky/engine/core/frame/LocalFrame.h
+++ b/sky/engine/core/frame/LocalFrame.h
@@ -53,6 +53,7 @@ namespace blink {
class IntPoint;
class IntSize;
class MojoLoader;
+ class NewEventHandler;
class Node;
class Range;
class RenderView;
@@ -89,6 +90,7 @@ namespace blink {
Editor& editor() const;
EventHandler& eventHandler() const;
+ NewEventHandler& newEventHandler() const;
MojoLoader& mojoLoader() const { return *m_mojoLoader; }
FrameSelection& selection() const;
InputMethodController& inputMethodController() const;
@@ -132,6 +134,7 @@ namespace blink {
const OwnPtr<SpellChecker> m_spellChecker;
const OwnPtr<FrameSelection> m_selection;
const OwnPtr<EventHandler> m_eventHandler;
+ const OwnPtr<NewEventHandler> m_newEventHandler;
const OwnPtr<FrameConsole> m_console;
OwnPtr<InputMethodController> m_inputMethodController;
};
@@ -177,6 +180,12 @@ namespace blink {
return *m_eventHandler;
}
+ inline NewEventHandler& LocalFrame::newEventHandler() const
+ {
+ ASSERT(m_newEventHandler);
+ return *m_newEventHandler;
+ }
+
DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, true, true);
} // namespace blink
« no previous file with comments | « no previous file | sky/engine/core/frame/LocalFrame.cpp » ('j') | sky/engine/core/frame/NewEventHandler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698