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

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

Issue 2953503004: Transfer ownership of InputMethodController from LocalFrame to DOMWindow
Patch Set: Created 3 years, 6 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 | third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.h
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
index 2ad0b6ac3b8bd053487bd313b477634bc2ffa539..3f130873a6bd0c39a704dbe083238c7dda0e82c0 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
@@ -61,6 +61,7 @@ class FrameRequestCallback;
class History;
class IdleRequestCallback;
class IdleRequestOptions;
+class InputMethodController;
class MediaQueryList;
class MessageEvent;
class Navigator;
@@ -318,6 +319,8 @@ class CORE_EXPORT LocalDOMWindow final : public DOMWindow,
void SetHasLoadEventFired() { has_load_event_fired_ = true; }
bool HasLoadEventFired() { return has_load_event_fired_; }
+ InputMethodController* GetInputMethodController() const;
+
protected:
// EventTarget overrides.
void AddedEventListener(const AtomicString& event_type,
@@ -373,6 +376,8 @@ class CORE_EXPORT LocalDOMWindow final : public DOMWindow,
HeapHashSet<Member<PostMessageTimer>> post_message_timers_;
HeapHashSet<WeakMember<EventListenerObserver>> event_listener_observers_;
+
+ const Member<InputMethodController> input_method_controller_;
};
DEFINE_TYPE_CASTS(LocalDOMWindow,
@@ -389,6 +394,10 @@ inline String LocalDOMWindow::defaultStatus() const {
return default_status_;
}
+inline InputMethodController* LocalDOMWindow::GetInputMethodController() const {
+ return input_method_controller_;
+}
+
} // namespace blink
#endif // LocalDOMWindow_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698